apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
rokob has joined #ruby
rollietikes has joined #ruby
rokob has quit [Remote host closed the connection]
rokob has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
senayar_ has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
lw has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
SilkFox has joined #ruby
michaeldeol has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
dcunit3d has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
pika_pika has quit [Ping timeout: 276 seconds]
Beoran__ has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
crzrcn has quit [Quit: Leaving.]
kitak has quit [Ping timeout: 240 seconds]
MatthewsFace has joined #ruby
Zesty has joined #ruby
Zesty has quit [Remote host closed the connection]
<benzrf> omg
<benzrf> https://rms.sexy/ - Our GNU/Lord and GNU/Savior is 100% sexy!
razrunelord has quit [Ping timeout: 264 seconds]
<centrx> He's using a computer in every picture
<alpha123> He's a pirate. :P
kitak has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Client Quit]
freerobby has joined #ruby
freerobby has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Beoran__ has joined #ruby
IceDragon has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonno11 has joined #ruby
rhys_ has quit [Ping timeout: 258 seconds]
omosoj has joined #ruby
endash has quit [Quit: endash]
rollietikes has quit [Remote host closed the connection]
Nexus_x1__ has joined #ruby
mansi has joined #ruby
mikepack has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
cgj has quit [Ping timeout: 276 seconds]
Nexus_x1__ has quit [Ping timeout: 255 seconds]
cgj has joined #ruby
pskosinski_ has joined #ruby
meatherly has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
SilkFox has joined #ruby
<shevy> He is dirty.
Hanmac1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
mehlah has quit [Quit: Leaving...]
<benzrf> He must be cleansed.
Zesty has joined #ruby
bthesorceror has joined #ruby
estaban has joined #ruby
jack_rabbit has joined #ruby
Lewix has quit [Remote host closed the connection]
binaryhat has joined #ruby
estaban has quit [Ping timeout: 264 seconds]
zigomir has quit [Remote host closed the connection]
gogohome has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
zigomir has joined #ruby
psd has joined #ruby
brucelee_ has quit [Ping timeout: 252 seconds]
twiceday has joined #ruby
<shevy> He smells slutty.
gogohome is now known as Firebox_
<Firebox_> hi
<shevy> hi Firefox
chipotle has quit [Quit: cya]
<Firebox_> http://tryruby.org/levels/1/challenges/0 <—— this is tutorial for child?
zigomir has quit [Ping timeout: 276 seconds]
lfox has joined #ruby
imkmf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> Firebox_: Yes, but anybody is welcome
twiceaday has quit [Ping timeout: 276 seconds]
<Firebox_> i see.
<Firebox_> thanks
<RubyPanther> It is at least intended to be easy enough for a child
brucelee_ has joined #ruby
mrmargolis has joined #ruby
<Karunamon> heh, why_'s brand of humor isn't for everyone
<Karunamon> infectious and awesome as it is
<RubyPanther> Firebox_: Adults are encouraged instead to read http://mislav.uniqpath.com/poignant-guide/book/chapter-1.html and listen to the soundtrack http://mislav.uniqpath.com/poignant-guide/soundtrack/
andy___ has joined #ruby
<jhass> s/instead/additionally/
cmoneylulz has joined #ruby
greenrose has joined #ruby
<Firebox_> thanks RubyPanther
greenrose has quit [Excess Flood]
IceDragon has quit [Ping timeout: 265 seconds]
brucelee_ has quit [Ping timeout: 240 seconds]
banister has joined #ruby
sgen has joined #ruby
<Firebox_> introduce me ruby tutorial medium level.
mrmargolis has quit [Remote host closed the connection]
<jhass> Firebox_: so you're trough tryruby.org already?
banister has quit [Client Quit]
<Firebox_> tryruby.
YOUcanPMme has joined #ruby
<Firebox_> yes it is to easy.
<Firebox_> and for child.
<jhass> try the ruby koans
<Firebox_> more difficult one
psd has quit []
<Firebox_> koans?
<Firebox_> what is it?
<centrx> Also RubyMonk
<Firebox_> thanks
<Firebox_> ok i see
<Firebox_> how about ‘learn_to_program’?
Hanmac1 has quit [Ping timeout: 252 seconds]
<Firebox_> it is too easy book?
<jhass> don't fear easy
<jhass> if you're bored start solving real problems you have with ruby
<Firebox_> i m bored variable, repetition, if, list etc.
wwkeyboard has joined #ruby
<shevy> Firebox_ then stop reading and start writing scripts
<Firebox_> ok thanks
<Firebox_> and where i can download module?
<centrx> what module?
dapz has joined #ruby
Hanmac has joined #ruby
<Firebox_> ruby have no module?
<Firebox_> python have many module.
<shevy> Firebox_ rubygems.org
<Firebox_> thanks
mikepack has joined #ruby
<shevy> find a name, you can install from the commandline via: gem install NAME_HERE
mostlybadfly has joined #ruby
<jhass> do you mean libraries? we call them gems and rubygems.org is the central index. Ruby's pip equivalent is the gem command
Hobogrammer_ has joined #ruby
Nexus_x1__ has joined #ruby
<centrx> Firebox_, https://www.ruby-toolbox.com/ is useful for finding modules
<shevy> https://www.ruby-toolbox.com/ for an overview of tags, like "what is using pdf"
<shevy> damn centrx was faster
<centrx> PHP auto-script do0d
<shevy> shows us how immensely useful PHP is
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Firebox_> thanks shevy and centrx
Hobogrammer has quit [Quit: WeeChat 0.4.3]
crystal77 has quit [Quit: Computer has gone to sleep.]
<Firebox_> ruby is good for hacking?
<Firebox_> right?
<jhass> what's hacking in your definition?
<Firebox_> webhacking
<Firebox_> web database hacking
bradhe has quit [Remote host closed the connection]
<jhass> not familiar with that term
<centrx> Firebox_, Ruby is a superior programming language.
bradhe has joined #ruby
<benzrf> i feel like Firebox_ is that other guy with a new nick
<Firebox_> superior.
<Firebox_> good
<centrx> * Hobogrammer has quit (Quit: WeeChat 0.4.3)
<benzrf> 09:27 -!- Hobogrammer [~hobogramm@74.85.65.10] has quit [Quit: WeeChat 0.4.3]
cmoneylulz has quit [Remote host closed the connection]
baweaver has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
bthesorceror has quit [Remote host closed the connection]
<jkline> Firebox_: tell us more about the project you want to create
bthesorceror has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
<Firebox_> jkline: i want make metasploit script.
<Firebox_> is it possible?
<jkline> I have no experience writing metasploit scripts , so I don't know what language is recommended for that.
<Firebox_> that language is ruby.
<Firebox_> :)
<jhass> metasploit is largely written in ruby, so sure. But you better ask #metasploit for support about that
timonv has joined #ruby
sambao21 has joined #ruby
<Firebox_> oh i see thanks jhass
<jkline> Ruby gives you access to sockets, and has many available opensource gems for things like running shell commands, connecting to databases, http, etc. So I suspect you can do most of what you want fairly easily
x77686d has joined #ruby
echevemaster has joined #ruby
jkline has quit [Quit: jkline]
<jhass> we're happy to answer your questions about general ruby problems, but for specific frameworks you should resort to their respective channels
freerobby has quit [Quit: Leaving.]
<Firebox_> ok i see. but what is gems?
bthesorceror has quit [Ping timeout: 252 seconds]
<jhass> gems are libraries for ruby, packaged, reusable code
<Firebox_> oh
<Firebox_> i see
baweaver has quit [Ping timeout: 264 seconds]
<Firebox_> java package == ruby gems?
binaryhat has quit [Quit: Leaving]
<jhass> more like a .jar
amclain__ has joined #ruby
<Firebox_> java’s jar file == ruby gems?
<Firebox_> right?
<jhass> the closest thing if you need to compare
caleb_io has joined #ruby
<Firebox_> i see thanks jhass
<benzrf> Firebox_: not quite
<benzrf> a gem is more like a package
<Firebox_> oh
<Firebox_> :(
<benzrf> in fact it /is/ a package
<Firebox_> who is right?
timonv has quit [Ping timeout: 252 seconds]
<benzrf> jhass isn't wrong
<Firebox_> jar is package also.
<benzrf> well
<jhass> I understood package in java as the namespacing tool
<benzrf> a jar can be a standalone library
<benzrf> or an executable
<Firebox_> jar is collect of package.
echevemaster has quit [Ping timeout: 240 seconds]
<benzrf> a gem is just a package
<Firebox_> ok isee
<benzrf> *a package as in something like a .deb
<Firebox_> ok i see
<benzrf> not as in a java package
<benzrf> a java package is closer to a module in ruby
amclain has quit [Ping timeout: 264 seconds]
mary_synthesizin has joined #ruby
<Firebox_> module and gems?
<Firebox_> python package == ruby gems
Zesty has joined #ruby
<Firebox_> who use vmware player?
yfeldblu_ has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
<benzrf> Firebox_: thats correct
danijoo has quit [Read error: Connection reset by peer]
<Firebox_> ok i see thanks benzrf
danijoo has joined #ruby
<benzrf> the 'gem' command is like 'pip'
<benzrf> well
<benzrf> more like 'gem install' == 'pip install'
<benzrf> gem does more things than pip does
<benzrf> a module in ruby is both a namespace (like in java) and a mixin
<benzrf> a mixin being like part of a class that you can add to your classes
<benzrf> 'mix into' your classes
bradhe has joined #ruby
mary_synthesizin has quit [Remote host closed the connection]
<Firebox_> oh thanks
<Firebox_> i use brew.
<Firebox_> pip is old thing
<benzrf> uh
jamto11 has joined #ruby
<benzrf> dont think youre supposed to use brew to install py packages
<benzrf> thats what pip's for
SonicX has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
<Firebox_> ok i see thanks
johncjensen has joined #ruby
<Firebox_> i will stay here till making script of metasploit.
<jacky> Firebox_: pip is what gem is in the Python community
<jacky> in a loosely comparison
<Firebox_> ok jacky
bthesorceror has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
ddv has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
skysploit has joined #ruby
imkmf has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Ping timeout: 265 seconds]
stantona has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
tyll_ has quit [Read error: Operation timed out]
brian___ has joined #ruby
stantona has quit [Remote host closed the connection]
Hanmac has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
touzine has quit [Ping timeout: 240 seconds]
<shevy> Firebox_ you used python before?
tyll has joined #ruby
havenwood has quit [Remote host closed the connection]
GrooveStomp has quit [Ping timeout: 265 seconds]
<Firebox_> i can do python, c, c++, php, jquery, objective-c, ios, javascript, perl, android, java, ajax, sql.
andy___ has quit [Remote host closed the connection]
havenwood has joined #ruby
<Firebox_> but i dont study c# and ruby.
<Firebox_> but i will study ruby.
<Firebox_> now.
<Firebox_> i down know starting c#.
<Firebox_> i will not study c# perhaps.
lemur_ has joined #ruby
<Firebox_> but i need ruby.
<Firebox_> now
<Firebox_> how about sh?
dcunit3d has quit [Ping timeout: 255 seconds]
<Firebox_> how about shevy ?
<shevy> Firebox_ I went from perl to php to ruby
<shevy> ruby is 85% perfect
<shevy> perl and php not even 50%
stantona has joined #ruby
<Firebox_> perl->php->ruby?
HashNuke has joined #ruby
<shevy> ya
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Firebox_> you can do java?
<shevy> nope
<shevy> I hate its verbosity
<shevy> I have no patience for boilerplate code, it wastes time of my life so I skip it instantly
<Firebox_> you must study java. you can do many thing with java like android.
CorySimmons has joined #ruby
<centrx> Java causes brain damage
<Firebox_> but java is used many thing.
havenwood has quit [Ping timeout: 255 seconds]
<centrx> So is toilet paper
<Firebox_> but java is used in many thing.
<Firebox_> java and objective-c is required.
<Firebox_> to programmer
SilverKey has joined #ruby
brucelee_ has joined #ruby
<shevy> Firebox_ I couldn't care less about android
nisstyre has joined #ruby
MattStratton has joined #ruby
<Firebox_> android is good
<ponga> so is firefox
<Firebox_> my app is downloaded 1000 people
maximski has quit []
<Firebox_> my app is downloaded by 1000 people
<shevy> well and honestly
<shevy> if it is 100 million
<centrx> Ruby is like Objective-C with cleaner syntax, some Perl niceties, and more
sparrovv has quit [Remote host closed the connection]
freerobby has joined #ruby
<Firebox_> i earned $1000, so i will buy mac book air retina this summer
<shevy> Firebox_ the world is huge, so huge that people can well live without mac, cell phones, android or other fancy gadgets
<Firebox_> by android
YOUcanPMme has quit [Ping timeout: 240 seconds]
<Firebox_> then why do you programming?
<Firebox_> shevy:
<Firebox_> there is many thing instead of programming.
crucify_me has quit [Remote host closed the connection]
Cache_Money has quit [Ping timeout: 251 seconds]
ponga has quit [Quit: Leaving :)]
helpD has joined #ruby
einarj has joined #ruby
Cache_Money has joined #ruby
stantona has quit [Remote host closed the connection]
<shevy> Firebox_ I program so that I can automate everything useful and automatable to the computer
bradhe_ has quit [Remote host closed the connection]
GrooveStomp has joined #ruby
<Firebox_> shevy: what thing? give me list of automation.
<shevy> it's like a free worker that does useful things, with a little initial time investment
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<shevy> Firebox_ well here is a Potpourri of what kind of things I do https://rubygems.org/profiles/58718 - a lot of other scripts are not useful enough to upload though
imperator has joined #ruby
crzrcn has joined #ruby
<Firebox_> thanks
<Firebox_> i will see it after mastering ruby.
dcunit3d has joined #ruby
<shevy> Firebox_ right now I work on a postgresql database to the NCBI taxonomy dataset, with a ruby interface to it; it's damn boring but related to work
senayar_ has quit [Remote host closed the connection]
<benzrf> shevy that is too many gems stop pls
<Firebox_> i think you are skilled ruby programmer.
<shevy> benzrf you don't use them anyway
senayar has joined #ruby
<Firebox_> shevy: you can do something?
<Firebox_> i must do it.
<Firebox_> you can help me?
<shevy> Firebox_ depends on what it is, information sure
einarj has quit [Ping timeout: 276 seconds]
<Firebox_> i want to web database hacking.
<Firebox_> it is my purpose.
<Firebox_> too
<Firebox_> i must collect information for some reason.
WishBoy has quit [Read error: Connection reset by peer]
WishBoy has joined #ruby
jhass is now known as jhass|off
<Firebox_> you can help me?
<Firebox_> shevy:
mansi has quit [Remote host closed the connection]
<shevy> I don't quite understand the question?
<Firebox_> oh
<shevy> you can try at #rubyonrails - they do work with databases much moreso than most people on #ruby on a daily basis
senayar has quit [Ping timeout: 240 seconds]
stantona has joined #ruby
<Firebox_> if you must register some web page, then your name and address is required. and that information is saved in the web database.
<Firebox_> and i want hack web databasc for that information.
<shevy> aha
<Firebox_> ok you understand it.
imperator has left #ruby ["Leaving"]
<shevy> dunno
Hanmac has quit [Ping timeout: 276 seconds]
<Firebox_> oh
<shevy> I understand that you want to do something that I have no real understanding of so it is unlikely that I can be of assistance really
SilkFox has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
brucelee_ has quit [Ping timeout: 252 seconds]
<Firebox_> ok then you can web database hacking?
<Firebox_> you can do web database hacking?
<shevy> nope, why should I be able to? all I do is fill crap into my databases
<Firebox_> i think you are very skilled ruby programmer. so you can do it easily.
<Firebox_> right?
<shevy> does this make sense for you?
<shevy> someone who is very good with a rifle is very good with a small revolver?
<shevy> someone who can jump 215 cm high is very good at jumping 910 cm length?
cgcardona_ has quit [Quit: cgcardona_]
<Firebox_> i dont know that.
<Firebox_> ok i see you cant it.
<shevy> start smaller with ruby
stantona has quit [Remote host closed the connection]
<Firebox_> ok
<shevy> then you can still head-dive into metasploit
<Firebox_> you use vmware?
<shevy> nah
<Firebox_> yes
<shevy> I use the most basic thing - linux and ruby
<Firebox_> i m studying metasploit.
<Firebox_> oh
<Firebox_> linux and ruby. you can do everything with 2 thing?
<Firebox_> shevy: i think that all programmer’s last goal is hacking.
<shevy> I can do all I need to do for now
<shevy> that sounds rather sad
<Firebox_> but it is real
thomasxie has joined #ruby
SonicX has joined #ruby
<Firebox_> first all beginner start c,
jack_rabbit has quit [Ping timeout: 264 seconds]
<Firebox_> and c++ and python and etc
havenwood has joined #ruby
<shevy> why would you want to use twenty different languages?
<shevy> it just shows that you are unable to find a language that is worthy to use it
<Firebox_> but last all programmer want more something.
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<Firebox_> no i learn many thing for studying language.
sdwrage has joined #ruby
Martxel has quit [Ping timeout: 252 seconds]
<Firebox_> only one language can do one language well.
Megtastique has quit []
<Firebox_> but i want experience many thing.
<shevy> which language is that?
michaeldeol has joined #ruby
<Firebox_> ?
<Firebox_> which language is that?
<Firebox_> what mean?
Solnse has quit [Quit: Leaving.]
mansi has joined #ruby
The_NetZ has joined #ruby
lazyguru has quit [Ping timeout: 252 seconds]
<The_NetZ> so. anyone can tell me how straight ruby vs an executable with embedded ruby compares?
abdulsattar has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<arubin> In what regard?
<shevy> Firebox_ I don't think there exists a perfect language; a merge of C and Ruby would be perhaps 95% perfect
<arubin> shevy: So Rust?
<arubin> With more OO.
<shevy> Rust seems like C reloaded
<Firebox_> ok shevy but you can make android programming with c and ruby?
<shevy> Firebox_ I have no idea, why do you keep on asking me about android, I don't use android, I don't even have a cellphone ;-)
Megtastique has joined #ruby
<arubin> shevy: I realized immediately after I wrote it that Rust does not fit the criteria because of its lack of OO.
freerobby has quit [Quit: Leaving.]
<shevy> well the rust syntax seems extremely C inspired
<The_NetZ> ruby++ :P
<shevy> fn main() {
<shevy> for x in y.chars() {
<Firebox_> shevy: you use virtual machine?
<The_NetZ> just about anything above asm is pretty c inspired.
<shevy> println!("yo there man yippie!",
<shevy> Firebox_ no I dont use virtual machine, I don't use anything you use :P
<shevy> The_NetZ yeah
<The_NetZ> liar :P
<shevy> and every second year a new language comes out
<shevy> that is a "better" C
<shevy> looks 95% the same
<shevy> does 95% the same
<The_NetZ> shevy: yep; hey! lets make ruby in c++ XD
<shevy> naaaaah
havenwood has quit [Read error: Connection reset by peer]
<xargoon> most 3GL and 4GL's are very similar
<shevy> C++ should have never happened
havenwood has joined #ruby
<The_NetZ> lol
<The_NetZ> considering that a class is just a private struct
* The_NetZ is considering just using c...
thomasxie has quit [Ping timeout: 264 seconds]
obscured has joined #ruby
lazyguru has joined #ruby
<shevy> The_NetZ what I liked in C++ was the <<
<shevy> C should have adopted that
dcunit3d has quit [Ping timeout: 264 seconds]
<shevy> cout << var
<shevy> man, that is so much nicer than printfuck();
<The_NetZ> yeah, that is pretty nice; std::cout and all that nifty stuff
dseitz has joined #ruby
<shevy> minus the ::
<shevy> hehe
radic has quit [Ping timeout: 252 seconds]
eka has joined #ruby
mikepack has joined #ruby
<xargoon> and templates, inheritance, virtual methods
<xargoon> less boilerplate than when doing the same in C
<The_NetZ> I don't much care for using namespace std, lol
radic has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
johncjensen has quit [Remote host closed the connection]
brucelee_ has joined #ruby
<shevy> !!!
crzrcn has quit [Quit: Leaving.]
Celm has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
crzrcn has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<The_NetZ> ?
<shevy> !!!!!
<shevy> I use the ! to confirm that I am just without words
<The_NetZ> shevy: I think you misunderstand me.
mercwithamouth has joined #ruby
<shevy> you hate namespace std!
bthesorceror has quit [Remote host closed the connection]
<The_NetZ> the std:: namespace is wonderful, and pretty much ubiquitous. I just mean, I don't like doing that stupid cheat code "using namespace std;" in my code.
bthesorceror has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
mary_synthesizin has joined #ruby
<shevy> aha
x77686d has quit [Quit: x77686d]
<shevy> I always did it!
<shevy> so I could use the beautiful cout << "yippie!" << endl;
<The_NetZ> I understand std::cout much better than just cout :P
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<The_NetZ> std::cout << "yippie!\n";
<shevy> when it got to templates I quit C++
<The_NetZ> heh
WilfredTheGreat has joined #ruby
CorySimmons has quit [Quit: Zzz...]
mercwithamouth has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
<shevy> but hey
<shevy> you C++ guys could help the qt bindings for ruby
Celm has quit [Remote host closed the connection]
brucelee_ has quit [Ping timeout: 265 seconds]
obscured has quit [Quit: leaving]
bthesorceror has quit [Ping timeout: 252 seconds]
mary_synthesizin has quit [Ping timeout: 255 seconds]
armyriad has quit [Ping timeout: 240 seconds]
<The_NetZ> I hate qt
<shevy> hehehe
braincrash has quit [Quit: bye bye]
Matix has joined #ruby
<Firebox_> very sleepy
stantona has joined #ruby
<Firebox_> i can’t sleep for 48 hour.
troyronda has joined #ruby
<shevy> go sleep
braincrash has joined #ruby
<Firebox_> but i can’t sleep when i lied.
<Firebox_> to bed.
Matip has quit [Ping timeout: 240 seconds]
blackavr has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluehavana has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
mattyohe has quit [Ping timeout: 252 seconds]
mattyohe has joined #ruby
bluehavana has joined #ruby
<The_NetZ> is it standard-ish to wrap a collection of ruby extension classes under a module?
bradhe has quit [Remote host closed the connection]
helpD has quit [Remote host closed the connection]
bradhe has joined #ruby
braincrash has quit [Ping timeout: 276 seconds]
helpD has joined #ruby
andy___ has joined #ruby
<shevy> dunno
<shevy> probably if they should be in the same namespace
GrooveStomp has quit [Ping timeout: 265 seconds]
Deele has quit [Ping timeout: 255 seconds]
<shevy> module Foo; class Bar
<shevy> Foo::Bar.new
<shevy> dunno how it looks from the C API
<shevy> hmm
Firebox_ has left #ruby [#ruby]
<Hanmac> The_NetZ: rb_define_class_under ?
<shevy> rb_mHelloWorld = rb_define_module("HelloWorld");'
FDj has quit [Read error: Connection reset by peer]
FDj has joined #ruby
<The_NetZ> I know how to do it, I'm just asking about good practice
stantona has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
michaeldeol has joined #ruby
<shevy> ho no
<shevy> I mean
<shevy> oh no
<shevy> he is asking Hanmac for good practice
<shevy> :-)
<shevy> Hanmac's C++ code exists out of only macros
helpD_ has joined #ruby
* Hanmac makes a evil laugh
<shevy> it's brainfuck in C++
<The_NetZ> Hanmac: ok Kefka
bradhe has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
stantona has joined #ruby
<The_NetZ> shevy: and no, I'm not asking Hanmac, I'm asking the channel :P
helpD has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
andy___ has quit [Ping timeout: 265 seconds]
<The_NetZ> Hanmac: hey, you may know the answer to this question; would you consider there to be any performance difference, whether good or bad, between using ruby at /usr/bin/ruby or having rolled your own static-compiled executable with embedded ruby?
brunops has joined #ruby
<Hanmac> sorry didnt used embedded ruby before
<The_NetZ> dammit
Deele has joined #ruby
<shevy> hehe
<shevy> you are the first guy to try at embedded ruby
<shevy> and the last!
<The_NetZ> shevy: no; I've done it.
<The_NetZ> I wrote one nasty big executable containing the ruby interpreter, some custom rolled extensions, and static linked libruby-static.a into that
<The_NetZ> it was disgusting
stantona has quit [Remote host closed the connection]
<The_NetZ> now I gotta rewrite alot of it, porting from sdl to glfw+openal and making a real gem :P
timonv has joined #ruby
<The_NetZ> not sure how I feel about swig....
imkmf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_NetZ has quit [Quit: leaving]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_m_g_ has joined #ruby
nilsove has quit [Ping timeout: 246 seconds]
andy___ has joined #ruby
nilsove has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
SlvrDragn has quit [Ping timeout: 276 seconds]
_m_g_ is now known as SlvrDragn
mordof has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
jcs222 has joined #ruby
mansi has joined #ruby
dapz has joined #ruby
dapz has quit [Client Quit]
dapz has joined #ruby
rokob has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
brunops has quit [Quit: leaving]
crucify_me has joined #ruby
rokob has joined #ruby
sdouglas has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
caleb_io has quit [Quit: caleb_io]
benzrf is now known as benzrf|offline
Megtastique has quit []
zachallett has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
troyronda has quit [Remote host closed the connection]
troyronda has joined #ruby
angelazou has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<angelazou> newbie question, if there is this line 'include AbstractPhpVersion::Php54Defs', what is the file name that I should look for?
sambao21 has quit [Quit: Computer has gone to sleep.]
Es0teric has quit [Quit: Computer has gone to sleep.]
caleb_io has joined #ruby
benzrf|offline is now known as benzrf
ascarter has joined #ruby
jamto11 has joined #ruby
Hanmac1 has joined #ruby
troyronda has quit [Ping timeout: 252 seconds]
zachallett has quit [Remote host closed the connection]
<shevy> angelazou there is no binding convention
<shevy> angelazou if you use linux, try: grep -r Abstract *
SilverKey has quit [Quit: Halted.]
Hanmac has quit [Ping timeout: 255 seconds]
<shevy> angelazou if they were to follow a convetion, there would be a directory called: abstract_php_version/ and inside it a file called php_54_defs.rb
meatherly has quit [Remote host closed the connection]
bamyojo14335 has joined #ruby
meatherly has joined #ruby
pu22l3r has joined #ruby
Nexus_x1___ has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Nexus_x1__ has quit [Read error: Connection reset by peer]
Nexus_x1____ has joined #ruby
caleb_io has quit [Quit: caleb_io]
bradhe has quit [Remote host closed the connection]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
meatherly has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Nexus_x1___ has quit [Ping timeout: 252 seconds]
sski has joined #ruby
horrorvacui has quit [Quit: Leaving]
bthesorceror has joined #ruby
Es0teric has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
sdouglas has quit [Remote host closed the connection]
Celm has joined #ruby
bamyojo14335 has quit [Quit: bamyojo14335]
<benzrf> woot woot now runnin ubuntu 14.04
SegFaultAX has joined #ruby
sgen has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
Celm has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
kaspergr_ has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
SilverKey has joined #ruby
Nexus_x1____ has quit [Quit: Computer has gone to sleep.]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
thomasxie has joined #ruby
<benzrf> gnight
benzrf is now known as benzrf|offline
sepp2k has quit [Quit: Leaving.]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
sski has quit [Remote host closed the connection]
troyronda has joined #ruby
sski has joined #ruby
zz_karupa is now known as karupa
jack_rabbit has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
sski has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crucify_me> http://pastie.org/9116317 sorry very basic but I can't get ternary operators to work for if/then/else in either of these examples
brucelee_ has joined #ruby
troyronda has quit [Ping timeout: 252 seconds]
karupa is now known as zz_karupa
helpD_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
helpD has joined #ruby
Lewix has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
rokob has quit [Remote host closed the connection]
mansi has joined #ruby
bradhe has joined #ruby
helpD_ has joined #ruby
helpD has quit [Read error: Connection reset by peer]
estaban has joined #ruby
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
lukec has quit [Quit: lukec]
crucify_me has quit [Remote host closed the connection]
chrisseaton has quit []
hermanmunster has quit [Remote host closed the connection]
SilverKey has quit [Max SendQ exceeded]
hermanmunster has joined #ruby
sdouglas has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
estaban has quit [Ping timeout: 264 seconds]
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
Nexus_x1____ has joined #ruby
angelazou has left #ruby [#ruby]
omosoj has quit [Client Quit]
hermanmunster has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
sdouglas has quit [Ping timeout: 255 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
benzrf|offline is now known as benzrf
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
mikepack has quit []
benzrf is now known as benzrf|offline
jacobsmith has joined #ruby
charliesome has joined #ruby
YuCJ has joined #ruby
frobrob has joined #ruby
helpD_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
helpD has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YuCJ has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
brian___ has quit [Quit: brian___]
helpD has quit [Read error: Operation timed out]
stantona has joined #ruby
rokob has joined #ruby
robbyoconnor has joined #ruby
Celm has joined #ruby
andy___ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stantona has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
horrorvacui has joined #ruby
horrorvacui has quit [Max SendQ exceeded]
horrorvacui has joined #ruby
horrorvacui has quit [Client Quit]
Zesty has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
rokob has quit [Remote host closed the connection]
maletor has joined #ruby
jamto11 has joined #ruby
ahhMichael has joined #ruby
Celm has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
brucelee_ has quit [Ping timeout: 246 seconds]
armyriad has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
hermanmunster has joined #ruby
dik_dak has quit [Quit: Leaving]
hermanmunster has quit [Remote host closed the connection]
timonv has joined #ruby
Aaaal has joined #ruby
shock_one has joined #ruby
phansch has joined #ruby
Aaaal has left #ruby [#ruby]
pu22l3r has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
SonicX has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
pskosinski_ is now known as pskosinski
bthesorceror has joined #ruby
einarj has joined #ruby
Silent__ has joined #ruby
Silent__ has quit [Remote host closed the connection]
Naoe-Kanno has joined #ruby
ahhMichael has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
SHyx0rmZ has quit [Ping timeout: 265 seconds]
hermanmunster has joined #ruby
troyronda has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
RaptorJesus has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 265 seconds]
davedev2_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
jamto11 has quit [Remote host closed the connection]
caleb_io has joined #ruby
Naoe-Kanno has quit [Ping timeout: 265 seconds]
troyronda has quit [Ping timeout: 240 seconds]
hermanmunster has quit [Ping timeout: 276 seconds]
Cache_Money has quit [Quit: Cache_Money]
davedev24 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Morkel has joined #ruby
brucelee_ has joined #ruby
eynj has left #ruby [#ruby]
senayar has joined #ruby
sdouglas has joined #ruby
SHyx0rmZ has joined #ruby
Nexus_x1____ has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmoe____ is now known as dmoe
RaptorJesus has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 252 seconds]
RaptorJesus has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
satnitefigt has joined #ruby
frobrob has quit [Quit: :q]
jamto11 has joined #ruby
frobrob has joined #ruby
Shidash has joined #ruby
mcrmfc has joined #ruby
johncjensen has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
stantona has joined #ruby
senayar has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jamto11_ has joined #ruby
bthesorceror has joined #ruby
stantona has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
Aaaal has joined #ruby
bradhe has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 240 seconds]
bthesorceror has quit [Ping timeout: 265 seconds]
lele has quit [Ping timeout: 265 seconds]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
johncjensen has quit [Remote host closed the connection]
rokob has joined #ruby
humani has joined #ruby
Hanmac has joined #ruby
johncjensen has joined #ruby
humani is now known as _root
arietis has joined #ruby
_root has quit [Client Quit]
andy___ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
rokob has quit [Ping timeout: 252 seconds]
popl has quit [Read error: Operation timed out]
armyriad has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
armyriad has joined #ruby
andy___ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
ktosiek has joined #ruby
senayar has joined #ruby
ponga has quit [Remote host closed the connection]
jle` has quit [Changing host]
jle` has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
senayar has quit [Remote host closed the connection]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
nisstyre has quit [Quit: WeeChat 0.4.3]
mordof has joined #ruby
<mordof> just got to the tutorial point on strings. my first thought: "well.. strings are probably about the same as any other language *starts to skim through it*"... then i got to the list of what methods are available for strings and holy crap o.o
<mordof> strings are gorgeous beasts in ruby
sparrovv has joined #ruby
senayar_ has joined #ruby
lemur_ has quit [Ping timeout: 264 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
sparrovv has quit [Ping timeout: 264 seconds]
popl has quit [Client Quit]
jamto11 has quit [Remote host closed the connection]
popl has joined #ruby
popl has quit [Client Quit]
<lxsameer> My Gemfile.lock and Gemfile conatin "sprockets 2.2.0" . But my application keep using sprockets 2.12.0
<jle`> it's nice to know that people are still learning ruby in 2014
<lxsameer> how can i debug this
<havenwood> lxsameer: are you using `bundle exec`?
<lxsameer> havenwood: yeah
<mordof> jle`: just got a position that ruby is the main language in use - it's a somewhat recent startup.
yfeldblum has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<mordof> jle`: and there's a possibility that the school i just finished from will start teaching ruby as part of its' curriculum in the future
<havenwood> jle`: more than ever
senayar has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
<Hanmac> mordof: at your school ruby or rails?
senayar_ has quit [Ping timeout: 255 seconds]
<mordof> Hanmac: well - i suppose the possibility of rails is a bit higher, but it's not something that's been decided on yet
<jle`> i didn't know schools taught web frameworks :|
<Hanmac> jle`: i was wondering if they teach ruby or rails only
<mordof> jle`: yeah - some of our classes used jquery to speed things up. it sucks in my opinion, but there's not enough time to teach everyone the raw way to do things
abdulsattar has joined #ruby
<mordof> Hanmac: we currently got taught a number of different things. Unfortunately PHP was the predominant server side language - but js, jquery, php, as well as some frameworks in php were used in different classes. so if rails gets introduced, there'll probably be a class for ruby also (there should be anyway)
Aaaal has quit [Quit: Aaaal]
yfeldblum has quit [Ping timeout: 252 seconds]
<Hanmac> hm interesting ...
n0n3 has quit [Remote host closed the connection]
<mordof> we were the guinea pigs... lol. the course was brand new when i entered it
sdouglas has joined #ruby
mcrmfc has joined #ruby
<Hanmac> for myself i already used ruby for tones of shit from Window-GUIs over game logic, into 2d & 3d rendering but i didnt used ruby for webstuff yet
* mordof nods
<mordof> my job is a mix of web and other logic tools for Ruby/Rails
<mordof> and the course being entirely web related would probably have a stronger aspect of rails
<mordof> Hanmac: how did you find the 2d / 3d rendering stuff in ruby?
mcrmfc has quit [Client Quit]
<mordof> been debating doing some 2D simple games with it.
Es0teric has joined #ruby
<Hanmac> mordof i wrote the stuff myself ... i have a binding for sfml (its a bit better than gosu) and i have one for ogre3d (didnt worked with it recently)
robbyoconnor has quit [Ping timeout: 276 seconds]
bricker`LA has joined #ruby
mcrmfc has joined #ruby
abdulsattar has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
kyb3r_ has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
<mordof> Hanmac: by that do you mean that the current libraries (or gems? whatever they're called) for working with 2d/3d aren't what you'd like them to be - so you wrote your own?
<Hanmac> yeah ... there was one for ogre but it was outdated and did not working, and there was gosu, but that used swig and i HATE swig ... yeah and i did write my own
<mordof> ohh ok
<Hanmac> mordof: did you know about wxRuby? i also wrote a clone of that, that works with newer wx and newer ruby all mysef
<mordof> Hanmac: no - i'm brand new to Ruby. don't know much at all about what's available
<Hanmac> mordof wxRuby (or my clone rwx) uses wxWidgets ... its a platfrom independent Window-GUI toolkit
Gooder` has joined #ruby
<mordof> oh that's handy - i was wondering what sort of compatibility Ruby had for Windows GUI
mcrmfc has quit [Quit: mcrmfc]
<mordof> how stable/complete is it?
cmoneylulz has joined #ruby
pwh has quit []
charliesome has joined #ruby
abdulsattar has joined #ruby
Rahul_Roy has joined #ruby
<Hanmac> https://github.com/Hanmac/rwx/ ... most stuff is still missing, but the basics (like Buttons & CheckBoxes) are already implmented, some sample parts too, and its also a bit documented ... but for that i write it all my own its not bad
brucelee_ has left #ruby [#ruby]
<mordof> ooh ok
Gooder has quit [Ping timeout: 255 seconds]
cmoneylulz has quit [Remote host closed the connection]
<mordof> question about Time.. can I set my own time in a Time object?
<mordof> this tutorial seems to state stuff that *might* follow that purpose, but it's not all that clear
<popl> ask the documentation
phansch has quit [Quit: WeeChat 0.4.2]
mercwithamouth has joined #ruby
alpha123 has quit [Ping timeout: 265 seconds]
LexicalScope has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
mansi has joined #ruby
<mordof> ah, yeah - it's explained a lot more clearly there
<Hanmac> Time itself is not changeable, you might want DateTime
<mordof> hm?
alpha123 has joined #ruby
johncjensen has quit [Remote host closed the connection]
larsam has joined #ruby
<Hanmac> hm ok it might not work with datetime too
mansi has quit [Ping timeout: 252 seconds]
<mordof> not sure what you're talking about... Time allows specifying a different date/time for creation and updates and whatnot
jheg has quit [Quit: jheg]
<popl> mordof: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html # the other documentation site, and DateTime if you're interested
relix has joined #ruby
<popl> also «$ ri datetime; ri time»
coder_neo has joined #ruby
<popl> sorry, camelcase it
<mordof> hmmm..
<mordof> so there's Date, Time, and DateTime..
<mordof> :/
combusean has quit [Ping timeout: 252 seconds]
<popl> right
combusean has joined #ruby
<mordof> i guess i'll have to get into a scenario where i'm actually using them to figure out why there's 3 different objects..
<mordof> i'll leave that alone for now
<popl> Hanmac: Aren't DateTime objects immutable?
<Hanmac> popl: yeah i forgot about that
<popl> since it inherits from Date
<popl> the documentation for Time doesn't mention immutability.
<mordof> anyway - i need sleep. thanks for all the assistance :)
<popl> the bill is in the mail
<mordof> :p
sambao21 has quit [Quit: Computer has gone to sleep.]
* mordof is still considered a broke college student
<mordof> lol
sambao21 has joined #ruby
xMopxShell has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<popl> welcome to the real world, kid.
psycho_one has joined #ruby
xMopxShell has joined #ruby
Rahul_Roy has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
sdouglas has quit [Remote host closed the connection]
certa63 has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<certa63> so I bought some rubies from a gem dealer
<certa63> but how do I know if they're legit
<certa63> how do you guys check your gems
Rollabunna has joined #ruby
<certa63> i know a guy who can check diamonds
<certa63> but he cant do rubies
SegFaultAX has quit [Excess Flood]
hermanmunster has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
certa63 has quit [Ping timeout: 240 seconds]
helpD has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
boska has joined #ruby
SegFaultAX has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
Rollabun_ has joined #ruby
troyronda has joined #ruby
razrunelord has joined #ruby
<dseitz> Been waiting forever for the punchline... :S
troyronda has quit [Ping timeout: 255 seconds]
razrunelord has quit [Ping timeout: 264 seconds]
helpD has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 272 seconds]
caleb_io has quit [Quit: caleb_io]
pskosinski has joined #ruby
rokob has joined #ruby
Gooder` has quit [Ping timeout: 276 seconds]
Rollabun_ has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
kyb3r_ has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
psycho_one has quit [Remote host closed the connection]
Astralum has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
Rollabunna has joined #ruby
dawkirst has joined #ruby
chipotle has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
funburn has joined #ruby
x1337807x has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
ponga has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
amclain__ has quit [Quit: Leaving]
abdulsattar has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
tib_ has joined #ruby
tib_ has left #ruby [#ruby]
zigomir has joined #ruby
timonv has joined #ruby
estaban has joined #ruby
havenwood has joined #ruby
jacobsmith has quit [Ping timeout: 265 seconds]
alem0lars has joined #ruby
blackavr has joined #ruby
estaban has quit [Ping timeout: 276 seconds]
anaeem1 has joined #ruby
bradhe has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
lele has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
anaeem1 has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
<jle`> dseitz: i think the joke is that this is a channel discussing rubies
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
yfeldblum has quit [Remote host closed the connection]
einarj has joined #ruby
banister has quit [Client Quit]
havenwood has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
compleatang has quit [Remote host closed the connection]
banister has joined #ruby
compleatang has joined #ruby
Lewix has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
arietis has joined #ruby
Lewix has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
havenwood has joined #ruby
Lewix has quit [Remote host closed the connection]
troyronda has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
maletor has joined #ruby
maletor has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
troyronda has quit [Ping timeout: 252 seconds]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
nfk has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
evenix has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<RubyPanther> >> Time.at( 0x7fffffff )
<eval-in> RubyPanther => 2038-01-19 04:14:07 +0100 (https://eval.in/142700)
hermanmunster has joined #ruby
Milly_Bays has quit [Ping timeout: 264 seconds]
hermanmunster has quit [Remote host closed the connection]
ziyadb_ has joined #ruby
hermanmunster has joined #ruby
narcan has joined #ruby
mansi has joined #ruby
blackavr has quit [Quit: blackavr]
yacks has quit [Ping timeout: 265 seconds]
ktun has joined #ruby
yacks has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has joined #ruby
funburn has quit [Quit: funburn]
hermanmunster has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
banister has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Quit: Leaving]
Rahul_Roy has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
pskosinski has joined #ruby
naw_ has quit [Ping timeout: 264 seconds]
cover has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
rokob has quit [Remote host closed the connection]
DrOwl has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fantazo has joined #ruby
senayar has joined #ruby
bradhe has joined #ruby
maximski has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 276 seconds]
combusean has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
[0x1a] has joined #ruby
Rahul_Roy has quit [Ping timeout: 240 seconds]
boska has quit [Quit: Connection closed for inactivity]
AlexRussia has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
aspiers has joined #ruby
chipotle has quit [Quit: cya]
crzrcn has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KanKava has joined #ruby
troyronda has joined #ruby
klaut has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
Hanmac1 has joined #ruby
andrewlio has joined #ruby
helpD has joined #ruby
rokob has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
troyronda has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
rokob has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
rippa has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
maxmanders has joined #ruby
kitak has joined #ruby
helpD has quit [Remote host closed the connection]
helpD has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
helpD has quit [Ping timeout: 255 seconds]
Firebox has joined #ruby
<Firebox> poem['toast'] = 'honeydew' <—— this is list?
psycho_one has joined #ruby
<apeiros> poem is most likely a Hash
<apeiros> you can check by using poem.class
jamto11 has joined #ruby
bthesorceror has joined #ruby
Squarepy has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<Xeago> apeiros: I'm having issues on a ton of servers fetching puppet 3.4.3 over gems
Hanmac has joined #ruby
<apeiros> Xeago: :-S
<Xeago> could you do a gem fetch puppet --version 3.4.3?
<apeiros> will try
<Xeago> I asked in #puppet, but they all seem to succeed
<apeiros> specific rubygems version?
<Firebox> it exist only ruby?
<apeiros> trying with $ gem -v -> 2.2.2
<apeiros> Firebox: "it"?
<Firebox> poem['toast'] = 'honeydew'
<apeiros> Xeago: works for me
<Xeago> 1.3.6 :\
<apeiros> $ gem fetch puppet --version 3.4.3
<apeiros> Downloaded puppet-3.4.3
<apeiros> Fetching: puppet-3.4.3.gem (100%)
<Xeago> yea, I'll gather that fact on my servers
<Xeago> that might be it
<apeiros> 1.3.6 is quite ancient :)
<Xeago> it is really ancient
<Xeago> we're moving to 2.1 after next week
<apeiros> ruby 2.1?
<apeiros> or rubygems 2.1?
<Xeago> ruby
<apeiros> nice
<Xeago> our test machines already run that for a month now
<apeiros> we are supposed to get a ~10w maintenance slot starting in a couple of weeks
<Xeago> :O
<apeiros> curious how much we can lift to 2.1 and rails 4.1
<Xeago> yea
<apeiros> hey, after 5y of basically *zero* :)
<apeiros> there's thousands of LoC which needed review :(
<apeiros> no chance we can do that
<Xeago> 10w is big chunk of time tho
<apeiros> and there's some costly upgrades in this - e.g. syck -> psych will certainly cost us a week
<Xeago> you on ruby 1.9 or upgrading from 1.8?
crystal77 has joined #ruby
<apeiros> ~90% on 1.9 or greater
<Xeago> ok
<apeiros> but still using syck
kilk_ has joined #ruby
charliesome has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
<Xeago> the default ruby on our systems is 2.0, but most of our apps are deployed in a contained rbenv
<Xeago> and packaged in a debian pkg
<apeiros> Firebox: no, many languages have hashmap implementations
<apeiros> Firebox: not all languages use the same syntax, though
<apeiros> Firebox: also not many languages allow []= to be a method name
<Firebox> ok thanks
<Firebox> apeiros:
bthesorceror has quit [Ping timeout: 255 seconds]
hermanmunster has joined #ruby
hermanmunster has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
evenix has quit [Remote host closed the connection]
bradhe has joined #ruby
blackmesa has joined #ruby
jonno11 has joined #ruby
narcan has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
fannye has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
pskosinski has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
mrnugget has joined #ruby
thomasxie has left #ruby [#ruby]
aspiers has quit [Ping timeout: 255 seconds]
pskosinski has joined #ruby
<Firebox> abc = “i love apple”
<Firebox> abc[‘love’] = like
<Firebox> what is it?
<Firebox> i thaink that it is not hash.
<Firebox> i think that is is not hash.
Martxel has joined #ruby
lkba has joined #ruby
jhass|off is now known as jhass
mengu has joined #ruby
mengu has joined #ruby
ndrei has joined #ruby
havenwood has joined #ruby
SHyx0rmZ has joined #ruby
fgo has joined #ruby
<apeiros> Firebox: you're correct, it's not a hash. it's a string. and String too has []= as method
<apeiros> Firebox: in your bash, type `ri String#[]=` (without the ` quotes)
<Firebox> []= is method.
havenwood has quit [Ping timeout: 240 seconds]
<Firebox> thanks apeiros
<apeiros> yes, []= is a method, you define it as: def []=(key, value)
<apeiros> you can have more than 1 key argument, the last argument is the value
eregon has quit [Ping timeout: 252 seconds]
<Firebox> it exist ruby only?
<Xeago> some oter languages have it too, others don't have it as a method but as a language construct
<apeiros> dude, there's some >200 languages out there
arietis has joined #ruby
<apeiros> no way I know all of them :)
<Firebox> ok thanks
razrunelord has joined #ruby
<Xeago> others rely on map.get('key')
<apeiros> also, why would it even matter?
andrewlio has quit [Quit: Leaving.]
nerdman has joined #ruby
robbyoconnor has joined #ruby
srji has joined #ruby
<Firebox> Dir is class like java?
eregon has joined #ruby
<Xeago> Firebox: what?
<Firebox> Dir is class?
<Xeago> Do you mean: "Dir is a class, just like java's … class?"?
<Firebox> Dir.entries
klaut has quit [Remote host closed the connection]
<Firebox> yes Xeago
<jhass> you can find out with Dir.class
<jhass> if that responds Class it's a class
<Firebox> thanks jhass
<Xeago> >> Dir.is_a? Class
<eval-in> Xeago => true (https://eval.in/142723)
<certainty> imho the only valuable information in the most recent DHH article on testing is the linked pdf. The author has some valid points. Not all conclusions appear sound to me though
razrunelord has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
zigomir has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
yfeldblum has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Speed has joined #ruby
<Firebox> do |f| <————— what is it?
franzip has joined #ruby
<Firebox> i dont see it before.
coder_neo has quit [Quit: Leaving]
zigomir has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
<Xeago> Firebox: it is a block with 1 argument
rm_ has quit [Remote host closed the connection]
<Firebox> argument?
<Xeago> >> [1,2,3].each do |i| puts i; end
<kilk_> i am reading article , and ruby is slower about 25 times than 'c', what do you think , is it true?
<Xeago> >> [1,2,3].each { |i| puts i }
<eval-in> Xeago => 1 ... (https://eval.in/142725)
mansi has joined #ruby
rm_ has joined #ruby
<Xeago> kilk_: it doesn't matter, my time is more expensive than cpu cycles
<Xeago> for many usecases
<jhass> kilk_: slower in execution speed, but about that amount faster to write
Speed has left #ruby [#ruby]
ixti has quit [Ping timeout: 264 seconds]
<Xeago> >> [1,2,3].map { |i| i * 3 }
<eval-in> Xeago => [3, 6, 9] (https://eval.in/142727)
<Xeago> Firebox: does that make sense?
<jhass> I hope crystal will make it into a usable state, it's a very nice compromise between C and ruby already
<Firebox> i dont know ||
<Xeago> Firebox: it is not a special thing
<Firebox> ok
<Xeago> when calling a method that accepts a block which expects an argument
<Xeago> |a,b,c| are arguments to the block
<Xeago> so #each calls the block with 1 argument at a time obtained from the array
<Xeago> in the example, the block accepts 1 argument and prints it
<kilk_> as undestnd this is crystal
<jhass> yes
mercwithamouth has joined #ruby
<shevy> crystal meth!
<Firebox> thanks Xeago
mansi has quit [Ping timeout: 240 seconds]
psyko666 has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
<Firebox> print “abc” <—— abc is argument. why dont use |abc|?
<jhass> because it's not block argument
<apeiros> because one is passing in and the other is defining
<jhass> print regular_argument {|block_argument| block_code }
<apeiros> `def print(arg)` # <-- this is the equivalent to `do |arg|`
<apeiros> print "foo" # <-- this is the equivalent to `yield "foo"` with blocks
<apeiros> a block is like a method without a name.
<Xeago> when you pass a block, it is like also providing an inline method to it
mikecmpbll has joined #ruby
Rahul_Roy has joined #ruby
bamyojo14335 has joined #ruby
<Firebox> i am likly to understand it thanks
<shevy> hehehe
fgo has quit [Remote host closed the connection]
<shevy> you just love the | too much
<Firebox> i don’t see it before.
bradhe has joined #ruby
hl has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
sparrovv has quit [Remote host closed the connection]
Squarepy has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
diegoviola has quit [Remote host closed the connection]
<Hanmac> kilk_: depends on the bottleneck ... i tested 3d rendering in C++ and in Ruby ... both got similar fps
abdulsattar has joined #ruby
alem0lars has quit [Quit: Going AFK...]
aspiers has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kilk_> i tried run bin/crystal --help and got error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
<shevy> yeah for objects in 4 colours
<shevy> and 8 bytes
<kilk_> coluf u help fix this prbl
<shevy> kilk_ that means you most likely don't have a libpcre.so.3 file
<shevy> I have libpcre.so.1.2.3 and libpcre.so.0.0.1
<shevy> the pcre source archive is at ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
<shevy> those who use the source can happily download pcre and compile it
<shevy> those who use a distribution are at the mercy of their providers, so one ought to find the package that includes that versioned .so file
mostlybadfly has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
metamaterial has quit [Ping timeout: 272 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
kith has joined #ruby
<kilk_> arch does not have libgc
seuros has joined #ruby
arietis has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
spider-mario has joined #ruby
Rahul_Roy has quit [Quit: Leaving]
havenwood has joined #ruby
helpD has joined #ruby
alem0lars has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
troyronda has joined #ruby
helpD has quit [Ping timeout: 264 seconds]
<shevy> what is libgc
Rollabunna has joined #ruby
<shevy> hmm it moved
fgo has joined #ruby
<shevy> so when we have determined that name, sure enough arch has it: https://www.archlinux.org/packages/extra/i686/gc/
bamyojo14335 has quit [Read error: Connection reset by peer]
bamyojo14335 has joined #ruby
frobrob has quit [Quit: SIGILL]
frobrob has joined #ruby
maximski has quit []
claymore has joined #ruby
DouweM has joined #ruby
yfeldblum has joined #ruby
<kilk_> libgc-dev: conservative garbage collector for C (development
rokob has joined #ruby
relix has joined #ruby
<kilk_> created 2 symlink seems fixed error
frobrob has quit [Client Quit]
frobrob has joined #ruby
<kilk_> what do you think , this links are good?
<kilk_> sudo ln -s /lib/libpcre.so.1.2.3 /lib/libpcre.so.3
<kilk_> sudo ln -s /lib/libunwind.so.8.0.1 /lib/libunwind.so.7
anaeem1_ has joined #ruby
relix has quit [Client Quit]
<shevy> dunno
popl has quit [Ping timeout: 264 seconds]
<shevy> I always compile from source
claymore has quit [Ping timeout: 252 seconds]
estaban has joined #ruby
<shevy> and thus always use the latest
yfeldblum has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Remote host closed the connection]
mansi has joined #ruby
bamyojo14335 has quit [Quit: bamyojo14335]
<shevy> the latest pcre is 8.35
rokob has quit [Ping timeout: 252 seconds]
<shevy> It has: libpcre.so libpcre.so.1 libpcre.so.1.2.3
sski has joined #ruby
<shevy> no idea which version has libpcre.so.3
claymore has joined #ruby
nerdman has quit [Quit: leaving]
cina has joined #ruby
sparrovv has joined #ruby
<cina> what is wrong with this line: `puts {"something" => 42}`
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> cina: nothing particulary
<Xeago> it is probably not what you want
<Xeago> but it should run
<cina> I get SyntaxError: syntax error, unexpected tASSOC, expecting '}'
<Mon_Ouie> Yeah, it's a syntax error
<Mon_Ouie> Due to ambiguity between hashes and blocks
estaban has quit [Ping timeout: 265 seconds]
<cina> hmm
mansi has quit [Ping timeout: 240 seconds]
<cina> I see
<Mon_Ouie> Put parentheses around the argument for it to work
<shevy> >> puts({"something" => 42})
<eval-in> shevy => {"something"=>42} ... (https://eval.in/142731)
<shevy> cina don't you love () :)
<cina> Mon_Ouie: thank you!
<Mon_Ouie> (Or you can remove the curly braces, that will work too)
charliesome has joined #ruby
<cina> shevy: I do, but I couldn't get what was causing the error :)
<cina> now I know
kirun has joined #ruby
roadie has quit [Remote host closed the connection]
bradhe has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Excess Flood]
sparrovv has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
dawkirst has quit [Ping timeout: 240 seconds]
helpD has joined #ruby
psycho_one has quit [Remote host closed the connection]
Milly_Bays has joined #ruby
pen has joined #ruby
<kilk_> couldnot fix problem
ping-pong has quit [Read error: Operation timed out]
Deele has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<kilk_> seems crystal on arch is unusable
<jhass> kilk_: yeah the sonames there differ from the build host, let me send you my compile for bootstrapping
osvico has joined #ruby
j0n3 has joined #ruby
danshultz has joined #ruby
mengu has quit []
claymore has quit [Quit: Leaving]
_justin has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> kilk_ arch is fine, crystal folks are just incompetent so they had to provide old binaries
<jhass> extract that to deps
<jhass> shevy: I'd rather blame debian/ubuntu folks for their silly sonames there
eka has joined #ruby
<jhass> well and an outdated libunwind
<shevy> debian isn't even a distribution, it's more of a disaster
troyronda has quit [Remote host closed the connection]
<shevy> arch needs to challenge debian, http://distrowatch.org/ lists it at position 8 for daily hit counts
<jhass> but crystal is totally in the early alpha stage, so it's fine for them to develop for one target environment for now
<shevy> kilk_ write them an email
<jhass> kilk_: once you got that run make to build your own and git pull && make to update
<kilk_> i cannot unpack file(
<kilk_> will try
<jhass> hm, extracts fine here
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
ping-pong has joined #ruby
<kilk_> yes
<kilk_> i had folder with same name
<shevy> hehe
phoo1234567 has joined #ruby
phoo1234567 has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 276 seconds]
mehlah has joined #ruby
diegoviola has joined #ruby
abdulsattar has joined #ruby
havenwood has joined #ruby
<kilk_> while requiring "prelude": can't find require file 'prelude'
<Firebox> File.open("/Home/comics.txt", "a") do |f| <—— what mean?
phoo1234567 has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
<Xeago> Firebox: which part of it?
<jhass> kilk_: does bin/crystal samples/mandelbrot.cr --run work?
<Firebox> do |f|
<Xeago> It opens a file at the specified location in mode 'a', it provides a file object, f, as argument to the block
<Firebox> this part.
<jhass> Firebox: do |f| and {|f| are the same
<Xeago> so after that line, there follows a block, that uses f
<Firebox> do |f| == {|f|}
<jhass> do |f| end == {|f| }
<Firebox> oh
<Firebox> i see
<Firebox> jhass:
greenrose has joined #ruby
Hanmac has joined #ruby
greenrose has quit [Excess Flood]
<Firebox> thanks
robbyoconnor has quit [Ping timeout: 252 seconds]
<jhass> kilk_: where do you get that? is that all output? I vaguely remember it but don't remember what I did to make it go away
havenwood has quit [Ping timeout: 240 seconds]
brian___ has joined #ruby
j0n3 has quit []
<kilk_> one moment
einarj has joined #ruby
lxsameer has quit [Quit: Leaving]
chrisseaton has joined #ruby
<shevy> Firebox keep in mind that in ruby, a do/end block is almost the same as enclosing it in {}
<shevy> Firebox the ruby parser needs to resolve any ambiguity
red234324 has joined #ruby
<Firebox> shevy: i understand that do end == {}
vadviktor has quit [Read error: Connection reset by peer]
<Firebox> i dont understand ||
<Firebox> i dont know ||
<Xeago> Firebox: it is just syntax for defining the names of block arguments
<Firebox> oh
senayar has quit [Read error: Operation timed out]
<Firebox> i see.
<Firebox> thanks Xeago
<Hanmac> Firebox: do end are mostly equal to {} ... both are blocks, but have different preference ... (or how that word was)
<Xeago> Hanmac: precedence
<Firebox> i heard your explanation so i understand it.
_justin has quit [Quit: _justin]
<Firebox> ok thanks Hanmac
<Hanmac> thanks Xeago, i knew it was something with pre***ce
<Xeago> p10e :)
<Hanmac> ;D
senayar has joined #ruby
<shevy> something with ********
<shevy> ********* **** ********
<shevy> ****!!!!!
<shevy> anyone speak python here
<Xeago> szzszzc
<Xeago> czzssccsss
<shevy> haha yeah
<shevy> I can not join ##python with a nickname called python :(
einarj has quit [Ping timeout: 265 seconds]
<jhass> p1th0n
<jhass> try that
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
troyronda has joined #ruby
roadie has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
<Hanmac> shevy so ##python is written parselmouth? ;P
troyronda has quit [Remote host closed the connection]
<DouweM> *parseltongue ;)
<jhass> hm, so we are gnomes hoarding gems in our caves?
<shevy> *parselpants
<shevy> I hoard gems
troyronda has joined #ruby
<shevy> all your gems are belong to me
carraroj has joined #ruby
[0x1a] has quit [Quit: Connection closed for inactivity]
<Nowaker> shevy: remember a conversation about shoes the framework? after having it thought over, i wouldnt go fo that. i'd create a standalone nodejs app with the whole webkit embedded, and serve an angularjs webapp.
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
<shevy> yeah I remember
anaeem1_ has quit [Ping timeout: 264 seconds]
<Nowaker> my friend did so and its really promising.
<shevy> you liked the java bits it had
<shevy> javascript is killing ruby :(
<kilk_> jhass, output from command ./crystal test.cr
<Nowaker> yeah, just because java is almost everywhere. but since i can produce a binary with the whole nodejs and webkit embedded, then i need no external component at all.
<jhass> kilk_: and the only output?
<jhass> kilk_: always go through bin/crystal
<jhass> kilk_: bin/crystal test.cr --run
<kilk_> unpack into ./bi/ folder?
<kilk_> bin
Hanmac1 has joined #ruby
mansi has joined #ruby
<jhass> no
<jhass> unpack to deps/
<kilk_> where find deps?
elaptics`away is now known as elaptics
<kilk_> i dont have exp with llvm
<jhass> bin/crystal --setup should have created it
<jhass> and downloaded that ubuntu crystal binary to it
<jhass> which you want to overwrite with mine
bradhe has joined #ruby
jonno11 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
<shevy> Nowaker so there javascript kills java as well :)
sepp2k has joined #ruby
sparrovv has joined #ruby
<Nowaker> shevy: certainly. but also ruby kills java, i have been a java/jvm programmer for 5 years.
mansi has quit [Ping timeout: 264 seconds]
<shevy> well
<shevy> I see javascript as a big competitor to ruby
AlexRussia has quit [Remote host closed the connection]
<shevy> java less so because most often people use it because it will be faster or more reliable for really large projects
<shevy> when html5 came out, there was a big negative impact it had on all ruby GUI toolkit bindings
<shevy> fxruby died
bradhe has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
<shevy> the sole qtruby maintainer vanished
<shevy> ruby-gnome found it difficult to transition into gtk3 (which also happened during that phase)
Guest86355 is now known as juni0r
abdulsattar has quit [Ping timeout: 264 seconds]
<Nowaker> i like ruby more than nodejs in general, but there are some types of projects where im gonna use nodejs.
<shevy> :(
<pskosinski> Ruby + GUI = hell :(
* pskosinski is too silly to do something more than complaining in that matter
<Nowaker> e.g. together with my friend, who is a nodejs hacker, we develop this https://github.com/CodeCharmLtd/http-master
<Xeago> whats the problem with deploying apps that listen on localhost?
hermanmunster has joined #ruby
mansi has joined #ruby
<Hanmac1> shevy: yeahyeah i am still working on rwx ... i did recently fixed some stuff for older ruby versions nearly at 4o'Clock in the morning ;P
<Nowaker> a config friendly proxy server, with simple some http server features
meatherly has joined #ruby
<shevy> Hanmac1 \o/ you are the last hope of ruby
<shevy> ruby-gnome has only one main japanese developer (though a few helper guys)
cina has quit [Remote host closed the connection]
<Hanmac1> shevy: thats sounds much worse as it should be right? ;P
<shevy> Hanmac1 well
Hanmac1 is now known as Hanmac
<shevy> Hanmac1 without you there would not be a rwx right now
<Nowaker> i coded autodetection of certificates. why the hell specify what vhost serves what cert with what private key and what cert bundle if it can be totally automated?
<shevy> people need to start using rwx
<Nowaker> and those vhosts definition in apache or nginx... grrrr
SegFaultAX has quit [Excess Flood]
<Nowaker> life is so easier with http-master once i started using it in production for my business (www.atlashost.eu)
SegFaultAX has joined #ruby
cina has joined #ruby
Xeago has quit [Remote host closed the connection]
<pskosinski> I wonder… Can I somehow integrate e.g. webkit with Ruby, so I can use HTML+CSS for interface and events like onclick to trigger Ruby functions… and alter DOM…?
aspiers has quit [Ping timeout: 264 seconds]
rdark_ has joined #ruby
* pskosinski hates the way you create interface in GTK/Qt/etc. and loves HTML+CSS
naw has joined #ruby
rdark has quit [Ping timeout: 276 seconds]
claymore has joined #ruby
rmillerx has joined #ruby
<srji> pskosinski: you would like to create UI for native applications in HTML+CSS?
<pskosinski> srji: Remove "native" :p
<pskosinski> Some apps don't need to look native… imho
Guedes0 has joined #ruby
elaptics is now known as elaptics`away
Ginfuru_ has joined #ruby
troyronda has quit [Remote host closed the connection]
<srji> web-applications use HTML+CSS and are not native thought
Ginfuru_ has quit [Ping timeout: 252 seconds]
carraroj has quit [Ping timeout: 252 seconds]
bamyojo14335 has joined #ruby
rm_ has joined #ruby
elaptics`away is now known as elaptics
Xeago has joined #ruby
ixti has joined #ruby
<Hanmac> pskosinski: hm wxWidgets has a WebView control for displaying html stuff ... and there is a ruby binding for that (but does not have WebView yet)
MR-0x41 has joined #ruby
akonny has joined #ruby
Milly_Bays has quit [Ping timeout: 264 seconds]
<MR-0x41> Hi all Ruby programmers
<kilk_> jhass, working
mansi has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
troyronda has joined #ruby
davedev24 has joined #ruby
<kilk_> working mandelbrot
mansi has joined #ruby
Slavox is now known as Slavox|AFK
hermanmunster has joined #ruby
Xeago has quit [Remote host closed the connection]
<MR-0x41> |^_^|
<jhass> kilk_: \o/
<MR-0x41> :-?
MR-0x41 has left #ruby [#ruby]
havenwood has joined #ruby
zigomir has joined #ruby
Xeago has joined #ruby
<shevy> pskosinski there are ruby webkit bindings in rubygnome
hermanmu_ has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
einarj has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
Guedes0 has quit [Ping timeout: 252 seconds]
claymore has quit [Quit: Leaving]
troyronda has quit [Remote host closed the connection]
claymore has joined #ruby
estaban has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
klaut has joined #ruby
lukec has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
AirNest has joined #ruby
alem0lars has quit [Quit: alem0lars]
AirNest has left #ruby [#ruby]
frobrob has quit [Quit: split]
zigomir has quit [Remote host closed the connection]
abra has joined #ruby
chipotle has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
estaban has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
sparrovv has quit [Remote host closed the connection]
bradhe has joined #ruby
bamyojo14335 has quit [Quit: bamyojo14335]
yfeldblum has joined #ruby
rokob has joined #ruby
Guedes0 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
sparrovv has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
Slavox is now known as Slavox|AFK
kilk_ has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
rokob has quit [Ping timeout: 276 seconds]
keen_____ has quit [Ping timeout: 276 seconds]
Milly_Bays has joined #ruby
manlycode has joined #ruby
jonno11 has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
haroldwu has quit [Quit: leaving]
pika_pika has joined #ruby
chrisseaton has quit []
haroldwu has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
Slavox|AFK is now known as Slavox
Milly_Bays has quit [Client Quit]
Milly_Bays has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
troyronda has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
troyronda has quit [Remote host closed the connection]
claymore has joined #ruby
WillAmes has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 252 seconds]
omosoj has joined #ruby
lukec has quit [Quit: lukec]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
Hanmac has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hermanmu_ has quit [Remote host closed the connection]
Riking has joined #ruby
Rollabunna has joined #ruby
hermanmunster has joined #ruby
Ginfuru_ has joined #ruby
keen_____ has joined #ruby
jamto11 has joined #ruby
troyronda has joined #ruby
<shevy> is it possible to generate offline docu of a ruby gem?
<Hanmac> shevy "gem rdoc Generates RDoc for pre-installed gems"
<shevy> hmm
hermanmunster has quit [Ping timeout: 276 seconds]
alexju has quit [Remote host closed the connection]
cina has quit [Ping timeout: 255 seconds]
fgo has quit [Remote host closed the connection]
phansch has joined #ruby
thomasxie has joined #ruby
akonny has quit [Quit: akonny]
roadie has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
elaptics is now known as elaptics`away
Zesty has joined #ruby
ponga has quit [Quit: Leaving :)]
jetblack has quit [Quit: leaving]
evenix has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
andrewlio has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
ponga has quit [Client Quit]
sebastianb has joined #ruby
senayar has joined #ruby
havenwood has joined #ruby
helpD has quit [Remote host closed the connection]
helpD has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
sambao21 has joined #ruby
postmodern has quit [Quit: Leaving]
helpD has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
razrunelord has joined #ruby
bthesorceror has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
manlycode has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
razrunelord has quit [Ping timeout: 255 seconds]
MrJoshua has joined #ruby
SilkFox has joined #ruby
manlycode has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
kilk_ has joined #ruby
phinfonet has joined #ruby
yfeldblum has joined #ruby
fgo has joined #ruby
senayar has joined #ruby
fgo has quit [Read error: No route to host]
alem0lars has joined #ruby
AlexRussia has joined #ruby
fgo has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
carraroj has joined #ruby
troyronda has quit [Remote host closed the connection]
jonno11 has joined #ruby
psyko666 has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 255 seconds]
milky has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
senayar has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
diegoviola has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
senayar has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<kilk_> interesting results ) http://pastebin.com/MjaQmh0q
mansi has joined #ruby
doodlehaus has joined #ruby
<kilk_> 15 times faster crystal
senayar_ has joined #ruby
<kilk_> 8-15 times
red234324 has quit [Quit: Leaving]
zigomir has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
milky has left #ruby ["Textual IRC Client: www.textualapp.com"]
alem0lars has quit [Quit: Going AFK...]
senayar has quit [Ping timeout: 265 seconds]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
rippa has joined #ruby
softwaredoug has joined #ruby
dawkirst has joined #ruby
softwaredoug has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Mon_Ouie has quit [Ping timeout: 276 seconds]
phinfonet has quit [Ping timeout: 255 seconds]
alem0lars has joined #ruby
ta has joined #ruby
dawkirst has quit [Ping timeout: 255 seconds]
troyronda has joined #ruby
phinfonet has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
s3ri0us has joined #ruby
abra has quit [Ping timeout: 265 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
hermanmunster has joined #ruby
claymore has joined #ruby
abra has joined #ruby
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
Matip has joined #ruby
Matip has joined #ruby
Lewix has quit [Remote host closed the connection]
troyronda has quit [Remote host closed the connection]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
kilk_ has quit [Ping timeout: 240 seconds]
Guedes0 has quit [Ping timeout: 276 seconds]
sski has quit [Ping timeout: 240 seconds]
troyronda has joined #ruby
Matix has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
aspiers has quit [Ping timeout: 265 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
diegoviola has joined #ruby
s2013 has joined #ruby
maletor has joined #ruby
sski has joined #ruby
rostam has joined #ruby
jxf has joined #ruby
<rostam> HI is there a good IDE for ruby with auto completion feature? thx
sski has quit [Remote host closed the connection]
<havenwood> rostam: RubyMine seems nice.
srji has quit [Ping timeout: 252 seconds]
<jxf> rostam: A lot of people like RubyMine.
sski has joined #ruby
<jxf> You can also get autocompletion with vim, emacs, SublimeText, (insert favorite text-based editor here).
<jxf> The level of sophistication there varies somewhat though.
<rostam> havenwood, jxf thanks
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
stantona has joined #ruby
amundj has quit [Ping timeout: 252 seconds]
WilfredTheGreat has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
sski has joined #ruby
bradhe has joined #ruby
sparrovv has quit [Remote host closed the connection]
ahhMichael has joined #ruby
JimHy has joined #ruby
sski has quit [Remote host closed the connection]
<JimHy> How do I get a list of library depencies that irb is using? Thanks!
sski has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<jhass> hm, should be only readline which is in stdlib of course
HashNuke has joined #ruby
<JimHy> jhass: And if I have a bug in realine, what then?
<jhass> nothing
<JimHy> jhass: I cannot use the letter 'b' in irb
<jxf> JimHy: By "library dependencies", do you mean things that have been loaded so far, or do you mean system-level dependencies?
thomasxie has quit [Remote host closed the connection]
<jhass> huh?
<havenwood> JimHy: 'b' is not allowed in Ruby
<havenwood> JimHy: j/k j/k
<JimHy> havenwood: haha
<havenwood> JimHy: Have you tried Pry? It's great!
<havenwood> JimHy: gem install pry && pry
<jhass> JimHy: maybe start telling us your error messages
<JimHy> havenwood: I can laugh now because I use rb-readline in rails projects.
<JimHy> still frustrating
<JimHy> havenwood: tried pry
<JimHy> havenwood: still use pry, fine tool
<jxf> JimHy: is there anything odd in your ~/.irbrc?
<JimHy> I don't get an error message. Is there a logger I can check or fire up
<JimHy> ?
<jhass> then say what you expect and what happens
<jxf> JimHy: when you say that you "can't use it", what does that mean? you type "b" and nothing happens?
<JimHy> I try to type the letter 'b'. I get the error beep, no output.
troyronda has quit [Remote host closed the connection]
<jxf> that sounds like "b" is mapped to "\b" for you
<jxf> not sure how that would happen
bradhe has quit [Ping timeout: 252 seconds]
<JimHy> how in the...?
<jhass> JimHy: did you try another terminal emulator?
<jxf> just out of curiosity, can you type "a" or "n"?
sski has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
<JimHy> jxf: Yes.
<jxf> JimHy: what's your TERM variable?
<JimHy> jhass: Absolutly. Doesn't work in iTerm or Terminal.
<jxf> ("echo $TERM")
<JimHy> jxf: xterm-color
<jxf> ah, OSX?
fantazo has quit [Quit: Verlassend]
<JimHy> yes
<JimHy> jxf: OMG, it's a known bug?!?!
fantasticsid has joined #ruby
brian___ has quit [Quit: brian___]
mcrmfc has joined #ruby
<jxf> that example is for Python's shell, but I think the issue is the same
<jxf> can you type "B"?
<jxf> (as in, the capital letter)
razrunelord has quit [Ping timeout: 264 seconds]
<JimHy> jxf: Yes, I can type 'B'
<jxf> how did you install Ruby?
<JimHy> rbenv
<JimHy> but I'm pretty sure I installed rbenv because it wasn't working in rvm
<jxf> I have to say I'm stumped =/
<jxf> but hopefully that answer puts you on the right track
arietis has quit [Quit: Computer has gone to sleep.]
<JimHy> jxf: I've tried a number of times. No one, including myself :/, has found a decent solution
<jxf> I use xubuntu 14.04 and there's all kinds of terminal weirdness across different environments, but haven't encountered this
<JimHy> Like I said, I can use rb-readline in ruby projects, it's just a little inconvenient.
<JimHy> Yeah, it's a weird one.
<jxf> I'm guessing it's because whatever version of readline lib your Ruby/Python/... is hooking into has this behavior
<jxf> or, failing that, you have something strange in ~/.irbrc, ~/.inputrc, etc.
<JimHy> jxf: Yes, it is. That's why my original question was about libraries, etc.
<JimHy> jxf: I've tried different gcc packages to no avail.
Ginfuru_ has quit [Quit: Computer has gone to sleep.]
<JimHy> jxf: At one point I pondered getting a new machine! Silly.
yfeldblum has joined #ruby
<jxf> JimHy: a very programmer solution to the hardware problem :)
mcrmfc has quit [Quit: mcrmfc]
<JimHy> haha, yep
<JimHy> thanks for your input, all
mcrmfc has joined #ruby
<mikecmpbll> eh, should you use accessors or class variables within the same class? does it make any difference? is there a code style reason to do either?
<mikecmpbll> instance*
<mikecmpbll> i.e. @some_var vs some_var where attr_accessor :some_var
<jxf> mikecmpbll: usually if you define the accessor you would use the method form (some_var), or if you don't you would use the instance variable (@some_var)
<jxf> that keeps the behavior consistent
<mikecmpbll> fair do's, that suits me. thanks jxf :)
<jxf> mikecmpbll: for example, a common pattern is to do something like "def x; @x ||= []; end" to initialize the instance variable the first time it's used
<mikecmpbll> ah.
lkba has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
<jxf> mikecmpbll: but if you used @x here that would be a bug because it wouldn't get initialized through the accessor
yfeldblum has quit [Ping timeout: 252 seconds]
<mikecmpbll> interesting point, thanks man
<jxf> <3
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badhatter has quit [Read error: Connection reset by peer]
klaut has joined #ruby
<JimHy> jxf: You aren't going to believe this, or maybe you will. "bindkey -v" was the culprit in my .inputrc
<jxf> JimHy: yay :)
<JimHy> Yay!!!! <3 <3 <3
<jxf> you just saved yourself ~US$2,000 ;)
<JimHy> lol
<JimHy> I don't even care why
fgo has quit [Ping timeout: 240 seconds]
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
baroquebobcat has joined #ruby
agjacome has joined #ruby
arietis has joined #ruby
stantona has quit [Remote host closed the connection]
pwh has joined #ruby
<seuros> can somebody tell me what is the equivalent of "assert_same" in RSpec ?
<seuros> i tried the expect(subject).to eq(value)
<jhass> but?
nullie has joined #ruby
akonny has joined #ruby
nullie has left #ruby ["Leaving"]
<seuros> it not the same, because test:unit has assert_equal and assert_same
Guest9754 has joined #ruby
nullie has joined #ruby
<jhass> what does assert_same do?
<jhass> check object identity?
jamto11_ has joined #ruby
<seuros> yep
<jhass> expect(subject).to equal(value) then
<nullie> is there fxruby channel? or anything else around fox toolkit?
<mikecmpbll> seuros: .should equal
<mikecmpbll> oh yeah
pu22l3r has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
<seuros> jhass: Thank you very much
<jhass> eq is ==, eql is eql? and equal is equal? iirc
<havenwood> and `be` is #equal? too methinks
andy___ has joined #ruby
<havenwood> i should learn better rspec, i usually minitest but sure seems rspec is popular
<seuros> jhass: i'm migrating state_machine to rspec
SilkFox_ has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
crystal77 has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
stantona has joined #ruby
pu22l3r has quit [Remote host closed the connection]
sdouglas has joined #ruby
tjr9898 has joined #ruby
Cache_Money has joined #ruby
fantasticsid has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
Xeago has joined #ruby
Hobogrammer has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
stantona has quit [Remote host closed the connection]
banister has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<apeiros> havenwood: booo rspec, booo
troyronda has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
mercwithamouth has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
Lewix has quit [Remote host closed the connection]
jonno11 has joined #ruby
troyronda has quit [Remote host closed the connection]
amclain has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
<havenwood> apeiros: then there's always a few bacon lovers around
tjr9898 has quit [Remote host closed the connection]
endash has joined #ruby
timonv has quit [Remote host closed the connection]
abdulsattar has joined #ruby
stantona has joined #ruby
jonno11 has quit [Client Quit]
Zesty has joined #ruby
srji has joined #ruby
SilkFox has joined #ruby
Cache_Money has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
Rahul_Roy has joined #ruby
Cache_Money has joined #ruby
Avahey_ has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
sdouglas has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
<lxsameer> hey guys, I'm looking for a solution to run a script when system is idle (for example more that 5 minutes)
Milly_Bays has quit [Ping timeout: 264 seconds]
<jhass> hm, idle is kinda hard to define
<shevy> lxsameer wat
maestrojed has joined #ruby
<shevy> lxsameer how about background checking via Thread.new
<jhass> do you mean without user input?
evenix has quit [Remote host closed the connection]
caleb_io has joined #ruby
<lxsameer> shevy: jhass i want to create a daemon which run some tasks in system idle time
maestrojed has quit [Client Quit]
<jhass> start by defining your idle criteria then
<jhass> then implement something to poll that
eynj has joined #ruby
<lxsameer> jhass: what system load is under an specific present age
<jhass> then expand it to do that every minute or so and to fire up your tasks once you hit the time threshold
mehlah has quit [Quit: Linkinus - http://linkinus.com]
bradhe has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
maestrojed has joined #ruby
<certainty> apeiros: you don't like rspec? Why's that? The strongest reason suffices
LadyRainicorn has joined #ruby
<Hanmac> shock_one: you cant call after_end in line 4 because its defined in line 6
arietis has quit [Quit: Computer has gone to sleep.]
helpD has joined #ruby
meatherly has joined #ruby
<Hanmac> shock_one: you cant enter a building that is not already build ;P
havenwood has quit [Remote host closed the connection]
<certainty> you can however enter a building that will never been build
<certainty> see berlin airport
<certainty> s/been/be/
Rahul_Roy has quit [Ping timeout: 252 seconds]
<shevy> I always wondered why they wanted to build an airport
Rahul_Roy has joined #ruby
<shevy> nobody wants to fly to berlin
<Hanmac> shevy maybe they want to fly "away" from berlin? ;P
arietis has joined #ruby
cgcardona_ has joined #ruby
<crome> well, given its one of the biggest cities in europe, I dont see a point against having an airport around it
cgcardona_ has left #ruby [#ruby]
s3ri0us has joined #ruby
<jhass> they do have one already
sparrovv has joined #ruby
<jhass> it's "just too small"
<Hanmac> jhass: the new one is "too small" too ;P
<crome> oh
helpD has quit [Ping timeout: 240 seconds]
<jhass> hm yeah, but that doesn't matter since it will never be opened anyway
<Hanmac> the biggest problems seems to be that they dont know how to read the "construction manuals" ... the ventilation system in case of a fire are located in the basement ... (and it seems that they fucked it SO up, that they need to replace it completly + new costs)
<jhass> aren't we already at the point to consider rebuilding it from scratch?
<shock_one> Hanmac, sorry, I simplified it too much. Actually I'm trying to do this: https://gist.github.com/avbrychak/30a8f343ec1a62a5ac46
danijoo has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<LadyRainicorn> Why does everyone hate the Berlin airport so much?
<jhass> shock_one: I bet @@after_end_callbacks end up being two different variables
danijoo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
blackavr has joined #ruby
<Hanmac> jhass: i read it cost less to remove the berlin and build it at a functional airport again
jonno11 has joined #ruby
benzrf|offline is now known as benzrf
<Hanmac> LadyRainicorn: because they fucked up while building ... if they used qualified specialists (like from china or similar) it would be already finish, ten times better, and cost ten times less than "current" paid
Megtastique has joined #ruby
<Hanmac> i mean i think even the ancient Egypts would have build it faster with their tools
<LadyRainicorn> Maybe they could convert it into a disco and forget about it. I've heard Berlin is edgy like that.
yfeldblum has joined #ruby
havenwood has joined #ruby
Lewix has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
fgo has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
_justin has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<certainty> LadyRainicorn: hah, nice suggestion
stormbytes has joined #ruby
meatherly has quit [Remote host closed the connection]
<stormbytes> hello
mehlah has joined #ruby
<stormbytes> I've got foo = [1, 3, 4, 3, 2, 2, 9, 1] and bar = []. I'm running this loop: foo.each { |i| bar << i if foo.count(i) == 1 }
blackmesa has joined #ruby
<stormbytes> i expect bar = [4,9]
<stormbytes> but it spits out a copy of foo
<stormbytes> why?
mrnugget has quit [Quit: mrnugget]
<canton7> are you actually looking at bar?
fgo has quit [Ping timeout: 252 seconds]
<stormbytes> hmm
<jhass> >> foo = [1, 3, 4, 3, 2, 2, 9, 1] and bar = []; foo.each { |i| bar << i if foo.count(i) == 1 }; bar
<eval-in> jhass => [4, 9] (https://eval.in/142847)
skysploit has quit [Quit: This computer has gone to sleep]
<jhass> >> foo = [1, 3, 4, 3, 2, 2, 9, 1] ; foo.select {|i| foo.count(i) == 1 }
<eval-in> jhass => [4, 9] (https://eval.in/142848)
<stormbytes> dang
doodlehaus has quit []
<stormbytes> i'm doing this wrong. I don't think .each returns a filtered set,it just iterates
sambao21 has quit [Quit: Computer has gone to sleep.]
<canton7> correct. #select returns a filtered set, as jhass demonstrated
<stormbytes> this is one of the example problems on rubymonk and i was trying to duplicate it in IRB
wald0 has quit [Quit: Lost terminal]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<stormbytes> exactly
<benzrf> stormbytes: brotip: use pry not irb
<AntelopeSalad> also you can use .keep_if if you want to mutate foo
<stormbytes> benzrf i looked into pry but couldn't really make heads or tails of it
<AntelopeSalad> or is there another reason why you're using bar to hold the 2nd array?
<stormbytes> hmm nice AntelopeSalad
<benzrf> stormbytes: u can just use it exactly like irb
<AntelopeSalad> .select! works the same as keep_if
<benzrf> but then learn new features as u want em
<benzrf> :D
<benzrf> for one, it has history
<canton7> I think select! and keep_if return different things in the edge-case?
<benzrf> canton7: yeh
<AntelopeSalad> canton7: which edge case?
nouitfvf_ has joined #ruby
<stormbytes> AntelopeSalad - its nice to get a handle on multiple methods and ways of doing things
<canton7> no items selected, I think?
<canton7> will have to check the docs
Rahul_Roy has quit [Quit: Leaving]
senayar_ has quit [Remote host closed the connection]
<AntelopeSalad> keep_if's source calls the implementation of select!
skysploit has joined #ruby
<Hanmac1> shevy hm can you test, what is faster: a=[1, 3, 4, 3, 2, 2, 9, 1]; a.select {|i| a.count(i) == 1} or a.select {|i| a.one?{|j| i == j }}
imkmf has joined #ruby
<AntelopeSalad> stormbytes: most of the time ! at the end of a method says you're going to mutate the thing you're using it on but in keep_if and delete_if's case they are aliases to select! and reject!
nouitfvf has quit [Ping timeout: 264 seconds]
dapz has joined #ruby
<canton7> Hanmac1, it's got to be #one?, surely?
<canton7> ooh, no, actually
skysploit has quit [Client Quit]
Hanmac1 is now known as Hanmac
<jhass> keep_if seems to always return self, select! returns nil if there were no changes
<stormbytes> i just tried keep_if in IRB
nouitfvf has joined #ruby
<stormbytes> foo = [1, 3, 4, 3, 2, 2, 9, 1]
<stormbytes> foo.keep_if { |i| foo.count(i) == 1 }
<stormbytes> returns [4, 9, 1]
<canton7> then look at the value of 'foo'
<AntelopeSalad> what do you get with .select! instead of keep_if?
<canton7> although it should have returned self
Megtastique has quit []
<stormbytes> i tried using .select before, and it returned the correct/expected set (no '1')
yfeldblum has joined #ruby
<AntelopeSalad> .select! with the ! at the end
<AntelopeSalad> oh
<stormbytes> same as keep_if
rdark_ has quit [Quit: leaving]
nouitfvf_ has quit [Ping timeout: 240 seconds]
<stormbytes> select! = keep_if
<stormbytes> but select (no !) returns the correct set
<jhass> >> [1, 3, 4, 3, 2, 2, 9, 1].keep_if { |i| foo.count(i) == 1 }
<eval-in> jhass => undefined local variable or method `foo' for main:Object (NameError) ... (https://eval.in/142856)
<jhass> >> [1, 3, 4, 3, 2, 2, 9, 1].tap {|foo| foo.keep_if { |i| foo.count(i) == 1 } }
<eval-in> jhass => [4, 9, 1] (https://eval.in/142858)
<jhass> hm
<Hanmac> >> a=[1, 3, 4, 3, 2, 2, 9, 1]; a.select {|i| a.one?{|j| i == j }}
<eval-in> Hanmac => [4, 9] (https://eval.in/142859)
<Hanmac> >> a=[1, 3, 4, 3, 2, 2, 9, 1]; a.select! {|i| a.one?{|j| i == j }}
<eval-in> Hanmac => [4, 9, 1] (https://eval.in/142860)
<canton7> hah,, yes of course. the mutation-y ones aren't going to work here
<AntelopeSalad> look at the source code
<LadyRainicorn> Results make sense.
<stormbytes> Hanmac whats the difference in the way I'm setting up the expression?
armyriad has quit [Ping timeout: 255 seconds]
<Hanmac> its the inner counting
<AntelopeSalad> look at what function keep_if is calling in the C code
<canton7> stormbytes, when it reaches that first '1', it finds more than one occurance, and deletes it from the array. when it reaches the second '1', it's the only '1' left in the array, so it's kept
<stormbytes> AntelopeSalad that's slightly over my head
<stormbytes> canton7 :)
<AntelopeSalad> rb_ary_select_bang()
<Hanmac> another way:
<Hanmac> >> a=[1, 3, 4, 3, 2, 2, 9, 1]; a.group_by {|i| a.count(i)}[1]
<eval-in> Hanmac => [4, 9] (https://eval.in/142863)
<AntelopeSalad> and if you look at .select!'s C code, it's defined as rb_ary_select_bang
<stormbytes> canton7 that makes absolute, beautiful sense
ixti has quit [Ping timeout: 240 seconds]
<canton7> :)
<canton7> most things do, at some level
<stormbytes> why does one? work differently?
senayar has joined #ruby
<AntelopeSalad> because select and select! are 2 totally different methods
<stormbytes> so.. foo.one?(i)..
<Hanmac> stormbytes: it might not, i was wondering if its faster than count
<stormbytes> hmm
<AntelopeSalad> stormbytes: check this out http://www.ruby-doc.org/core-2.1.1/Array.html#method-i-reverse
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> then look at the method directly below it (reverse!)
centrx has joined #ruby
<AntelopeSalad> i chose reverse to look at it because what it does is more simple, just read the description for both reverse and reverse!
<AntelopeSalad> but the same thing applies to select and select!
<Firebox> for iterating_var in sequence: <——— python and iterating_var == | literating_var |
rmillerx has quit [Quit: rmillerx]
<stormbytes> one modifies itself, the other returns a new array
<stormbytes> i get that
<jhass> Firebox: that's not necessarily the best way to think about is, rubys blocks are a more generic construct than for loops
<Hanmac> Firebox the for stuff works in ruby too, but its mostly not wanted
srji has quit [Ping timeout: 252 seconds]
froy has quit [Ping timeout: 252 seconds]
estaban has joined #ruby
<Firebox> ok thanks
fannye has quit [Read error: Connection reset by peer]
<jhass> Firebox: I think you should stop paying so much effort in trying to map rubys syntax to equivalents in languages you already know, if it doesn't come to your mind in instant, I don't think it will help you understand it easier than trying to understand it directly
<Hanmac> >> for c in "abc".each_char; p c; end
<eval-in> Hanmac => "a" ... (https://eval.in/142873)
<stormbytes> where is the one? method documented?
skysploit has joined #ruby
<jhass> Enumerable
<stormbytes> ah
<stormbytes> ty
randomnick_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
jacobsmith has joined #ruby
<Firebox> ok i see jhass
rm_ has quit [Remote host closed the connection]
danijoo has joined #ruby
rm_ has joined #ruby
manlycode has quit [Ping timeout: 240 seconds]
<LadyRainicorn> one? would probably short circuit at the second occurence.
froy has joined #ruby
<stormbytes> coming from a php background, ruby is a lot more intuitive
marr has joined #ruby
<AntelopeSalad> i've never used .one? ever, but i'm not really too advanced with ruby
Czupa has joined #ruby
estaban has quit [Ping timeout: 240 seconds]
shock_one has quit [Ping timeout: 255 seconds]
<havenwood> >> [0].one?
<eval-in> havenwood => true (https://eval.in/142874)
<havenwood> o'ne
<certainty> ohne
<LadyRainicorn> ohno!
<AntelopeSalad> it's funny
<AntelopeSalad> reading the docs for .any? makes .one? make more sense
<kalleth> okay, so, say i have [false, true, false, true, true, true, false, false, false], and i want to compact sequential duplicate elements. Any suggestions otehr than iterating over each one and comparing it to the previous one
<kalleth> ie my desired output is [false, true, false, true, false]
<benzrf> >> Array.instance_methods.include? :squeeze
<eval-in> benzrf => false (https://eval.in/142875)
<benzrf> wut
<LadyRainicorn> >> class Array; def one!() replace([choice]) end; end
<eval-in> LadyRainicorn => :one! (https://eval.in/142876)
Megtastique has joined #ruby
<kalleth> woo, there's a stackoverflow post
* kalleth should have googled better
jonr22 has joined #ruby
rm_ has quit [Ping timeout: 276 seconds]
<benzrf> >> [1, 2, 3].choice
<eval-in> benzrf => undefined method `choice' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/142877)
Lewix has joined #ruby
<LadyRainicorn> ugh sample; I only use that in bizarre jokes
bradhe has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
froy has quit [Ping timeout: 255 seconds]
ktosiek has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
<shevy> I still use .shuffle
<shevy> it reminds me of playing cards
charliesome has quit [Client Quit]
<shevy> or shuffling ponicorns!
DrOwl has joined #ruby
froy has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
* LadyRainicorn does the Ponicorn.shuffle.
workmad3 has joined #ruby
relix has joined #ruby
pushpak has joined #ruby
<benzrf> ponicorns
arietis has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
vasilakisfil has joined #ruby
testcore has joined #ruby
abdulsattar has joined #ruby
<vasilakisfil> does anyone know which gem houndci uses?
skysploit has quit [Quit: This computer has gone to sleep]
Ginfuru_ has joined #ruby
<shevy> hounds?
<vasilakisfil> or any similar gem
skysploit has joined #ruby
<shevy> canadians?
<vasilakisfil> https://houndci.com/sign_in <--
<shevy> looks like another bland rails site
heftig has quit [Quit: Quitting]
Rollabunna has quit [Ping timeout: 276 seconds]
klaut has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
<vasilakisfil> houndci is a service that automatically detects any bad styles in your code
<vasilakisfil> so instead of using this service I am looking for a gem doing this job for me
<LadyRainicorn> What gem they use for what?
<shevy> haven't heard of a gem that does detect bad styles yet
<LadyRainicorn> rubocop?
<shevy> LadyRainicorn bad style in your code!
<vasilakisfil> yeap rubocop it is
<jhass> vasilakisfil: just look at their Gemfile https://github.com/thoughtbot/hound/blob/master/Gemfile
<workmad3> shevy: pretty sure there are several ruby linting gems for various style guides :)
<LadyRainicorn> Well it could be for interfacing with Github or something
<shevy> ohhhh "linting"
<shevy> see, vasilakisfil could have said it early that he sought linting guidance
<workmad3> hehe :)
ndrei has joined #ruby
<Hanmac> i wonder what would happen if i show rubocop my rwx code ;P
Hobogrammer has quit [Ping timeout: 240 seconds]
<workmad3> shevy: I tend to substitute 'automatically detect bad code style' for 'lint my code' when reading :)
stantona has joined #ruby
<shevy> to lint code sounds more professional
heftig has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> than "this shit code here has awful fucking bugs in it"
baroquebobcat has quit [Quit: baroquebobcat]
Rollabunna has joined #ruby
<workmad3> shevy: 'I can't tell if this shit code has any awful bugs in it, because it's too unreadably shit'
AndChat|185600 has joined #ruby
armyriad has joined #ruby
<shevy> hehehe
<shevy> I know what you are looking at workmad3
<shevy> codebase in PHP
<workmad3> :)
nerium has joined #ruby
<nerium> Does anyone know what this string is encoded as?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vasilakisfil> lol rubocop is really strict
srji has joined #ruby
WishBoy has quit [Ping timeout: 265 seconds]
<vasilakisfil> do you guys use rubocop or related gems ?
razrunelord has joined #ruby
malida has quit [Ping timeout: 252 seconds]
<workmad3> vasilakisfil: not normally, no
rkazak has left #ruby [#ruby]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
stantona has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
<jhass> nerium: hm, doesn't look like anything directly. Where's that from?
Rainicorn has joined #ruby
<nerium> jhass: A .torrent file
<havenwood> just ran rubocop on one of my projects and it found one whitespace error and 17 things I prefer the way they are
LadyR has joined #ruby
senayar_ has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
skysploit has quit [Quit: Leaving]
Rollabunna has quit [Remote host closed the connection]
dapz has joined #ruby
manlycode has joined #ruby
helpD has joined #ruby
<nerium> jhass: I've tried to create my own version of the string, but I can't manage to get the correct encoding
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyR is now known as LadyRainicorn
senayar has quit [Ping timeout: 265 seconds]
<jhass> nerium: it doesn't necessarily have to make sense, just match with what you compare it with. so check the .encoding of that
Rainicorn has quit [Ping timeout: 252 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
bigmac_ has joined #ruby
dapz has quit [Client Quit]
benzrf is now known as benzrf|offline
rokob has joined #ruby
baroquebobcat has joined #ruby
manlycode has quit [Ping timeout: 252 seconds]
jonno11 has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
rokob has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
abdulsattar has quit [Ping timeout: 255 seconds]
claymore has joined #ruby
alem0lars_ has joined #ruby
compleatang has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
chichou has joined #ruby
tcstar has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
sdouglas has joined #ruby
compleatang has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
alem0lars_ is now known as alem0lars
crzrcn has joined #ruby
<shevy> vasilakisfil I don't use rubocop or anything, ruby code has an inherent style, one simply adheres to it then one won't need linting
rm_ has joined #ruby
maestrojed has joined #ruby
dapz has joined #ruby
<shevy> havenwood how you can have a whitespace error!!!
Megtastique has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
MatthewsFace has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
<crome> we use rubocop and I hate it \o/
dik_dak has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
havenwood has joined #ruby
Rahul_Roy has joined #ruby
<shevy> haah
jonr22 has joined #ruby
<Hanmac> shevy i am currently reading the source-code of wxwidgets itself, looking for asserts i need to catch for my rwx (because wx does not use exceptions so i cant catch them nicely) ... finding some nice error messages like >> wxASSERT_MSG( page != m_page, wxT("this is useless") ); <<
jamto11_ has joined #ruby
Ginfuru_ has quit [Quit: Lingo - http://www.lingoirc.com]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<LadyRainicorn> lol
<shevy> well
<shevy> that's what you get when using C++
<crome> yep, error messages are useless in C++
pwh has quit []
<shevy> I can not even compile webkitgtk
meatherly has joined #ruby
<shevy> ./Source/WTF/wtf/ByteSpinLock.h: In member function 'void WTF::ByteSpinLock::lock()':
<shevy> ./Source/WTF/wtf/ByteSpinLock.h:48:13: error: 'yield' is not a member of 'std::this_thread'
jcs222 has quit [Read error: Connection reset by peer]
<crome> just delete that line
<shevy> lol
jcs222 has joined #ruby
<LadyRainicorn> I should make a program that keeps running a program deleting any line that raises an exception until it terminates properly.
<crome> LadyRainicorn: you are not the first one with the idea
<shevy> crome it's funny because earlier webkitgtk versions compiled fine here, on the same setup
<crome> <3
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest9754 has quit [Quit: Connection closed for inactivity]
metamaterial has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
<shevy> 49 files inspected, 3625 offenses detected
<shevy> wow
<shevy> rubocop hates my code
jxf has quit [Ping timeout: 255 seconds]
<shevy> "Avoid using {...} for multi-line blocks."
<shevy> hahahahaha
<pipework> Do whut you want
franzip has quit [Quit: ...]
<shevy> "C: Method has too many lines."
<shevy> omg
jamto11_ has quit [Ping timeout: 240 seconds]
<vasilakisfil> you can reconfigure it
<pipework> shevy: Why do you write such shitty code? :(
<shevy> "C: Line is too long."
<shevy> pipework it is perfect code
kaspergrubbe has joined #ruby
<Hanmac> hmm does rubocop works for C++ code too? ;P
<LadyRainicorn> lol, that is suspiciously close to how JS works normally though.
<pipework> shevy: mental masturbation much?
omosoj has quit [Ping timeout: 240 seconds]
<shevy> pipework never, great minds are perfectly fine. how about you though?
<pipework> shevy: Whose great mind did you steal?
<crome> shevy: I rage when rubocop fails the build when a comment is too long
<crome> its just mental
<shevy> crome man, rubocop is insane
<shevy> this one is interesting:
<shevy> "Use fail instead of raise to signal exceptions."
<crome> well, you can sort of configure it based on your guidelines
<crome> its not entirely useless
<crome> its just a lot more pain than gain
<shevy> "trailling whitespace detected", that one though harmless is ok I guess
<crome> I kill trailing whitespaces myself beause they look retarded in git diff
osvico has quit [Read error: Connection reset by peer]
<LadyRainicorn> It is nice to remove trailing whitsespace with a git hook.
<pipework> crome: Why can't you just wrap your comments?
omosoj has joined #ruby
<LadyRainicorn> You can change indent styles automagically there too.
<crome> pipework: of course I can, but sometimes it means I have to put 1 word on the next line
<shevy> crome yeah, they also are not useful, I mean, trailing whitespace does not serve a function
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> this one is odd though:
<shevy> traditional.rb:62:10: C: Do not use semicolons to terminate expressions.
<shevy> opn; e 'does not seem to exist.'
<pipework> crome: I puristically wrap all comments after the 78th column.
crazymykl has joined #ruby
<crome> pipework: good for you
<shevy> pipework afraid of having more than 78 chars?
<crome> I dont program on a 80x25 terminal anymore
<pipework> shevy: On a line? Yeah, it works nicely in my email client.
<LadyRainicorn> A lot of people do!
<shevy> "C: Use alias_method instead of alias."
<pipework> crome: I do it because long lines suck for reading and scanning.
<shevy> man ...
blackmesa has joined #ruby
<pipework> shevy: What? The method is better than the keyword most of the time.
<shevy> rubocop advocates alias_method instead of alias but both are not the same!
<shevy> pipework not at all
<pipework> shevy: Sure it is.
lw has quit [Quit: s]
<crome> pipework: my lines are never longer than 100 characters. I just hate it when a script knows better and tells me to wrap it even though it fucks up a nice, one lin sentence
<shevy> pipework nope
<pipework> crome: Mine are never more than 80.
<LadyRainicorn> alias is weird.
<pipework> I used to be okay with 120, but 80's proper.
jonr22 has quit [Remote host closed the connection]
<LadyRainicorn> I really loathe its semantics.
<pipework> LadyRainicorn: I don't like it either.
<pipework> Can't even meta.
<LadyRainicorn> wtf is with symbols and no comma?
jonr22 has joined #ruby
<pipework> LadyRainicorn: You don't need symbols necessarily even!
jheg has quit [Quit: jheg]
<pipework> alias to_s fuck_off
<shevy> hmm weird
<shevy> rubocop detects whitespace in comments too
<LadyRainicorn> That's actually a little better than with symbols.
<shevy> so '# foo ' will be reported, '# foo' is fine
<LadyRainicorn> But still it's icky.
<pipework> shevy: Why do you like trailing whitespace so much?
<pipework> LadyRainicorn: Truly.
<shevy> pipework you have code that you must meta?
<crome> shevy: dont waste precious space, thx
<pipework> shevy: Naturally.
<shevy> pipework ewww
<pipework> How else am I to not get bored with ruby?
<pipework> shevy: Lul.
banister has joined #ruby
<shevy> pipework dunno, I think your mindset more fits to php
* pipework is a metabrogrammer
<pipework> shevy: You clearly haven't been writing ruby since 2006 or prior.
banister has quit [Client Quit]
<shevy> pipework but I have!
Justinas has joined #ruby
<shevy> both!
<shevy> both prior and after!!!
* pipework remembers when metaprogramming was embraced and a thing to marvel at.
<crome> its funny, metaprogramming is pretty much what won me over to ruby. and now I actually take pride on solving problems without using *any* metaprogramming features
<crome> in*
<shevy> crome can rubocop report errors? I mean like the "offenses" are mostly just opinions, not very useful
RaptorJesus has quit [Remote host closed the connection]
testcore has quit [Quit: BitchX: now Y2K compatible!]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<shevy> pipework I use a very few instances of .class_eval and define_method, but not many!
<pipework> crome: I do things like write a meta-client that understands a few different kinds of hypermedia API's.
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
<shevy> oh... rubocop detected a wrongful indent, shame on me
ahhMichael has quit [Ping timeout: 246 seconds]
<shevy> W: end at 109, 5 is not aligned with module at 11, 0
testcore has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
<Justinas> Guys, can you give me any links or tips how to use ActiveRecord with ruby(not rails)? I do have my whole application written in rspec tests, and now i need to transform or upgrade it so it start using ActiveRecord. Any sources?
<shevy> "C: Space missing inside }"
<crome> an application written in rspec tests?
<shevy> "C: Use %r for regular expressions matching more than 1 '/' character."
<crome> shevy: lol
<crome> last one is wtf
<pipework> Justinas: ActiveRecord::Base.establish_connection # done
<shevy> "C: Space missing after comma."
<shevy> crome man... a lot of this is extremely opinionated, even by default :\
osvico has joined #ruby
<pipework> shevy: Well, yeah.
<shevy> foo[0,0] = i
<Justinas> yeah, but do I need to make major changes to my classes usually?
<shevy> rubocop does not like this
<shevy> you must use
<shevy> foo[0, 0] = i
<pipework> Justinas: I don't know what you really mean by "my classes"?
klaut has joined #ruby
<Justinas> sorry for that. My english skills are kinda poor
<s2013> is metaprogramming an advanced concept?
<pipework> s2013: Egh, it's simple. Always know what `self` is.
<pipework> Everything else is just manipulating self.
<jhass> s2013: metaprogramming boils down to code generating code, mostly
<s2013> i see
<shevy> "C: Inconsistent indentation detected."
<shevy> "C: Never use unless with else."
<shevy> ?!?!?!
<s2013> ok. knowing how to effectively metaprogram. is that more advanced
<shevy> but rubocop also warned before: "do not use if !"
<pskosinski> According to rubocop methods can have max 10 lines of code… >.>
<crome> shevy: I think what it is hinting at is you should stop coding ruby altogether
<shevy> crome lol
<shevy> crome well the trailing whitespace warnings are useful
<shevy> I'll keep rubocop for these
<shevy> so I can optimize my code comments from '# foo ' to '# foo'
<jhass> hm, wasn't there a flag to let git do that too?
maestrojed has quit [Quit: Computer has gone to sleep.]
<shevy> wow crome, check this one out, have you ever seen that?
<shevy> "C: Cyclomatic complexity for start_to_generate_shell_completion is too high."
<shevy> I can't even pronounce that properly
<shevy> "W: Do not use prefix _ for a variable that is used."
<s2013> i met sandi metz
tjr9898 has joined #ruby
<s2013> she is very cool
senayar_ has quit [Remote host closed the connection]
froy has quit [Ping timeout: 264 seconds]
<Hanmac> ah ... "Cyclomatic complexity" ... i totally hated that shit while i was writing php code ...
<shevy> "C: Space between { and | missing."
<shevy> how do you guys write .each {} blocks with method calls inside??
<shevy> foo.each {|bla| yo(bla) }
<shevy> foo.each { |bla| yo(bla) }
<shevy> foo.each { |bla| yo(bla)}
<shevy> foo.each {|bla| yo(bla)}
<shevy> ?
<crome> space always
<crome> on both sides
<jhass> foo.each do |bla|
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<s2013> foo.each { |blah| yo(blah) }
<Justinas> pipework: ill try to give a better explanation. I do have a User and Comments classes. For now they are not connected anywhere but each other (user has array of comment class objects). Do i need to change this structure for ActiveRecord to work? Or will it work somehow?
<s2013> i space it out
<Hanmac> shevy: foo.each(&method(:yo))
<jhass> but to answer the question I do foo.map {|blah| yo bla }
relix has joined #ruby
<s2013> can someone tell me some advanced ruby things one should know
<shevy> jhass hmm
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<shevy> jhass rubocop would tell you "C: Space between { and | missing."
<Hanmac> s2013: you might need to know the difference between "if !obj" and "unless obj"
<jhass> I would tell rubocup to shut up
<s2013> whats the difference?
<pipework> Justinas: You need to setup the database connection. That's really all.
<shevy> hehe
m3nTe has joined #ruby
m3nTe has joined #ruby
<shevy> crome rubocop is really noisy by default
zz_karupa is now known as karupa
<s2013> Hanmac, or was that a joke
Nexus_x1 has joined #ruby
<jhass> s2013: ! is a method call
<crome> it takes some taming
<Mon_Ouie> >> evil = Object.new; def evil.!; true; end; puts "this object is evil!" if !evil
<eval-in> Mon_Ouie => this object is evil! ... (https://eval.in/142898)
<Mon_Ouie> >> evil = Object.new; def evil.!; true; end; puts "this object is evil!" unless evil
<eval-in> Mon_Ouie => nil (https://eval.in/142899)
<shevy> wheeee "C: Missing top-level class documentation comment."
chipotle has quit [Quit: cya]
tjr9898 has quit [Ping timeout: 264 seconds]
<Hanmac> s2013: the "!" is a method call ... that means "unless" is faster but !can be overwritten as Mon_Ouie did show you
<Justinas> pipework: you mean, literally, just connect and its done? It will create every table automatic?
<s2013> ah interesting
<crome> hehe, I didnt know that
<pipework> Justinas: It doesn't create tables, it never did.
<s2013> is unless aliased to if not
<pipework> You use migrations if you want to migrate data, otherwise you just need to provide or use the database schema.
<Mon_Ouie> unless/if are not methods, so they can't be aliased
HashNuke has quit [Quit: Connection closed for inactivity]
<s2013> i see
<AntelopeSalad> is there a built in that will let me compare 2 aligned values from 2 arrays and then return a new array that contains true or false based on if array #2's value is larger than array #1's value?
<s2013> that is actually pretty interesting
chrisseaton has quit []
<s2013> Hanmac, can i borrow parts of your brain
<Mon_Ouie> The way unless works, it checks if the condition evaluates to either nil or false to decide which branch to pick. So it's not affected by you redefining '!'.
<Justinas> pipework: so i need to create a database schema first?
<s2013> >> a = 2; a.!
<eval-in> s2013 => false (https://eval.in/142900)
<s2013> >> a = false; a.!
<eval-in> s2013 => true (https://eval.in/142901)
<s2013> >> a = false; def a.!; false; end; a.!
<eval-in> s2013 => false (https://eval.in/142902)
<s2013> ah
<s2013> did i do that right?
<apeiros> certainty: re rspec: having to learn a language just to test.
<s2013> >> a = false; def a.!; false; end; !a
<eval-in> s2013 => false (https://eval.in/142903)
<jhass> AntelopeSalad: probably won't get shorter than a.zip(b).map {|a, b| a < b }[i]
robbyoconnor has joined #ruby
<Mon_Ouie> Yes, you redefined the negation for false, and now !false is also false
<AntelopeSalad> jhass: it's hard to explain but this is the expected output i'm looking for https://gist.github.com/AntelopeSalad/eaf8a0a4eda7106beec4
<s2013> >> a = false; def a.!; false; end; !a; !false
<eval-in> s2013 => false (https://eval.in/142904)
spacemud has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
<Mon_Ouie> (Now it should be pretty clear that messing with that in an actual program is probably not a good idea)
metamaterial has quit [Quit: Leaving.]
<s2013> Mon_Ouie, does def a.! change definition of ! for everything or only a
<s2013> >> a = false; def a.!; false; end; !false
<eval-in> s2013 => false (https://eval.in/142905)
<s2013> oh i guess for everything
<Mon_Ouie> Only for a. That's called a singleton method.
rokob has joined #ruby
<s2013> >> !false
<eval-in> s2013 => true (https://eval.in/142906)
<s2013> but !false is returning false
<Mon_Ouie> It's just that there's only one 'false' object
RaptorJesus has joined #ruby
<jhass> AntelopeSalad: a.zip(b).map {|a, b| a < b } does that
<Mon_Ouie> >> a = false; b = false; a.equal? b
<eval-in> Mon_Ouie => true (https://eval.in/142907)
<s2013> >> a = false; def a.!; false; end; !false
<eval-in> s2013 => false (https://eval.in/142908)
<AntelopeSalad> jhass: yep i'm playing with it in irb now -- awesome thanks
<s2013> im talking about that Mon_Ouie
<s2013> shouldnt !false return true
Justinas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
spacemud has joined #ruby
sdouglas has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> s2013: another thing you might need to know, Float::NAN defines the NaN(Not a Number) float, but testing it with == does not work (that is hardcoded in ruby)
<Mon_Ouie> You just redefined false.!. You are confusing variables and objects I believe (or something similar).
<Hanmac> >> Float::NAN == Float::NAN
<eval-in> Hanmac => false (https://eval.in/142909)
<Nexus_x1> hey all so I am just getting started with Ruby and programming, last time I coded was over 8 years ago in C#. Is there a way to pass a variable into a method via refernce like in C#: static void squareRef(ref int refParameter){ refParameter *= refParameter; }
<LadyRainicorn> Yes, but you never use it.
sdouglas has joined #ruby
lethjakman has joined #ruby
<LadyRainicorn> Why do you want to do that?
<Mon_Ouie> Whether you use a local variable like `a = false; a`, or if you use false directly, or even if you use `3 == 2 + 1`, you will get the exact same object.
<LadyRainicorn> (@Nexus_x1)
<RubyPanther> Nexus_x1: Objects always pass by reference, but variables can't be passed. You can make a closure and pass that, but that would be clever and bad
<Hanmac> Nexus_x1: ruby only has "reference via object" so depending what you do and the Object, some methods can change the object, some can not
<Mon_Ouie> So if you redefine a method on that object, no matter how you get a reference to it, the new method will be called
<mozzarella> Nexus_x1: they're all sent by reference already
jonno11 has joined #ruby
<s2013> yeah but if a = false. and im redefining a.. it doesnt have a pointer to false does it?
<RubyPanther> You basically always want to use an object as a container in that case, instead of a variable
m3nTe has quit [Ping timeout: 240 seconds]
<pskosinski> OK, so if I need to store in a variable a very long text including many spaces and new line characters, and that variable is a class variable, how to write it correctly according to style guidelines?
<AntelopeSalad> jhass: what did you think about when solving that problem btw?
<s2013> >> 3.+(2)
<eval-in> s2013 => 5 (https://eval.in/142911)
<s2013> + is a method call too right?
<Nexus_x1> oh ok thanks, I thought it was pass by vaue
<Mon_Ouie> Correct
<RubyPanther> the variable is just the name you use to find the reference, you don't want to be thinking in terms of variables. Only think about the objects.
<s2013> >> def 3.+(n); n - 5; end; 3.+(1);
<eval-in> s2013 => /tmp/execpad-ac2b7a4c0274/source-ac2b7a4c0274:2: syntax error, unexpected tINTEGER ... (https://eval.in/142912)
<jhass> AntelopeSalad: shortly #each_with_index but that's ugly
<s2013> hmm why did that throw an error
sdouglas_ has joined #ruby
karupa is now known as zz_karupa
<AntelopeSalad> jhass: that's the approach i was going to take, it felt very imperative
<AntelopeSalad> but how did you mold the problem in your head to just think about using zip/map like that?
<Mon_Ouie> Ruby does not accept that syntax, and even if it did, you cannot define singleton methods on integers (at least not on Fixnum)
<RubyPanther> s2013: leaving the error aside, fixnums are "immediate values" and can't be fiddled in the same way as regular objects
<jhass> AntelopeSalad: it comes naturally once you used those a few times
<s2013> gotcha
robbyoconnor has quit [Ping timeout: 252 seconds]
r0bby has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
<jhass> AntelopeSalad: "iterating over two arrays simultaneously" is already a good indicator for #zip
<RubyPanther> methods have to start with a letter or underscore, too, which was the actual error
<s2013> >> [1,2,3].zip([3,4,5])
<eval-in> s2013 => [[1, 3], [2, 4], [3, 5]] (https://eval.in/142913)
<Mon_Ouie> And for consistency's sake, bignums and floats can't have singleton methods either
<AntelopeSalad> and returning a new array given an array as input was a sign to use map?
<s2013> i love zip
<jhass> AntelopeSalad: pretty much
<Mon_Ouie> RubyPanther: That wasn't the error. You can have a method called + (which is the binary +), and you can use that syntax to redefine it.
sdouglas_ has quit [Remote host closed the connection]
<RubyPanther> Mon_Ouie: Not with 3 as the first char of the method
<RubyPanther> >> def 3333; 3 end
<eval-in> RubyPanther => /tmp/execpad-f126d47e570a/source-f126d47e570a:2: syntax error, unexpected tINTEGER ... (https://eval.in/142914)
<Mon_Ouie> 3 is not the first character of the method, it's the syntax to define a singleton method
<RubyPanther> >> def _3333; 3 end
<eval-in> RubyPanther => :_3333 (https://eval.in/142915)
<RubyPanther> It was hoped it would be that, Mon_Ouie, but the Ruby parser doesn't like a number there
<crome> since when does def return the name of the method
<Mon_Ouie> Yes, it rejects it, but that's what it would be with anything else.
<RubyPanther> crome: since 2.x
<LadyRainicorn> >> def З; :hi; end
<eval-in> LadyRainicorn => :З (https://eval.in/142916)
<crome> irb(main):002:0> def asd; end
<crome> => nil
<crome> on 2.0.0
<jhass> yep, since 2.1
<RubyPanther> 2.1 then
<crome> oh
<jhass> which means you can do private def foo now
<RubyPanther> >> define_method( '3.1+2' ){3.1+2} ; send( '3.1+2')
<eval-in> RubyPanther => 5.1 (https://eval.in/142917)
<crome> one learns something new every day
nerium has quit [Read error: Connection reset by peer]
blackavr has quit [Quit: blackavr]
blackavr has joined #ruby
bluOxigen has joined #ruby
<crome> well, not every day
<crome> but its not the point
lw has joined #ruby
<RubyPanther> You can also do really awful stuff now like defining a method and calling it at the same time
stantona has joined #ruby
<RubyPanther> >> x = send def omg; 'ponies' end
<eval-in> RubyPanther => "ponies" (https://eval.in/142918)
decoponio has quit [Quit: Leaving...]
<LadyRainicorn> omg ponies!
Matip has quit [Quit: Leaving]
<crome> RubyPanther: haha, cant wait to see that in action
<crome> and a new perl was born
<Hanmac> "LadyRainicorn does not know what went wrong" ;P *derp*
mr_snowf1ake has joined #ruby
<RubyPanther> Ruby 2.1, now with 15% more Perl... Free!
<s2013> k i dunno what i started but now im more confused
<crome> s2013: your fault
<crome> now eat it
Mon_Ouie has quit [Remote host closed the connection]
AndChat|185600 has quit [Ping timeout: 255 seconds]
seuros has quit [Ping timeout: 255 seconds]
<RubyPanther> crome: I'm saving that technique for the next client that won't assign resources for testing
<RubyPanther> "We have to keep people from trying to refactor, because it wouldn't be safe"
<RubyPanther> "This way, they'll only replace whole classes and not methods"
<crome> write unrefactorable code
<shevy> LadyRainicorn you really like ponies don't you
elaptics`away is now known as elaptics
<RubyPanther> shevy: Everybody loves ponies!
<LadyRainicorn> obviously! Ponies are like my non magical family :3
manlycode has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
<RubyPanther> A lawyer friend of mine always makes people at parties say the word "pony." If they can say it without smiling, she makes them say "pancakes." I've never seen her fail.
maletor has joined #ruby
<shevy> pancakes is a rather funny word
arietis has quit [Quit: Computer has gone to sleep.]
crzrcn has quit [Quit: Leaving.]
chichou has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
<RubyPanther> Funny that def 3; end slips past, but def 33 gives a syntax error
sepp2k1 has joined #ruby
<crome> def 3 gives me error
<shevy> yeah
<shevy> >> def 3; end
<eval-in> shevy => /tmp/execpad-f6486bb40e4d/source-f6486bb40e4d:2: syntax error, unexpected tINTEGER ... (https://eval.in/142921)
<shevy> >> def 33; end
<eval-in> shevy => /tmp/execpad-6cd07ba31599/source-6cd07ba31599:2: syntax error, unexpected tINTEGER ... (https://eval.in/142922)
<shevy> all errors
manlycode has quit [Ping timeout: 265 seconds]
<LadyRainicorn> It's a cryllic 3.
<RubyPanther> def 33; :foo end
<RubyPanther> >> def 33; :foo end
<eval-in> RubyPanther => /tmp/execpad-dfacb239f087/source-dfacb239f087:2: syntax error, unexpected tINTEGER ... (https://eval.in/142923)
<LadyRainicorn> just a homoglyph, not the real thing.
<LadyRainicorn> You can use non breaking space too.
cina has joined #ruby
<LadyRainicorn> Though I can't easily produce it on Android.
<RubyPanther> doh
sepp2k has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
Lewix has quit [Remote host closed the connection]
nouitfvf has quit [Ping timeout: 252 seconds]
<LadyRainicorn> I suspect you can use characters that don't render too.
<RubyPanther> Maybe popehat was right about the impending pony menace
nouitfvf has joined #ruby
<crome> that dont reindeer
andrewjanssen has joined #ruby
omosoj has joined #ruby
<shevy> a pony menace?
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
<RubyPanther> WHat,even after 2 years of prenda, there are people who haven't heard of popehat?!
* LadyRainicorn wants a pope hat.
robbyoconnor has joined #ruby
seuros has joined #ruby
Affix has joined #ruby
cina has quit [Ping timeout: 265 seconds]
sparrovv has quit [Remote host closed the connection]
cina has joined #ruby
estaban has joined #ruby
Firebox has left #ruby [#ruby]
bradhe has joined #ruby
<RubyPanther> I haven't figured out yet what exactly it is about lawyers and ponies. Somebody will have to get a spy into law school to find out. I tried once, but some sort of mind-control beam must have overtaken me because as soon as I entered the building I started wandering dazed until I found myself researching the magna carta
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<LadyRainicorn> I can confirm that ponies frequently have ... dark tendencies.
<LadyRainicorn> Usually it's an innate tendency towards unexpressed magic.
<LadyRainicorn> (Rainicorns are actually the evolved form of ponies, after we succeed in killing and eating more than 17 humans.)
monkegjinni has joined #ruby
<Hanmac> LadyRainicorn: and Rainicorns can crossbreed with Talking-dogs ;P
<RubyPanther> LadyRainicorn: You should totally write a guest blog for popehat, I'll bet he would post it
pwh has joined #ruby
estaban has quit [Ping timeout: 252 seconds]
srji has quit [Ping timeout: 252 seconds]
<Hanmac> shevy https://www.ruby-forum.com/topic/4486869#1144197 "Hanmac - fixing bugs at 5o'Clock in the morning" ;P
<LadyRainicorn> lol, I should.
<pipework> Hanmac: I can confirm by nature of 2nd person observation.
<LadyRainicorn> "Why Ruby is Magical"
eka has joined #ruby
<Hanmac> LadyRainicorn: with additional info "Ruby is Mathematical!" ;P
<shevy> Hanmac :P
artgoeshere has joined #ruby
chichou has quit []
eka has quit [Client Quit]
<pipework> LadyRainicorn: Ruby is Algebraic!
blackavr has quit [Quit: blackavr]
anaeem1_ has quit [Remote host closed the connection]
manlycode has joined #ruby
<LadyRainicorn> Ruby is Anglophysical!
artgoeshere has quit [Client Quit]
manlycode has quit [Client Quit]
* pipework scoots away
yfeldblu_ has joined #ruby
metamaterial has joined #ruby
<LadyRainicorn> loly?
sparrovv has joined #ruby
chrisseaton has joined #ruby
<pipework> As an anglophysically manifested individual (space ghost), I admit that white people scare me.
predator117 has joined #ruby
bricker`LA has quit [Quit: leaving]
srji has joined #ruby
benzrf|offline is now known as benzrf
gsvolt has joined #ruby
<LadyRainicorn> ghost + ode = host + doge !
cina has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
<RubyPanther> Ruby is less magical than Perl, because it is more comprehensible
<LadyRainicorn> Ruby is more magical because Ruby has ponies!
<centrx> magic != magic
lethjakman has quit [Ping timeout: 255 seconds]
GMFlash has joined #ruby
<benzrf> ponies == friendship && friendship == magic => ponies == magic
<alpha123> RubyPanther: I think "magic" generally refers to "metaprogramming". I guess. :/ I'd still completely arbitrarily say Ruby is more "magical" than Perl
<alpha123> benzrf: <3
<RubyPanther> I was assuming that technology that is sufficiently advanced or complicated can't be distinguished from magic
<LadyRainicorn> " As of May 2014 when are the Bush family going to shut down America and jail & kill their enemies"
GMFlash has quit [Client Quit]
<Hanmac> RubyPanther: "every high developed progamming language can't be distinguished from magic" ;P
<RubyPanther> in Ruby we often even know which methods we hid the magic in
<LadyRainicorn> Ruby is magical because it is powerful; Perl is magical because everything is magic to a brain reduced to shreds as small as those reading Perl makes.
<RubyPanther> Because of Perl's basis in natural language, you could be getting reprogrammed by NLP just from reading sources... IF you could understand them, anyways
<Hanmac> and Hanmac's C-Macros are witchcraft ;P
<RubyPanther> like if you take Snow Crash
jgillman_ has joined #ruby
GMFlash has joined #ruby
ktosiek has joined #ruby
jgillman_ has quit [Quit: I'll see myself out.]
predator117 has quit [Remote host closed the connection]
artgoeshere has joined #ruby
<pipework> I'm still convinced Snow Crash is just an obscure perl program.
phinfonet has quit []
<RubyPanther> stay up 3 nights writing Perl code and you'll feel like you just ran it
artgoeshere has quit [Client Quit]
<RubyPanther> if you're young enough that staying up all night is "fun," Perl is a great language
dawkirst has joined #ruby
<AlexRussia> pipework: LadyRainicorn Algebraic or Mathematical?O_O I just think - Ruby is HAPPINESS!
artgoeshere has joined #ruby
<AlexRussia> RubyPanther: Hi bro
<AlexRussia> :]
blackavr has joined #ruby
predator117 has joined #ruby
<RubyPanther> >> 'Ruby'.is_a? 'Happiness'.class
<eval-in> RubyPanther => true (https://eval.in/142924)
LadyRainicorn has quit [Read error: Connection reset by peer]
<pipework> Ruby is 'good shit' for druggie programmers.
<RubyPanther> I'll smoke to that
snuffeluffegus has joined #ruby
<AlexRussia> lol
<RubyPanther> Not really, because I'm indoors... but it sounded good
mus1cb0x has joined #ruby
<mus1cb0x> hello
<AlexRussia> someone know, where i can pay cigarette 'Man'? :P
<pipework> RubyPanther: I've smoked salmon inside. Inside a shed.
<AlexRussia> RubyPanther: ^
Stalkr_ has joined #ruby
<pipework> It was painted blue.
<pipework> I wanted purple.
saarinen has joined #ruby
<mus1cb0x> i'm reading up on 2.1 changes. it seems refinements is a big win for scoping class changes. am i wrong in seeing refinements as very useful?
<AlexRussia> pipework: libpurple?
<mus1cb0x> vs the broadly applied monkey patching
<metamaterial> lol lib.purple
maletor has quit [Quit: Computer has gone to sleep.]
<AlexRussia> libastral.so
<RubyPanther> You should have monkey-patched it purple
<mus1cb0x> what's lib purple?
<pipework> metamaterial: They suck right now.
<AlexRussia> mus1cb0x: pidgin IM
<alpha123> Wait, did refinements finally get in Ruby 2.1? Cool.
<pipework> So bad I don't even want to bother with them.
<mus1cb0x> oh
<pipework> alpha123: Experimental feature, I think.
<AlexRussia> mus1cb0x: IM - instant messenger
<mus1cb0x> yea
<pipework> It may have graduated to a proper "This shit really sucks" feature though.
<jhass> 2.0 experimental, 2.1 sorta stable
agjacome has quit [Quit: Lost terminal]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
thomd has joined #ruby
<AlexRussia> lol
<AlexRussia> jhass: rly?
thomd has quit [Remote host closed the connection]
thomd has joined #ruby
<jhass> at least no more warnings if you use it in 2.1
<AlexRussia> someone use Eclipse DLTK for ruby dev?
phinfonet has joined #ruby
brian___ has joined #ruby
<AlexRussia> jhass: what is sorta?
<pipework> Just vim.
<jhass> sort of
<AlexRussia> ah....
<AlexRussia> google translater dont know it
mus1cb0x has left #ruby ["WeeChat 0.4.2"]
predator117 has quit [Remote host closed the connection]
<RubyPanther> refinements look good if you're writing code that might use them, but they introduce a lot of uncertainty if you're using code you didn't write
saarinen has quit [Client Quit]
<pskosinski> Any tool to generate control flow graph of Ruby code?
<benzrf> pskosinski: why not write your own?
<pipework> pskosinski: vim
<AlexRussia> flow graph?
phinfonet has quit [Client Quit]
<AlexRussia> is like flow charts?
<pipework> vim + ctags :D
<benzrf> AlexRussia: graph
<AlexRussia> pipework: :D
<pskosinski> Woot
<AlexRussia> benzrf: example in studio please
<benzrf> graph like vertex-edge graph
<benzrf> as in directed acyclic graph
* AlexRussia should more learning graphs.....
<pipework> benzrf: Everything is a graph already.
<pskosinski> benzrf: My own tool for generating such things? Or on paper? :p On paper takes time…
<pipework> You just ain't even realized yet.
<benzrf> duuuude
<benzrf> i see graphs everwere
<AlexRussia> i never don't learn graphs :( i know how to make easy graph, but dont know fundamental stuffs....
bluOxigen has quit [Ping timeout: 264 seconds]
<benzrf> syntax
<benzrf> is a tree
<benzrf> and trees
<benzrf> are GRAPHGS
<AlexRussia> vertex
sdwrage has quit [Quit: This computer has gone to sleep]
dik_dak has quit [Remote host closed the connection]
<AlexRussia> root(s) of tree
<AlexRussia> too syntax
<AlexRussia> i try learn in my native language.....math English part not my power....
redondos has quit [Changing host]
redondos has joined #ruby
artgoeshere has quit [Quit: I'll see myself out.]
<AlexRussia> benzrf: oriented graph is tree with one root?
* pipework lurves graph algebras.
<pipework> Honestly, I love most anything *bra
bradhe has quit [Remote host closed the connection]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Guedes0 has joined #ruby
predator117 has joined #ruby
artgoeshere has joined #ruby
meatherly has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
<AlexRussia> ah
<AlexRussia> i understand
mrnugget has joined #ruby
<AlexRussia> oriented graph included -> :P
<atmosx> aloha
<AlexRussia> o/
razrunelord has joined #ruby
<shevy> heya atmosx
<shevy> atmosx I hate database setup
<AlexRussia> shevy: ;) Hi
wiku5 has joined #ruby
<s2013> what does it mean to own an object
<jhass> s2013: a bit more context
<RubyPanther> I find refinements really hard to accept ideologically. I really don't want WHERE a method is called from to matter. Caring about that was supposed to be Considered Harmful.
<s2013> like when it comes to testing
thomd has quit [Remote host closed the connection]
<jhass> more
pwh has quit []
<jhass> I heard owning classes before, but objects...
razrunelord has quit [Ping timeout: 255 seconds]
ph88_ has quit [Ping timeout: 240 seconds]
<benzrf> bye
artgoeshere has quit [Quit: I'll see myself out.]
Speed has joined #ruby
benzrf is now known as benzrf|offline
pwh has joined #ruby
<s2013> like when to use mocks/stubs
<s2013> vs db
mois3x has joined #ruby
Czupa has quit [Quit: Wychodzi]
<shevy> s2013 I own class UrMom
<shevy> if it is not a singleton, there can be many copies of it and thus many different owners
<s2013> thats true
<s2013> that class is used by way too many people
<shevy> pipework do you like *brazilians
<pipework> shevy: I don't think that matches the glob I provided.
<shevy> but there is a bra inside
<pipework> *bra # => /bra\z/
crzrcn has joined #ruby
<jhass> s2013: in doubt mock out the dependencies of the class you're testing when unit testing
<pipework> shevy: That would be *bra*, not *bra
<pipework> jhass: I wouldn't.
<pskosinski> loving cobras, strange fetish
agjacome has joined #ruby
<pipework> I mean, not always. I mock things I own, not things I don't own. I don't usually even mock stdlib and core.
<shevy> ok so it is more like Abracadabra
<pipework> shevy: Exactly.
<shevy> pskosinski I think only a singular cobra
ahuman has quit [Remote host closed the connection]
<shevy> if they come in masses, all but one get murdered
<pskosinski> Scary
shock_one has joined #ruby
x77686d has joined #ruby
artgoeshere has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
ahuman has joined #ruby
stantona has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
bluOxigen has joined #ruby
crzrcn has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
<shevy> in a case menu
cina has joined #ruby
<shevy> do you rather do this:
mansi has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy> when 'foo','bar','bla'
<shevy> or
<shevy> when 'foo', 'bar', 'bla'
benlieb has joined #ruby
<jhass> a , is followed by a space. no exceptions
mansi has joined #ruby
evenix has joined #ruby
sdwrage has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
<benlieb> when looping through an array is it possible to remove elements further down in the array so that they are essentially "removed" from the array being looped over?
bluOxigen has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
<jhass> benlieb: describe input and desired output, not the operation you think you need
<crome> benlieb: if you do map you can return nil for the values you want to get removed and then you can call compact on the result
mansi has quit [Read error: Connection reset by peer]
papercode has joined #ruby
<crome> if I got your description right
mansi has joined #ruby
benzrf is now known as benzrf|offline
rokob has quit [Remote host closed the connection]
pwh has quit []
<pipework> benlieb: I think you'd want to loop through the array in reverse.
jamto11_ has joined #ruby
<canton7> :(
pwh has joined #ruby
Emmanuel_Chanel has joined #ruby
<pipework> Oh wait, I think I've got it reversed.
timonv has quit [Ping timeout: 240 seconds]
cina has quit [Ping timeout: 252 seconds]
<elico> I am trying to write a document into mongodb from a http response while I get this issue: "BSON::InvalidStringEncoding: String not valid UTF-8" and I am not sure what to do with it. any directions?
helpD has quit [Remote host closed the connection]
<pipework> elico: Show us the string or make sure it's valid utf8
helpD has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
<elico> pipework it's a file about 100MB in size
<benlieb> here's what I would like: I would like to convert the first array into the second array, for consecutive duplicate numbers: https://gist.github.com/anonymous/cc9add8d80110b2c72b7
happytux has joined #ruby
<elico> I have the http response in memory
<happytux> hi
Nexus_x1 has quit [Quit: Computer has gone to sleep.]
<benlieb> this is surprisingly not obvious how to do
<happytux> Can I set the (auto)load path when calling a ruby program?
MatthewsFace has quit [Quit: This computer has gone to sleep]
<pipework> elico: Oh. well, that's sad.
AlexRussia has joined #ruby
<elico> res.body.size => 126514
<pipework> happytux: $LOAD_PATH
<pipework> happytux: Or $: for short
<happytux> pipework: thanks
mansi has quit [Remote host closed the connection]
<elico> What test can I run on it? you know what... I will try only partial response
endash has quit [Quit: endash]
<happytux> pipework: is it an environment variable?
<benlieb> jhass: ^
<pipework> happytux: RUBYLIB I think.
jamto11_ has quit [Ping timeout: 265 seconds]
maestrojed has joined #ruby
<elico> pipework: what tests you can think about?
<jhass> benlieb: arr.group_by(&:first).map {|k, v| [k, v.map(&:last).join(' ')] }
<pipework> elico: I don't know what you are talking about.
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
helpD has quit [Ping timeout: 265 seconds]
carraroj has quit [Quit: Konversation terminated!]
<jhass> happytux: ruby -Ipath, can be specified multiple times
<elico> BSON::InvalidStringEncoding: String not valid UTF-8 ..
luckyruby has joined #ruby
cina has joined #ruby
helpD has joined #ruby
<elico> pipework: I can share the partial string which actually is cause the error.
<benlieb> jhass: never used group_by. must study this
<centrx> (Also #index_by if you are using ActiveSupport)
mrnugget has quit [Quit: mrnugget]
blackmesa has quit [Ping timeout: 276 seconds]
mrnugget has joined #ruby
claymore has quit [Quit: Leaving]
mrnugget has quit [Client Quit]
snuffeluffegus has quit [Quit: AFK]
Nilium has quit [Ping timeout: 258 seconds]
elaptics is now known as elaptics`away
andrewjanssen has quit [Quit: Leaving...]
omosoj has quit [Ping timeout: 240 seconds]
evenix has quit [Remote host closed the connection]
<elico> anyone?
endash has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
CorpusCallosum has joined #ruby
<shevy> elico you must make it valid utf
CorpusCallosum has quit [Max SendQ exceeded]
cina has quit [Ping timeout: 265 seconds]
<shevy> .encode 'UTF-8'
<RubyPanther> elico: either strip your data, or else use an ASCII or some other raw data type, dunno what is appropriate for that db
cina has joined #ruby
Es0teric has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdwrage has quit [Quit: This computer has gone to sleep]
<elico> shevy: so mongodb accepts only utf?
<elico> ok a sec
<shevy> elico no idea, never used mongodb, whatever BSON is it gives back an error that states that you have an invalid encoding
tjr9898 has joined #ruby
<RubyPanther> elico: in general in databases, each database is defined to have a particular character set, so you should expect that limitation
<shevy> elico in general the first question to ask is - what encoding is your string?
<elico> well yea..
sdwrage has joined #ruby
<elico> UTF8.. from ruby point of view but it
<elico> sorrry.. but it
<elico> it's a video file content.
<elico> I want to store it on a DB..
Nilium has joined #ruby
stormbytes has quit [Ping timeout: 240 seconds]
<elico> I assume that using regular FS can be nice..
caleb_io has quit [Quit: caleb_io]
<shevy> elico huh - it really is utf8? then that is weird that an error pops up saying that it is not utf hehehe
<shevy> reactormonk btw why are you back to ruby?
dcunit3d has joined #ruby
<elico> shevy: I can even narrow it down to the character..
malida has joined #ruby
<elico> I think it means that the check is in a regex level or something similar.
tjr9898 has quit [Ping timeout: 240 seconds]
<RubyPanther> elico: You probably want an ASCII db instead of UTF
<shevy> I thought utf solves all problems
<elico> RubyPanther: lets think about the options.. is it ok by you?
<pipework> utf-3
kyb3r_ has joined #ruby
bradhe has joined #ruby
<elico> pipework: what?
<pipework> elico: Why are you encoding that data? :(
<pipework> It's binary data.
<bhaak> utf-8 is flawed. but it will all be fixed in the next version called utf-9
<pipework> bhaak: And then backported to utf-8.3
<elico> HeHE
maletor has joined #ruby
<pipework> Because the numeral is obvsly version number!
<elico> pipework: it's a file so I need to think about a way to store the files.
MatthewsFace has joined #ruby
MatthewsFace has quit [Client Quit]
<pipework> elico: As binary data.
<elico> mongodb seems like a good idea since it is not UTF-8 only but a document DB..
<elico> indeed in binary data
<pipework> Top googling results.
<metamaterial> willl utf-9 fix my nigerian email scams?
<pipework> metamaterial: Yeah! It fixes the ones that don't make it to your mailbox, affording you more opportunity!
sambao21 has joined #ruby
<elico> now bson complains about the encoding or letters.. and I am not sure he is being honest enough with me but ok lets move on to another option..
<pipework> No more missed chances to help out the Nigerian princes!
<pipework> elico: Never store binary data as encoded strings.
ndrei has quit [Quit: leaving]
<pipework> You'll make someone who knows what that means want to off you.
<elico> I just fetched it from the url...
<jhass> and if you have to use base64
bradhe_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
<shevy> utf-8 also cures diseases
<elico> like what? flew?
dawkirst has quit [Remote host closed the connection]
rokob has joined #ruby
havenwood has joined #ruby
_sambao21 has joined #ruby
pika_pika has joined #ruby
Squarepy has joined #ruby
dawkirst has joined #ruby
rokob has quit [Remote host closed the connection]
<elico> moneta seems like a very nice interface to me
<benlieb> jhass: ok, i've studied up and that pretty much does it. much obliged!
rokob has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Ping timeout: 252 seconds]
banister has joined #ruby
<reactormonk> shevy, not too much
<reactormonk> shevy, gotta say typechecking helps with all the functional stuff
<shevy> hehe
<pipework> I do almost no typechecking in my rubby
Astralum has quit [Ping timeout: 240 seconds]
<reactormonk> shevy, I prefer `expected ... got ..` instead of `undefined method X for Y`
anaeem1 has joined #ruby
jamto11 has quit [Remote host closed the connection]
freerobby has joined #ruby
ner0x has joined #ruby
einarj has joined #ruby
dawkirst has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
<shevy> hmm
dawkirst has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
MatthewsFace has joined #ruby
Megtastique has quit []
SilverKey has joined #ruby
arietis has joined #ruby
estaban has joined #ruby
Celm has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
crzrcn has joined #ruby
stantona has joined #ruby
benlieb has quit [Quit: benlieb]
dawe has joined #ruby
kilk_ has joined #ruby
Megtastique has joined #ruby
WishBoy has joined #ruby
Musashi1 has joined #ruby
estaban has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 264 seconds]
jackneill has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 264 seconds]
crzrcn has joined #ruby
lxsameer has quit [Quit: Leaving]
ianbrandt has joined #ruby
ianbrandt has quit [Excess Flood]
sdouglas has joined #ruby
Zesty has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
ahhMichael has joined #ruby
mcrmfc has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
wiku5 has quit [Quit: WeeChat 0.4.2]
cina has quit [Quit: leaving]
mcrmfc has quit [Client Quit]
mcrmfc has joined #ruby
rokob has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
MrJoshua has quit [Quit: MrJoshua]
crzrcn1 has joined #ruby
crzrcn has quit [Ping timeout: 276 seconds]
lw has quit [Quit: s]
agarie_ has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
<pskosinski> Undefined method Class.method for object of class Class would be more useful? :p
Martxel has quit [Read error: Connection reset by peer]
alpha123 has quit [Quit: leaving]
wiku5 has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
Martxel has joined #ruby
sdouglas has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
hfp`offline is now known as hfp
blackmesa has joined #ruby
andy___ has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 265 seconds]
<RubyPanther> elico: There are no options, videos are non-text data so you need to use ASCII, or if your db supports some kind of BLOB or RAW you can use that. A db encoded with utf is for multilingual text, not for arbitrary binary data
<RubyPanther> elico: normally you would save them in the filesystem and put the filename into the db
_sambao21 has quit [Quit: Computer has gone to sleep.]
Zesty has quit [Quit: Leaving...]
crzrcn1 has quit [Quit: Leaving.]
anaeem1 has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
bradhe_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<elico> RubyPanther: thanks this is what I was thinking about..
<pskosinski> Line X: C: NegatedIf: Favor if over unless for negative conditions. | Line X+5: Favor unless over if for negative conditions.
<pskosinski> rubocop is awesome >.>
<crome> only no code is good code for rubocop
<centrx> rubocop's family was killed by poorly styled code
Megtastique has quit []
enebo has quit [Quit: enebo]
jiriki has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hrs has joined #ruby
Megtastique has joined #ruby
postmodern has joined #ruby
<pskosinski> At least I reduced 247 offenses (in 325 lines long script) to 14. \o/
hrs has quit [Client Quit]
srji has quit [Quit: das beste was ich in meinem leben tun kann ist andere menschen dazu zu bringen mich toeten zu wollen]
wiku5 has quit [Quit: WeeChat 0.4.2]
Milly_Bays has joined #ruby
ktosiek has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
chrisja has joined #ruby
zigomir has quit [Remote host closed the connection]
sambao21 has joined #ruby
zigomir has joined #ruby
chrisseaton has quit [Ping timeout: 252 seconds]
lw has joined #ruby
Silent__ has joined #ruby
mansi has joined #ruby
* pskosinski wonders why he used "unless !something" instead of "if something"
zigomir has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
jamto11 has joined #ruby
Silent__ is now known as Hobogrammer
workmad3 has joined #ruby
jacobsmith has quit [Ping timeout: 240 seconds]
matchaw_ has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
roadie has joined #ruby
twiceaday has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
rm_ has quit [Remote host closed the connection]
Celm has quit [Remote host closed the connection]
rm_ has joined #ruby
alem0lars has quit [Quit: Going AFK...]
mostlybadfly has quit [Quit: Connection closed for inactivity]
twiceday has quit [Ping timeout: 240 seconds]
akonny has quit [Quit: akonny]
Cache_Money has quit [Quit: Cache_Money]
aspires has joined #ruby
Nexus_x1 has joined #ruby
ikaros has joined #ruby
timonv has joined #ruby
bradhe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rm__ has joined #ruby
rm_ has quit [Ping timeout: 276 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<shevy> ok guys
<shevy> it is time again
<shevy> down with your pants!
bradhe has quit [Read error: Connection reset by peer]
sputnik1_ has joined #ruby
bradhe has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
<BradPitt_> why is DHH such a douche
<shevy> BradPitt_ some must be ruthless in order to succeed. like steve jobs... did you read where he made agreements against payment to those who are hired away from/to the silicon valley companies?
stantona has joined #ruby
<BradPitt_> yeah
<BradPitt_> read multiple articles on that
<shevy> it's theft in my opinion
<BradPitt_> but DHH is just like, a tool
<shevy> well rails is past its peak
helpD has quit [Remote host closed the connection]
<shevy> competition rose up and ruby is declining
<shevy> says TIOBE
helpD has joined #ruby
<BradPitt_> i think RoR is still going pretty strong in the valley/bay area
<workmad3> shevy: I don't think TIOBE has ever shown much popularity for ruby
<BradPitt_> .23% change is very small
<shevy> workmad3 yeah, I think it secretly hates ruby
<shevy> BradPitt_ but just look at javascript!
<workmad3> shevy: partly, IMO, because TIOBE uses one dumb metric and is overall pretty crap
<shevy> BradPitt_ there was a time when ruby was before javascript on github
<BradPitt_> yeah but js can be on server and client side now
<BradPitt_> so naturally it is more ubiquitous
<shevy> see?
<shevy> see!?!
<shevy> more reasons for js, less for ruby :(
<BradPitt_> but i don't think server-side js is here to stay
<BradPitt_> do you?
aspiers has joined #ruby
<BradPitt_> its a trend imo
<shevy> yeah, because the web is damn important
<workmad3> BradPitt_: server-side JS has been around for something like 15 years
<workmad3> BradPitt_: it just got sexy with Node.js
sdouglas has quit [Remote host closed the connection]
<BradPitt_> has it?
<BradPitt_> i mean there are still things it isn't great for
<shevy> even php had a lot of success despite it being so awful, simply because there are so many people out there on this planet
<deepy> It has success because it filled a niche and snowballed
<shevy> yeah
<shevy> and others, like perl, couldn't quite fill the niche on their own
stantona has quit [Ping timeout: 240 seconds]
<shevy> BradPitt_ you meant your comment in regards to DHH because of testing culture?
<BradPitt_> i just think DHH is a tool, thats all
<BradPitt_> and its a shame that he is the "iconic" figurehead of the rails community
<BradPitt_> and why RoR/ruby is seen as "brogrammer" ish
<workmad3> BradPitt_: I came across server-side JS (in the form of Jaxer) around the same time I came across rails, about 7 years ago now... and I know there have been JS runtimes capable of running on the server for longer in the java ecosystem... I might have exaggerated with 15 years, but I'd say at least a decade :)
<BradPitt_> sure workmad3 but AFAIK it only came into popular light and being used in production for larger scale things recentyl
<BradPitt_> with node, mainly
<BradPitt_> i could be wrong though
helpD has quit [Ping timeout: 276 seconds]
<workmad3> BradPitt_: yeah... as I said, node.js made it sexy :)
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
franzip has joined #ruby
<BradPitt_> idk, im still very interested to see where it goes
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<workmad3> have a look at java and ruby web programming... chances are server-side JS will end up in pretty similar areas
compleatang has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
endash has quit [Quit: endash]
rokob has joined #ruby
dawe has quit [Quit: leaving]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
jamto11 has joined #ruby
<shevy> BradPitt_ well the two communities are rather different really. I dont really use rails, many people here on #ruby don't either, some do, a few are also on #rubyonrails - as far as I am concerned, rails is like another language
<BradPitt_> right, and I agree, but most outsiders (of both communities) conflate the two
<BradPitt_> sadly
<shevy> yeah
bradhe has quit [Read error: Connection reset by peer]
<shevy> I saw it happen myself, I started a while before rails was written
_1_Beto has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
Zesty has joined #ruby
<benzrf> i know shit about rails
<benzrf> and by shit i mean nothin
<shevy> one complaint I remember from chris2 (the guy who wrote rack) on #ruby-lang once was that the mailing list got more spam, and less "interesting" posts
<shevy> and I think rails partially is to blame for that, because many newcomers came to ruby, also writing to the mailing list. it had good and bad aspects
Zesty has quit [Client Quit]
<shevy> benzrf one day you will have a rails site
<shevy> benzrf I mean, you need to put your resume somewhere
<shevy> don't say you will use static html
Zesty has joined #ruby
<workmad3> shevy: he may just have a rack site for that... or a middleman site :)
<workmad3> shevy: or sinatra with RoM :)
<shevy> I know benzrf, right now he has none of that :D
Zesty has quit [Client Quit]
cover has quit [Remote host closed the connection]
<benzrf> static html is the best kind of site
<shevy> he is too busy learning new languages
<benzrf> *when it is all that you need
Megtastique has quit []
rokob has quit [Ping timeout: 240 seconds]
malida has quit [Ping timeout: 252 seconds]
<shevy> BradPitt_ do you use ruby?
<BradPitt_> yes
<shevy> BradPitt_ how or why did you come to use, or want to use, ruby?
<benzrf> i used to think 'ruby' was short for 'ruby on rails'
<benzrf> like 4 years ago
<BradPitt_> came from python/java. Heard and saw rails everywhere and was interested
compleatang has joined #ruby
<shevy> hmm
jamto11 has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
KanKava has quit [Quit: leaving]
<shevy> it is rare to find other newcomers
endash has joined #ruby
<shevy> I mean like "I used perl for the last 10 years but wanted another language" is very rare to hear about
fuhgeddaboudit has joined #ruby
Megtastique has joined #ruby
burgess has joined #ruby
dnordstrom has quit [Ping timeout: 245 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<_1_Beto> Hola ruby
<benzrf> BradPitt_: ruby is the same niche as python mostly
<benzrf> in general either can usually replace the other
<benzrf> like c# & java
<benzrf> but not quite so similar
Megtastique has quit [Client Quit]
kung has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shock_one has quit [Ping timeout: 264 seconds]
kilk_ has quit [Quit: Leaving]
<kalleth> benzrf: so did i
<kalleth> but i just wrote A Thing completely without rails
<benzrf> sweet
<shevy> anyone knows of a gem or something that removes ansi escape sequences from a string?
<kalleth> i <3 ruby, tbh
<shevy> like \e[1;31m
<kalleth> though i do want to learn me some go/scala at some point
<shevy> yeah
<shevy> ruby and python have very similar niches
<shevy> they fish in the same pond
eguim has quit [Ping timeout: 276 seconds]
kilk_ has joined #ruby
dapz has joined #ruby
<kalleth> i did use a static site for my resume though
SilkFox has joined #ruby
<kalleth> does that make me a Bad Programmer
<kilk_> yes
crzrcn has joined #ruby
sputnik1_ has joined #ruby
klaut has quit [Remote host closed the connection]
Celm has joined #ruby
Milly_Bays has quit [Quit: Leaving]
beond has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
Nexus_x1 has quit [Quit: Computer has gone to sleep.]
hfp is now known as hfp`offline
<shevy> kalleth well
<shevy> kalleth I'll rate the dynamic programmers above ya, sorry man
<AntelopeSalad> shevy: no but i think it would be a pretty basic regex
<kalleth> shevy: but but but but
<kalleth> :(
<kalleth> i used middleman to generate it
<kalleth> that has to be worth something
tjr9898 has joined #ruby
<shevy> hmm
<shevy> is that a rack component?
Nexus_x1 has joined #ruby
andy___ has joined #ruby
endash has quit [Quit: endash]
<apeiros> shevy: for colors, it's simply gsub(/\e\[[^m]*m/, '')
<apeiros> unless I made a mistake :)
<shevy> apeiros whoa, cool! I could not believe it could be that simple
<kalleth> shevy - it's a jekyll-like static site generator in rubby
benlieb has joined #ruby
<shevy> AntelopeSalad seems you were right
crzrcn has quit [Ping timeout: 240 seconds]
TheNumb has quit [Ping timeout: 264 seconds]
<apeiros> shevy: if you have escape sequences which are not color, this will break
<shevy> kalleth ah ok... somehow thought about rack... rack middleware.. hmm... isn't quite middleman...
<apeiros> hm, probably better make it safe
<shevy> unless the middleman trades with middleware
<apeiros> shevy: for colors, it's simply gsub(/\e\[\d+(?:,\d+)*m/, '')
<apeiros> whoops
<kalleth> nah, it just generates static sites
<apeiros> shevy: gsub(/\e\[\d+(?:;\d+)*m/, '') # ; not ,
ikaros has quit [Quit: Ex-Chat]
eka has joined #ruby
<shevy> okies thanks
_1_Beto has quit [Read error: Connection reset by peer]
<AntelopeSalad> from google
SilkFox has quit [Ping timeout: 252 seconds]
<shevy> hehe results from 2012 I guess :)
Raboo has quit [Ping timeout: 276 seconds]
<AntelopeSalad> Saturday, June 23, 2012 at 3:27:00 AM GMT+2
dik_dak has joined #ruby
northfurr has joined #ruby
Raboo has joined #ruby
TheNumb has joined #ruby
<apeiros> AntelopeSalad: (?:;\d+)? is wrong in that expression
<apeiros> needs to be *
<apeiros> as it can be e.g. fg, bg, bold, blink - all in one sequence
<AntelopeSalad> hmm it seems to match everything in his sample text
<apeiros> of course
<AntelopeSalad> but he did post it at 3:30am, so he was probably up for 5 hours trying to make it while fuming
<apeiros> otherwise he'd probably have fixed the expression
<shevy> hehehe
<apeiros> make one expression e.g. \e[34;40;1m
<apeiros> and suddenly you have stray ;1m in your text
<shevy> AntelopeSalad when do you produce the best code? as in best result or fastest, in ruby? i.e. the hour of the day, or n time after waking up
<AntelopeSalad> ah
<apeiros> also, neither his nor mine handle 256 colors escapes :)
<apeiros> anyway, bed time
<AntelopeSalad> hmm, it's not really based on time for me, it's my current mindset
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<AntelopeSalad> but i guess after waking up is usually the best
havenwood has joined #ruby
brunops has joined #ruby
tjr9898 has quit [Remote host closed the connection]
AGreyCrane has quit [Quit: This computer has gone to sleep]
Milly_Bays has joined #ruby
Gooder` has joined #ruby
bryanjswift has joined #ruby
eguim has joined #ruby
bryanjswift has quit [Client Quit]
testcore has quit [Ping timeout: 272 seconds]
bryanjswift has joined #ruby
testcore has joined #ruby
<shevy> hehe
pskosinski has quit [Quit: Til rivido Idisti!]
Gooder`` has joined #ruby
<AntelopeSalad> i usually try to code for 2-3 hour blocks and then take a break, then come back a little later
wiku5 has joined #ruby
banister has joined #ruby
jlast has joined #ruby
<shevy> aha
<shevy> that's how I try to do as well
<shevy> though i tend to make more smaller breaks and also less code blocks
<shevy> 3 hours would kill me
jcs222 has quit [Quit: leaving]
<benlieb> I have a global array (I know) that I'm looping through in a short utility script. Inside this loop I seem to not have access to methods I've defined in this script. What scope issue am I missing?
mostlybadfly has joined #ruby
banister has quit [Client Quit]
Gooder` has quit [Ping timeout: 255 seconds]
<benlieb> wait, now I do. hm.
<benlieb> k
estaban has joined #ruby
<AntelopeSalad> shevy: yeah 3 hours is a long, on new/harder things i tend to do less
<AntelopeSalad> *a little long
<benlieb> looks like i had to define the method *above* the loop. Weird.
<shevy> benlieb keep in mind that the ruby parser can be surprising
<shevy> >> if false; a = nil; end; a
<eval-in> shevy => nil (https://eval.in/142950)
<shevy> >> if false; end; a
<eval-in> shevy => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/142951)
<shevy> benlieb see? ^^^
einarj has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
banister has joined #ruby
<benzrf> ruby does weird shit
cpruitt has joined #ruby
bradhe has quit [Remote host closed the connection]
wiku5 has quit [Quit: WeeChat 0.4.2]
estaban has quit [Ping timeout: 252 seconds]
sputnik1_ has joined #ruby
sdwrage has joined #ruby
razrunelord has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
endash has joined #ruby
andrewlio has quit [Quit: Leaving.]
michaeldeol has joined #ruby
cpruitt has quit [Quit: cpruitt]
razrunelord has quit [Ping timeout: 240 seconds]
osvico has quit [Read error: Connection reset by peer]
franzip has quit [Quit: ...]
dcunit3d has joined #ruby
burgess has left #ruby ["^ddd"]
mehlah has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
kilk_ has quit [Ping timeout: 252 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
spacebug has quit [Ping timeout: 264 seconds]
<shevy> yeah
<shevy> benzrf wrote a lot of wtf's when he first noticed this
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
osvico has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Zesty has joined #ruby
bigmac_ has quit [Read error: Connection reset by peer]
<shevy> but now he grew accustomed to it
<shevy> he accepted it
<shevy> ruby has become a part of benzrf's life
Zesty has quit [Client Quit]
<shevy> he has written 3 gems and counting
bigmac_ has joined #ruby
aspires has quit []
hfp`offline is now known as hfp
spider-mario has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
banister has joined #ruby
SilverKey has quit [Quit: Halted.]
andy___ has quit [Remote host closed the connection]
<pipework> shevy: How is that remotely weird?
andy___ has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
mengu has quit []
andy___ has joined #ruby
<shevy> pipework the parser?
<shevy> pipework that it scans into if false code blocks
dawkirst has quit [Remote host closed the connection]
<pipework> shevy: That a isn't defined.
hermanmunster has quit [Remote host closed the connection]
banister has quit [Client Quit]
<pipework> Or were you saying that the first one made less sense?
hermanmunster has joined #ruby
crzrcn has joined #ruby
aspires has joined #ruby
<shevy> I mean that I found it also surprising that a is set to nil when I would assume that it is never called
dik_dak has quit [Quit: Leaving]
<pipework> ah
bradhe has joined #ruby
funburn has joined #ruby
<shevy> I should really learn python but I can't will myself to want to :(
<benzrf> >> if false; a = 3; end; a
<eval-in> benzrf => nil (https://eval.in/142956)
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
banister has joined #ruby
apeiros has quit [Remote host closed the connection]
<shevy> >> if false; a = 3; end; b
<eval-in> shevy => undefined local variable or method `b' for main:Object (NameError) ... (https://eval.in/142957)
apeiros has joined #ruby
randomnick_ has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 276 seconds]
hermanmunster has quit [Ping timeout: 252 seconds]
Firebox has joined #ruby
endash has quit [Quit: endash]
kirun has quit [Quit: Client exiting]
<Firebox> there is no ‘return’ in the method?
<Firebox> always?
dapz has joined #ruby
aspires has quit []
robustus has quit [Ping timeout: 264 seconds]
<shevy> Firebox "return" is optional
<shevy> if it is the last one
<shevy> or in other words, the last expression is (almost) always returned
<Firebox> option ok i see thanks
<shevy> I think setters work slightly different
SilverKey has joined #ruby
<shevy> in that they will always return the @ivar
<Firebox> thanks shevy
tjr9898 has joined #ruby
<shevy> foo=(i)
<shevy> return 33
sparrovv has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
tkuchiki has joined #ruby
endash has joined #ruby
SilkFox has joined #ruby
satnitefigt has left #ruby ["WeeChat 0.3.8"]
bradhe has quit [Remote host closed the connection]
cndiv has joined #ruby
bradhe has joined #ruby
troyronda has joined #ruby
AGreyCrane has joined #ruby
bryanjswift has quit [Quit: Bye.]
brisbin_ has joined #ruby
brisbin_ has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
brisbin_ has joined #ruby
brisbin_ has quit [Client Quit]
x77686d has quit [Quit: x77686d]
bradhe has quit [Ping timeout: 252 seconds]
mary_synthesizin has joined #ruby
aspires has joined #ruby
hfp is now known as hfp`offline
sshaw` has joined #ruby
chrisramon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
<sshaw`> String#strip leaves non-breaking space, is this intentional?
Guest47115 has joined #ruby
sski has joined #ruby
Spami has joined #ruby
endash has quit [Quit: endash]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Lewix has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<shevy> sshaw` can you show example
timonv has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
<sshaw`> shevy: "\xC2\xA0 ".strip.size
nanoyak has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
einarj has joined #ruby
nanoyak has quit [Client Quit]
predator217 has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
predator117 has quit [Ping timeout: 255 seconds]
troyronda has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
seuros has quit [Quit: Leaving.]
eka has quit [Ping timeout: 276 seconds]
danijoo_ has quit [Ping timeout: 252 seconds]
hermanmunster has joined #ruby
marr has quit [Ping timeout: 252 seconds]
osvico has quit [Read error: Connection reset by peer]
sshaw` has quit [Quit: rcirc on GNU Emacs 24.3.1]
jonr22 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
hermanmunster has joined #ruby
danijoo has joined #ruby
mrmargolis has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
beond has quit [Quit: beond]
osvico has joined #ruby
matti has quit [Quit: Oh dear...]
Kryptonical has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Quit: Leaving...]
jxf has joined #ruby
beond has joined #ruby
rokob has joined #ruby
PragCypher has joined #ruby