apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<cek> anyone used zeromq here?
bmurt has quit []
bmurt has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
PhantomS_ has quit [Read error: Connection reset by peer]
<pipework> cek: !used
kyrylo has quit [Ping timeout: 252 seconds]
<pipework> damnit, where's helpa?
<pipework> !use
PhantomSpank has joined #ruby
cek has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
horsecowdog has joined #ruby
RegulationD has joined #ruby
jimms has joined #ruby
<bricker> pipework: ruboto is king here
MatthewsFace has quit [Remote host closed the connection]
<pipework> bricker: mmph
sevvie has quit [Ping timeout: 250 seconds]
claw_ has quit [Ping timeout: 256 seconds]
ismaelga has quit [Remote host closed the connection]
nii236 has joined #ruby
bootstrappm has left #ruby [#ruby]
PhantomSpank has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ciao.]
baweaver has joined #ruby
moeabdol has joined #ruby
PhantomSpank has joined #ruby
jenrzzz has joined #ruby
workmad3 has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
ismaelga has joined #ruby
Lewix has joined #ruby
Limix has quit [Quit: Limix]
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 245 seconds]
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mrmargolis has quit [Remote host closed the connection]
scripore has joined #ruby
Lewix has quit [Ping timeout: 256 seconds]
nii236 has quit [Ping timeout: 245 seconds]
McRae has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
mleung has quit [Quit: mleung]
serivich has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
haxrbyte has joined #ruby
nobitanobi has joined #ruby
jimms has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 272 seconds]
faddai has quit [Quit: faddai]
deric_skibotn has quit [Ping timeout: 256 seconds]
<havenwood> ?anyone
<ruboto> Just ask your question, if anyone has, they will respond.
pietr0 has quit [Quit: pietr0]
Atomicalloy has joined #ruby
<Atomicalloy> Hi friends.
<bricker> Atomicalloy: 'Yello
snockerton has quit [Quit: Leaving.]
wldcordeiro has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
ismaelga has quit [Remote host closed the connection]
oo_ has joined #ruby
xxneolithicxx1 has quit [Ping timeout: 255 seconds]
pontiki has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
nfk|laptop has quit [Quit: yawn]
robustus has joined #ruby
segfalt has quit [Quit: segfalt]
<Atomicalloy> Do you prefer parentheses for methods?
Obfuscate has joined #ruby
longfeet has quit [Ping timeout: 256 seconds]
<toretore> Atomicalloy: it depends
charliesome has joined #ruby
yourabi has joined #ruby
doodlehaus has quit [Remote host closed the connection]
yourabi has quit [Client Quit]
<Atomicalloy> Is it bad if I use them constantly? Coming from C & C++ it's a big habit.
<toretore> no
PhantomSpank has quit [Read error: Connection reset by peer]
Limix has joined #ruby
<toretore> well, if you're not passing any parameters it looks weird
<sevenseacat> most people leave them off most of the time.
<toretore> especially for getters
PhantomSpank has joined #ruby
horsecowdog has joined #ruby
<Atomicalloy> Ah I see
<xxneolithicxx> i leave them off when calling if the method isnt being passed parameters and always add them to method defs for easier reading
DEA7TH has quit [Ping timeout: 264 seconds]
<toretore> defs, definitely add them
<bricker> I dunno, I like them always even for methods with no params. Removes some ambiguity
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> i hate reading `def initialize foo, bar=2`
<Atomicalloy> Yea that looks a bit weird
<bricker> I see `some_name` is a reference, and `some_name()` is an action
<xxneolithicxx> its one of those things where it doesnt matter, its returning a value and it looks more rubyish if its not there when it doesnt take parameters
Aww has joined #ruby
<bricker> but without parens, you just don't know with the former
<bricker> Either parens, or explicit receiver
<bricker> (where possible)
AlphaAtom has quit [Ping timeout: 245 seconds]
<Atomicalloy> So, initializer is the Ruby's constructor, right?
<bricker> yes
<xxneolithicxx> initialize
<toretore> if it can be replaces by a local variable and nobody would notice, leave the parens
baweaver has joined #ruby
redlegion has quit [Quit: BAI NIGGAZ]
keen___ has joined #ruby
<toretore> def foo(bar); foo(bar); obj.foo(bar); puts 'hello'; obj.foo = 'bar'; puts obj.foo; obj.perform_action();
blt has quit [Quit: WeeChat 1.1.1]
keen__ has quit [Ping timeout: 272 seconds]
reset has joined #ruby
mdarby has joined #ruby
reset has quit [Client Quit]
<harlen> def foo; def foo(bar); obj.foo bar; puts 'hello'; obj.foo = 'bar'; obj.perform_action;
<harlen> :)
sent1nel has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
kblake has quit [Remote host closed the connection]
longfeet has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
PhantomSpank has joined #ruby
x1337807x has joined #ruby
<harlen> could help you out.
<harlen> it would say obj.foo(bar), instead of obj.foo bar; as i wrote, i think.
<Atomicalloy> Yea does make more sense also
cpt_yossarian has quit [Quit: And then he took off.]
<Atomicalloy> The former
nii236 has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby
thatslifeson has quit [Remote host closed the connection]
PhantomSpank has quit [Remote host closed the connection]
<havenwood> Atomicalloy: parens if it breaks the interpreter to not have them, Seattle style
dorei has quit []
ismaelga has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
michaeldeol has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdarby has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
WajidKagzi has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
drocsid has quit [Quit: Lost terminal]
kblake has joined #ruby
doodlehaus has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TinkerTyper has quit [Quit: ZNC restarting...]
fgo has quit [Ping timeout: 248 seconds]
jeramy_s has joined #ruby
simplon27 has joined #ruby
philip1 has quit [Ping timeout: 272 seconds]
simplon27 has left #ruby [#ruby]
yfeldblu_ has joined #ruby
<Hamled> is this the right channel to ask about ruby C extension code?
bricker has quit [Ping timeout: 250 seconds]
TinkerTyper has joined #ruby
<eam> Hamled: sure
<Hamled> I'm running into a really odd situation... I have a rails project which uses the bcrypt gem, and when that gem's code calls __bc_crypt, the entry point to its C implementation
<Hamled> if it calls __bc_crypt and passes in the password string that it gets from form data
<Hamled> in the C code that string has extra characters
<Hamled> if I call it directly in rails console with a literal string (the exact same string) no extra characters
baroquebobcat has quit [Quit: baroquebobcat]
kblake has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
<Hamled> Is there any way I can try to detect the difference between these two strings on the rails side? I can only see the difference by doing some debug output and calling ValueStringPtr()
<Hamled> on the C side
cjim_ has joined #ruby
narcan has joined #ruby
lidensk__ has quit [Ping timeout: 256 seconds]
McRae has quit [Ping timeout: 250 seconds]
<Hamled> here's the relevant code: https://gist.github.com/Hamled/2490a515337fde9c992d In the output you can clearly see that the second call to __bc_crypt (the one that uses secret.to_s instead of a literal) has two extra characters
pengin has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
claptor has joined #ruby
wolflee_________ is now known as wolflee
robustus has quit [Ping timeout: 264 seconds]
horsecowdog has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
robustus has joined #ruby
iamninja has joined #ruby
doodlehaus has joined #ruby
reinaldob has quit [Ping timeout: 276 seconds]
<Hamled> oh nevermind, someone has an issue for this exact thing already
horsecowdog has joined #ruby
b4tm4n has joined #ruby
<b4tm4n> i'm using https://raw.githubusercontent.com/mperham/sidekiq/master/examples/upstart/manage-one/sidekiq.conf for a sidekiq init script. how do I make sure i'm using the proper version of ruby with rvm?
Limix has quit [Quit: Limix]
mistermocha has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
freerobby has quit [Quit: Leaving.]
mistermocha has joined #ruby
<quazimodo> so
<Radar> hi
<quazimodo> why do I need teaspoon and teaspoon-guard when guard-jasmine just works
<quazimodo> hi Radar
cmckee has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quazimodo> anyone know?
<quazimodo> the advantage of using teaspoon?
x1337807x has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 248 seconds]
cmckee has quit [Client Quit]
serivichi has joined #ruby
Lucky__ has joined #ruby
haxrbyte has joined #ruby
Brozo has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
Joffily has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
diegoaguilar has joined #ruby
pontiki has joined #ruby
<pontiki> rehi
haxrbyte has quit [Ping timeout: 256 seconds]
serivichi has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
mjuszczak has quit []
mleung has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
ponga has joined #ruby
FernandoBasso has quit [Quit: leaving]
mleung has quit [Client Quit]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> quazimodo: Gives you more precision than a tablespoon iirc
<Radar> True facts: nobody truly knows how many teaspoons fit into a tablespoon.
yfeldblu_ has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
shazaum has joined #ruby
bmurt has quit []
a346 has quit [Remote host closed the connection]
a346 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sprink has joined #ruby
<sprink> Hi. Would anyone be kind enough to recommend a ruby stack to write 2d games with?
sankaber has joined #ruby
GriffinHeart has joined #ruby
<sprink> on OSX
arescorpio has joined #ruby
Musashi007 has joined #ruby
tkuchiki has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
<Nilium> Because of the web dev take-over of Ruby, there's not really anything for game dev other than I think RPG Maker and that other thing unless you like the idea of writing a game engine.
<sevenseacat> we didn't mean it, honest.
<Nilium> Lies
<Nilium> Also, speaking of web dev stuff, I was reviewing a code sample today and someone had submitted plagiarized w3schools code. It was kind of amazing.
<sprink> lol
<sevenseacat> wow
<Nilium> For a moment, I felt like I had struck gold because of how weird it was.
a346 has quit [Read error: Connection reset by peer]
<sprink> this is the best I could find
<Nilium> Gosu is that other one I forget the name of always
oo_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<Nilium> I still find it kind of weird that RPG Maker uses Ruby, but it's Japanese, so that might explain it
<sprink> I guess it'll work. I was more or less curious if there was a more popular choice, but based on your comment I imagine it's probably the only ;)
<ponga> what's Gosu mean anyway
<Nilium> Dunno. Reminds me of gyoza.
<sprink> it means really skilled in korean
<ponga> Nilium: people think python is minority in japan
<ponga> is that explain you
<Nilium> I wrote GL bindings, a 3D math gem, etc. for Ruby, so I'm in the "write your own engine" camp
<ponga> damn it sprink i didn't know so until this day altho im korean
* ponga is shamed
dvlwrk has joined #ruby
wolflee_________ has joined #ruby
<sprink> gosu is used a lot in video gaming communities, like starcraft. , that's only reason I know it
<sprink> lots of koreans play that game
<ponga> play'ed' that game yeah
<ponga> that was national sport
<sprink> see :)
<ponga> true even i played starcraft
balazs has joined #ruby
<sprink> so yeah, that's where I heard the word, in starcraft, from koreans
<zotherstupidguy> ponga i watched that on national geographic =)
<ponga> oh so that's how it slip into English vocab
<zotherstupidguy> but isnt the word is japanese?
<zotherstupidguy> it means the upper hand or somthig
<ponga> no Japanese doens't have gosu
<Nilium> ponga: Might explain it? I'm not Japanese and don't keep track of programming language adoption there.
<ponga> im fluent in it, so i know
serivich has joined #ruby
<zotherstupidguy> go, su, those are japaense kana
<ponga> zotherstupidguy: coiencidently yes
<ponga> but that's just because both kor/jap rely on chinese characters for nouns
<zotherstupidguy> ponga i see, so what does it mean in what langauge?
<Nilium> Ruby, however, is from Japan, and the Japanese do kind of have a tendency to favor Japanese things like other people do with stuff from their nations
<sprink> from wiki page on gosu: The origin of the term is from hanja/hanzi: 高手, literally "high hand", also meaning pro or highly skilled at something,
wolflee has quit [Ping timeout: 252 seconds]
<sprink> it means both apparently
PhantomSpank has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
<ponga> zotherstupidguy: etymology of japanese/korean rely heavily on chinese and phonetics for noun is very similar
<Nilium> i.e., if you ask an American if "made in America" makes something automatically better, the answer is probably yes and probably not for any good reason.
<ponga> and reading for 高手 in japanese is not 'gosu'
<ponga> it should be koushu
aclapinpepin has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<sprink> Nilium: true. :)
doodlehaus has joined #ruby
<sprink> America is #1 duh
<sprink> :p
<zotherstupidguy> Nilium japanese culture puts a lot of pressure on creating good things in service to the ppl, maybe thats why they think japaene product is more considerating to ppls needs. like with cellphones, japanese cellphones are unique
<ponga> sprink: no wonder i bought Made in USA juice glass yesterday
<ponga> over Made in China
<sprink> America could be the worst country on the planet and we'd still think we're #1
<Nilium> zotherstupidguy: Don't know. I think it's just another form of nationalism.
djbkd_ has joined #ruby
<zotherstupidguy> i think there is more to it than that.
<Nilium> Probably.
doodlehaus has quit [Remote host closed the connection]
<zotherstupidguy> its like fear that someone from another culture wouldn't be as considerate as the exceptations is set to be
<Nilium> Would rather leave it to sociologists and historians to work out.
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<Nilium> I'm in no position to explain Japan.
michael_mbp has quit [Excess Flood]
dseitz has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
dseitz has joined #ruby
<ponga> i can't agree with 'japanese is considerating' anymore
<ponga> their android phone is shit
moeabdol has joined #ruby
<zotherstupidguy> Nilium who is!? we are all gaijins hehe
<_blizzy_> I'm trying to use Mini_Magick with Rails, however, I keep getting "Photo Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed
<_blizzy_> "
<_blizzy_> even though I have it installed. I'm using Windows 8.1
<ponga> _blizzy_: #Ruby_on_Rails
<_blizzy_> ponga, yeah, that's not the most helpful channel.
workmad3 has joined #ruby
<ponga> is it not?
<ponga> damn
<ponga> i never go there , didn't realise
<Nilium> Isn't it just #rails or #rubyonrails?
<zotherstupidguy> from the error you need to install imagemagick?
<_blizzy_> there are Linux elitists in there.
<sevenseacat> it is helpful, but we cant diagnose things like windows problems
<Nilium> I'm a BSD elitist.
<zotherstupidguy> it is $rubyonrails
horsecowdog has quit [Remote host closed the connection]
<sevenseacat> and we're not elitists, thanks.
<Nilium> I AM.
<Nilium> BSD FOREVER.
<zotherstupidguy> what kind of BSD?
michael_mbp has joined #ruby
<Nilium> FreeBSD.
shazaum has quit [Quit: Leaving]
<Nilium> Alternatively, if you're working on a microwave, NetBSD.
<zotherstupidguy> _blizzy_ what operating system u using?
<_blizzy_> sorry, sevenseacat c:
<Radar> _blizzy_: Hi, I'm here too tyvm.
<zotherstupidguy> oh, windows!
<_blizzy_> sorry, Radar
<Nilium> OpenBSD's also nice for servers.
djbkd_ has quit [Ping timeout: 272 seconds]
<Radar> _blizzy_: Show it, don't say it.
Guest59264 is now known as _chs_
<zotherstupidguy> Nilium vim or emacs?
<_blizzy_> Radar, IDK how I could show it from an IRC
<Nilium> Vim, clearly.
Akagi201 has joined #ruby
<havenwood> Nilium: wget or curl?
<Nilium> wget.
<Nilium> I have a personal hatred of using curl.
<zotherstupidguy> Nilium breakingbad or game of thrones?
weemsledeux has joined #ruby
<Nilium> Uh, haven't seen Game of Thrones, so I can't make that choice.
lidenskap has joined #ruby
<Nilium> I'm sorry that I can't set you straight on this.
<zotherstupidguy> Nilium fav BSD book?
moeabdol has quit [Ping timeout: 248 seconds]
<sevenseacat> game of thrones is awesome.
<Nilium> Don't have any, so we'll just go with the FreeBSD handbook
workmad3 has quit [Ping timeout: 256 seconds]
6JTAA0KE4 has joined #ruby
konsolebox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> lol this is funny
RegulationD has joined #ruby
<sevenseacat> very.
<_blizzy_> yeah, this video I'm watching
Sawbones_ has joined #ruby
<Nilium> (use bsd)
<Nilium> Just imagine a bearded person whispering that into everyone's ear and you basically have me.
<zotherstupidguy> have u installed imagemagick from binary or built from source?
<Nilium> I've done both at one point or another.
<_blizzy_> zotherstupidguy, binary
<sevenseacat> Nilium: thats slightly creepy.
<Nilium> I'm good at that.
balazs has quit [Remote host closed the connection]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
inavele has joined #ruby
balazs has joined #ruby
shellfu_afk has joined #ruby
kblake has joined #ruby
<zotherstupidguy> _blizzy_ gist the output error is a start
<_blizzy_> zotherstupidguy, there is no output error
<_blizzy_> I'm looking in development log
fgo has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
<Nilium> I am a tired person.
<_blizzy_> sleep thene.
<Nilium> At least I got to deploy a thing today.
<sevenseacat> Nilium: go get some rest and resume being awesome tomorrow.
serivich has quit [Ping timeout: 255 seconds]
<_blizzy_> I'm sorry everyone if I was being a dick or rude.
<_blizzy_> *if I.
<zotherstupidguy> not at all!
<_blizzy_> thxs :)
djbkd_ has joined #ruby
blt has joined #ruby
krz has joined #ruby
<zotherstupidguy> well, best rails guy awake here i knw is radar =)
towski_ has quit [Remote host closed the connection]
<Radar> hi what
<Radar> what have I been tricked into this time?
konsolebox has quit [Quit: Leaving]
<_blizzy_> sorry also, Radar. really am. you too, sevenseacat
<_blizzy_> c:
<zotherstupidguy> _blizzy_ needs a helping hand with rails/imagemagick/windows thingy
konsolebox has joined #ruby
<sevenseacat> we know.
<Nilium> Oh I should get ice cream
<Nilium> And then watch youtube videos
<Nilium> Yes
<Radar> zotherstupidguy: He's cross-posting and it's now coming to a close.
<Radar> zotherstupidguy: He's getting help in #rubyonrails
<zotherstupidguy> Radar great!
kblake has quit [Ping timeout: 272 seconds]
gazay_ has quit [Ping timeout: 276 seconds]
<_blizzy_> cross-posting is for cool people.
<sevenseacat> ...
<_blizzy_> ...?
<sevenseacat> you know what you just said about being a dick?
fgo has quit [Ping timeout: 250 seconds]
<_blizzy_> yes?
<sevenseacat> you probably should stop doing it now.
<_blizzy_> seems like someone can't take a joke
<_blizzy_> but ok.
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd_ has quit [Ping timeout: 240 seconds]
<sevenseacat> jokes dont come through well in text when they mimic everything else you say, unless its all a joke?
<_blizzy_> IDK how what typing ... means I'm a dick.
<_blizzy_> I was just curious of why you typed ..., thus the ? at the end.
<sevenseacat> sigh
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
<Radar> Conversation isn't productive, can it be over yet?
<sevenseacat> yep.
<Radar> thx
<_blizzy_> ok.
jeramy_s has joined #ruby
<_blizzy_> I truly am sorry, sevenseacat. I see what you mean now.
duderonomy has joined #ruby
<_blizzy_> on another note, is ruby 2.2.2 stable currently?
<sevenseacat> yes.
mistermo_ has joined #ruby
<_blizzy_> thxs. I might upgrade then.
<sevenseacat> on windows? no you won't
<_blizzy_> I just checked
<_blizzy_> it's on windows
<sevenseacat> but the devkit isnt.
<_blizzy_> oh, true.
<sevenseacat> and most of the gems dont support it.
Lewix has joined #ruby
<sevenseacat> like sqlite
<_blizzy_> yeah, I just looked at that.
MXfive has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Nilium> Ice cream acquired
nobitanobi has quit [Remote host closed the connection]
<sevenseacat> Nilium: what flavour?
<zotherstupidguy> _blizzy_ are you using rvm or rbenv?
hazelux has joined #ruby
<sevenseacat> zotherstupidguy: windows, remember.
<zotherstupidguy> no rbenv for windows?
<sevenseacat> no.
<Nilium> Orange sherbet, so technically not ice cream
* sevenseacat refrains from making an austin powers joke
<Nilium> Technicalities like that are for programmers and doctors, though. I'm an English major.
<_blizzy_> do it.
* sevenseacat is waggling eyebrows anyway
mistermocha has quit [Ping timeout: 264 seconds]
<_blizzy_> austin powers is always relevant
Rollabunna has quit [Read error: Connection reset by peer]
Rollabun_ has joined #ruby
jeramy_s has quit [Quit: Peace out!]
yfeldblum has joined #ruby
nobitanobi has joined #ruby
djbkd has quit [Quit: My people need me...]
gregf has quit [Quit: WeeChat 1.1.1]
thatslifeson has joined #ruby
gregf has joined #ruby
blt has quit [Remote host closed the connection]
zzach has quit [Ping timeout: 272 seconds]
zzach has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Atomicalloy> So, @ is used for instance variables? Are the similar to private in C++?
jenrzzz has quit [Ping timeout: 264 seconds]
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> 1[hi
thatslifeson has quit [Remote host closed the connection]
<quazimodo> hello
<quazimodo> i'm back
reinaldob has quit [Ping timeout: 248 seconds]
Ellis has joined #ruby
<Ellis> im reading the wiki for API and i don’t get it. what is an api?
<sevenseacat> an interface to an application
ismaelga has quit [Remote host closed the connection]
thatslifeson has joined #ruby
<_blizzy_> it allows you to interact with an application
<Atomicalloy> sevenseacat, Do you have any experience in any of c-languages or java?
mrmargolis has joined #ruby
<Ellis> i dont understand what that means,
<sevenseacat> Atomicalloy: many moons ago
PhantomS_ has quit [Read error: Connection reset by peer]
<_blizzy_> Ellis, like, if I send a GET request to /jokes/
<Ellis> who is using the interface?
PhantomSpank has joined #ruby
<_blizzy_> it would return something like {joke => "what's 6+6? foobar." }
<Atomicalloy> sevenseacat, Ok. So, for example, I saw that in Ruby, you create instance variables in class functions. That's a bit confusing.
<sevenseacat> Ellis: another application, eg. a web browser, or a mobile app
<sevenseacat> Atomicalloy: you shouldnt be doing that
jenrzzz has joined #ruby
<Atomicalloy> sevenseacat, Oh okey, why not?
Joffily has quit [Quit: /quit]
PhantomSpank has quit [Read error: No route to host]
<sevenseacat> for the same reasons you think its confusing
<sevenseacat> because it doesnt make sense to do so
PhantomSpank has joined #ruby
<Atomicalloy> sevenseacat, This is what I meant. http://codepad.org/eD9j2vsz
PhantomSpank has quit [Read error: No route to host]
<sevenseacat> those arent class methods, they're instance methods.
PhantomSpank has joined #ruby
<sevenseacat> if they were class methods, they'd typically be prefixed with self.
<Atomicalloy> Oh, it's called instance methods in Ruby.
<Atomicalloy> Ah okey.
<sevenseacat> i dont know c++, so your example means nothing to me
sent1nel has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<Atomicalloy> The C++ code, a class Person, where Person(...) is the constructor (initialize in Ruby) taking a string argument and initialize a class variable (instance variable in Ruby) called name with the value of n(n is the argument passed).
<sevenseacat> no, class variables are something different in ruby.
jack_rabbit has joined #ruby
Limix has joined #ruby
<sevenseacat> class variables are like static variables in other languages.
<Ellis> so an API is a set of instructions on how to get data from another APP?
<sevenseacat> the best language i have to compare stuff with is php, which may or may not help you.
<Atomicalloy> sevenseacat, I see. So private in C++ is for the implementation, variables you can only access thru the implementation (public functions)
<Atomicalloy> sevenseacat, Sure.
<sevenseacat> Ellis: it's an interface to another app. if you tell your browser to access /foo in your app, you'll get some HTML back. that's an interface.
<Atomicalloy> variables you can only access thru the interface (public functions) *
b4tm4n has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
<Ellis> sevenseacat: what’s the difference between the facebook GUI & the facebook api?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> ah. instance variables are private in ruby, though you can always jump through hoops and access them anyway
<sevenseacat> Ellis: not much.
<sevenseacat> one is for a browser, one is not - though you can also use the API in your browser if you craft the requests correctly.
<Atomicalloy> Oh okey I see. It's a bit confusing tho that they are directly created inside instance methods.
<sevenseacat> instance variables in instance methods, makes sense to me :)
<sevenseacat> ruby is a very dynamic and flexible language
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Atomicalloy> Yea I see that. So, for example if I make an instance variable @name inside initialize, @name is visible for all instance methods in the class right?
<sevenseacat> yep.
<Atomicalloy> And for the same reason as in C++, instance variables should not be used directly?
<sevenseacat> i dont know what the reason for C++ is, so
<Atomicalloy> sevenseacat, Accessing them directly outside the scope of the class
wolflee_________ has quit [Read error: Connection reset by peer]
<sevenseacat> should not be used directly by what?
<Atomicalloy> You said, "though you can always jump through hoops and access them anyway".
<Ellis> what is the value of an API?
<Atomicalloy> Should this be avoided?
rejerson69_ has quit [Remote host closed the connection]
<sevenseacat> Atomicalloy: it should
yfeldblum has quit [Remote host closed the connection]
<Atomicalloy> sevenseacat, Ok, that's what I meant :)
<sevenseacat> Ellis: to use an application. there isnt much point in having an app you cant use.
<Atomicalloy> We can communicate soon I guess,
<sevenseacat> Atomicalloy: we'll settle on some common terminology soon lol
rejerson69 has joined #ruby
<Atomicalloy> Yea lol
<Ellis> sevenseacat: why would a developer be interested in an API?
<sevenseacat> Ellis: to use the data that it gives access to
Sawbones_ has quit [Remote host closed the connection]
<Ellis> sevenseacat: gotcha. so APIs are important because we can access their data
<sevenseacat> you want to put a weather gadget on your website showing the current weather in the user's location. so you find a weather service that provides an api, you send them the user's location, and you get back stuff to put on your website
<Ellis> sevenseacat: gotcha, thanks for the patience.
<sevenseacat> np :)
<sevenseacat> think of any webapp you use that pulls in information from other places, eg. spotify can pull in data from amazon about where to purchase albums
<sevenseacat> its using an api provided by amazon to do so
<sevenseacat> a website is just a very specialized type of api, you have some information - a URL, some cookies, etc. - you send it to the app, and you get back some data - HTML to display in a browser
<sevenseacat> things like web scrapers use websites as a normal api - they take the HTML response in code, and manipulate it to get the information they want
ramfjord has joined #ruby
PhantomS_ has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
longfeet_ has joined #ruby
PhantomSpank has quit [Ping timeout: 252 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
longfeet_ has quit [Client Quit]
longfeet has quit [Ping timeout: 240 seconds]
<zotherstupidguy> sevenseacat you just created APIalism =)
<sevenseacat> ?
<zotherstupidguy> everything is an API philosphy
<sevenseacat> well it is
balazs has quit [Remote host closed the connection]
6JTAA0KE4 has left #ruby [#ruby]
Spami_ has quit [Quit: This computer has gone to sleep]
rkazak has joined #ruby
rkazak has left #ruby [#ruby]
rkazak has joined #ruby
Musashi007 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
RegulationD has joined #ruby
duderonomy has joined #ruby
braincrash has quit [Quit: bye bye]
inavele has quit [Ping timeout: 272 seconds]
lidenskap has quit [Remote host closed the connection]
sdothum has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
braincrash has joined #ruby
mistermo_ has quit [Ping timeout: 265 seconds]
Brozo_ has joined #ruby
charliesome has quit [Quit: zzz]
icebourg has joined #ruby
chris349 has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
<chris349> What is the command to start the built in ruby webserver?
charliesome has joined #ruby
Brozo has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
multi_io has joined #ruby
<sevenseacat> there isnt a command to do it
PhantomSpank has joined #ruby
<sevenseacat> you can write a script that will do it
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
Deele has joined #ruby
chris3492 has joined #ruby
<al2o3-cr> chris349: sudo ruby -rwebrick -e 'WEBrick::HTTPServer.new.start'
drizz has quit [Read error: Connection reset by peer]
chris34928 has joined #ruby
<ponga> wow jruby 9000pre2
<havenwood> Or, for example: ruby -run -ehttpd . -p3000
<sevenseacat> that one i didnt know of
<al2o3-cr> chris349: sudo ruby -run -e httpd -- -p 80 .
<havenwood> al2o3-cr: Shorthand for that: sudo ruby -run -ehttpd .
jarboot has joined #ruby
<al2o3-cr> havenwood: always done that way thanks didn't know
cefkamcau has quit [Ping timeout: 255 seconds]
<Radar> al2o3-cr: can be done without the sudo I think?
cefkamcau has joined #ruby
<al2o3-cr> using port 80 though
<sevenseacat> not on port 80
chris349 has quit [Ping timeout: 250 seconds]
<al2o3-cr> doesn't need sudo above 1024
scripore has quit [Quit: This computer has gone to sleep]
<al2o3-cr> I think
chris3492 has quit [Ping timeout: 250 seconds]
chris349 has joined #ruby
chris34928 has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
dudedudeman_ has joined #ruby
<dudedudeman_> did you guys just see my password?
<al2o3-cr> dudedudeman_: nope
<dudedudeman_> oh well that's good
<sevenseacat> was it hunter2 ?
<al2o3-cr> but i am blind ;P
<sevenseacat> i wonder how many people actually have that as their irc password out of irony
<dudedudeman_> ok, questino. i have multiple text fields that a user inputs data in to, and i'm working on logic for when submit is pressed. can anyone shed some light on how to if/else over multiple params?
chris349 has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
drizz has joined #ruby
<al2o3-cr> just out of curiosity is there irc password min length?
<Radar> dudedudeman_: Show us your password and we'll answer your question.
<dudedudeman_> password => Radarisabutt
<sevenseacat> oh man he so is.
paradisaeidae has quit [Ping timeout: 255 seconds]
<Radar> dudedudeman_: ok thanks
<jenrzzz> al2o3-cr: I think it's implementation-dependent
<Radar> dudedudeman_: What have you tried so far?
<al2o3-cr> jenrzzz: ah ok :)
Zamyatin has joined #ruby
lidenskap has joined #ruby
<dudedudeman_> well, i haven't tried much because i honestly don't know where to start. i do know that that i have succesfully gotten something like this to work: if foo.empty? redirect '/' end
<Radar> And what else would you like to try?
<Radar> Write some pseudocode if you have to
<dudedudeman_> but i'm trying to do a .save with a bunch of values, and i am trying to think through a good way to check if any of those values are empty
mengu has joined #ruby
mengu has joined #ruby
<dudedudeman_> i guess this could work... if foo.thing.empty? %% bar.otherthing.empty? && radar.butt.empty? do something end
<Radar> Sure.
<Radar> I don't know what the %% is supposed to mean
<dudedudeman_> ah sorry, &&
<dudedudeman_> in the exact case of my projectd, i have a variable that i am assigning to Class.new. Class has all these attributes(I think that's the right name..?) and i'm wanting to store those values
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<xxneolithicxx> eyo, you are foo bar'ing Radar's but with the thing and otherthing
jottr_ has joined #ruby
<dudedudeman_> does your butt feel left out? i can foo/bar over it with something as well
<dudedudeman_> :P
<xxneolithicxx> no no im quite all right
<dudedudeman_> ha. i'm sorry. i had to
mengu has quit [Ping timeout: 256 seconds]
OtterCoder has quit [Read error: Connection reset by peer]
<dudedudeman_> i was just carrying over the joke from earlier
<dudedudeman_> i'm doing x = Class.new and then following it up with x.foo = params[:foo] x.bar = params[:bar] and so on, and then doing an x.save
jottr_ has quit [Ping timeout: 240 seconds]
Ellis has quit [Quit: Ellis]
tjohnson has quit [Quit: Connection closed for inactivity]
cajone has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
cajone has joined #ruby
workmad3 has joined #ruby
gazay has joined #ruby
Ropeney_ has joined #ruby
Ellis has joined #ruby
<al2o3-cr> as github.gist got an API for command line pastes?
<ponga> http://pastie.org/10121437 any help for Jruby+Truffle installation fail?
Ropeney_ has quit [Client Quit]
Brozo_ has quit [Remote host closed the connection]
<al2o3-cr> be awesome if it did
<sevenseacat> yes, its part of githubs main api.
thumpba has joined #ruby
Ropeney has joined #ruby
zorak8 has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
fedexo has joined #ruby
<havenwood> ponga: What command are you using to install it?
<al2o3-cr> sevenseacat: sweet :)
chris349 has joined #ruby
kenndel_ has quit [Ping timeout: 272 seconds]
<ponga> havenwood: from tar , i tried 'rvm mount' too, giving same error
claptor has quit [Quit: this channel is bakas]
hephaestus_rg has joined #ruby
<ponga> that tar seems to include graal 0.6 instead of 0.7?
nettoweb has joined #ruby
<hephaestus_rg> hello, how can i find out if Class C defines a constant A
<hephaestus_rg> i want to make sure that it only checks on that context, like if A is defined elsewhere it should not affect the prior result
<al2o3-cr> https://github.com/defunkt/gist fscking awesome all the time well nvm ;P
<havenwood> ponga: Looks like the same one I use. Trying latest.
workmad3 has quit [Ping timeout: 264 seconds]
nettoweb has quit [Client Quit]
<ponga> havenwood: isn't proper Graal supposed to be included in the tar tho?
paradisaeidae has joined #ruby
<havenwood> ponga: Works on my machine.
<ponga> damn
<ponga> what's wrong with ma machine
<ponga> havenwood: yes im using exactly same file for both tar and rvm method
nii236 has quit [Ping timeout: 256 seconds]
Eiam_ has joined #ruby
<havenwood> ponga: Yeah, #jruby is probably best place to ask indeed. :)
<ponga> ive gone to #jruby
<ponga> real thanks havenwood for confirming on your machine
<havenwood> no prob
mrmargolis has quit [Remote host closed the connection]
doodlehaus has joined #ruby
gaganjyot has joined #ruby
<chris349> Maybe I phrase my question wrong. I have the ruby code, but it is web-based. How do I start the built in webserver to run that code and view it in a web browser?
<havenwood> ponga: Oh, I take it back! On latest I get the Graal 0.7 thing you do!
<sevenseacat> chris349: what ruby code is it? what framework does it use?
kenndel has joined #ruby
<ponga> chris349: for most test-out case it is localhost:6000 or something
<havenwood> ponga: Yeah, I can reproduce: This version of JRuby is built against Graal 0.7 but you are using it with version 0.6...
<ponga> does your code host it on local machine so you can type in URL in your browser
<ponga> havenwood: omg really?
<ponga> so how do i get 0.7
<ponga> damn!
<havenwood> ponga: aye, just with newest
<chris349> ponga, I have the code but I am not certain how to run it!
<ponga> i need to report and wait
<ponga> chris349: are you on OSX?
<sevenseacat> chris349: what ruby code is it? what framework does it use?
<havenwood> ponga: Good catch. I hadn't run into that yet.
<sevenseacat> chris349: or better yet, what did the instructions say to do?
Ellis has quit [Quit: Ellis]
<ponga> havenwood: nice im actually helping out !
<ponga> im off to write an issue
<chris349> I am using Linux. I dont know what framework was used and I do not have any instructions.
nobitanobi has joined #ruby
<sevenseacat> chris349: so where did you get this code from?
<sevenseacat> can we see it?
<ponga> chris349: is your question "how do i run my ruby code" ?
<ponga> then its "ruby yourcode.rb" in directory of your file
<sevenseacat> ponga: it isnt.
<ponga> damn
<ponga> ;p
<ponga> he is on rails?
<chris349> ponga, Yes. Normally I use Phusion Passengear and run the code from Apache webserver, but in this case I want to run it directly.
<sevenseacat> he doesnt know.
<ponga> oh
<chris349> sevenseacat, Yes I agree. I have do it before and its a generic command.
doodlehaus has quit [Ping timeout: 276 seconds]
<sevenseacat> chris349: so where did you get this code from? can we see it?
<havenwood> chris349: Is there a Gemfile file in the project root directory?
<sevenseacat> havenwood: what would that tell you? we know its a ruby app
<havenwood> sevenseacat: If there was one, I'd be curious as to its contents.
<sevenseacat> at least, i hope it is
<sevenseacat> ah true
paradisaeidae has quit [Ping timeout: 244 seconds]
<zotherstupidguy> al2o3cr a .gist is just a git repo, you can clone it and push to it
jarboot has quit [Ping timeout: 265 seconds]
<chris349> havenwood, Yes and I have installed all the required gems.
<ponga> chris349: so your ruby code file is IN the server
dudedudeman_ has quit [Ping timeout: 246 seconds]
<ponga> you ran it, and you want to view it in the browser right?
<sevenseacat> is there some severe lag between us asking questions and getting responses, or what
<ponga> isn't by accessing the IP address of your server
<chris349> ponga, The code is in a directory on a Linux machine. I dont know know to run it.
<al2o3-cr> zotherstupidguy: oh I know :)
<ponga> run it ah hah
<ponga> chris349: can you access the shell panel of your Linux machine?
<sevenseacat> chris349: answering *any* of the questions asked would be lovely.
<chris349> Yes I have root access to the machine.
<ponga> i had similar problem as chris349 before
<ponga> chris349: did you 'cd' to the directory of your ruby file?
<sevenseacat> this appears to be the blind leading the blind
<ponga> then its "ruby mycode.rb" or rails code.rb or jruby code.rb
<sevenseacat> but i'm cool with that. let us know when you're done.
<ponga> if your machine has ruby installed in path
<chris349> There is no .rb file in the directory.
alex88 has joined #ruby
<havenwood> chris349: Show us the contents of the Gemfile?
<zotherstupidguy> al2o3cr yo-mother-forker =)
<al2o3-cr> 8)
<ponga> chris349: hang on, your code is written and saved into .rb file isn't it?
Brozo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has quit [Quit: And then he took off.]
alex88 has quit [Ping timeout: 264 seconds]
<chris349> ponga, Yes there are subdirectories with .rb files but I am pretty sure what I have used before was a generic command that didnt reference any project specific file
jenrzzz has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
<chris349> I am pretty sure also that the server starts on port 3000, not 6000
<ponga> that's weird, i always refer to file when i run ruby
<ponga> can you ls and show the content of it? we need to know what framework you are using
cpt_yossarian has joined #ruby
<havenwood> chris349: Look at the Gemfile closely and write a poem about it and show us. Maybe from your verse we can divine its contents.
<sevenseacat> lol
<ponga> yeah we need content
<sevenseacat> is okay, he'll probably listen to ponga.
<ponga> no , please don't
<ponga> im unreliable source
<sevenseacat> i agree, but you're the only one he's answering so far.
<ponga> i was thinking his trouble was far simpler
<ponga> damn it
<chris349> The contents of the directory are: app/ bin/ config/ db/ Gemfile Gemfile.locl Rakefile README.rdoc test/ vendor/
<sevenseacat> see? :)
<ponga> ya..
<sevenseacat> chris349: it's a rails app. use `rails server`.
<ponga> its rails isn't it
<sevenseacat> let's see if he listens to that
devyn has quit [Read error: Connection reset by peer]
<ponga> i know im fabulous but that doesn't mean one has to listen to me
<chris349> I had already tried that. It returns: Error: Command not recognized
devyn has joined #ruby
<zotherstupidguy> so bundle exec rails sdoesn't solve your problem
* sevenseacat gets popcorn
<zotherstupidguy> chris349 `bundle install` , no prolblems?
fgo has quit [Ping timeout: 250 seconds]
<chris349> How involved would it be to add a dummy rails project? I am pretty sure this code is missing something.
<havenwood> chris349: gem install bundler && bundle && bundle exec rails server
<chris349> zotherstupidguy, Bundle install was able to install all the gems without a problem
<sevenseacat> but you havent yet told us what those gems were
<ponga> sevenseacat: can i sit next to you?
<zotherstupidguy> airpair?
<zotherstupidguy> :)
<sevenseacat> starting to suspect troll
Lewix has quit [Remote host closed the connection]
<zotherstupidguy> so `bundle exec rails s` no problems?
* ponga grabs sevenseacat's popcorn anyway
<chris349> zotherstupidguy, Correct.
<chris349> I am not sure if this is an issue but Gemfile has no gems, they are all in Gemfile.lock
<sevenseacat> so it *is* a rails app
<ponga> it IS rails app sevenseacat we all knew that
* ponga sips from his coke
<sevenseacat> everyone except chris349
<zotherstupidguy> chris349 are you happy with your app?
<sevenseacat> so there's your server, problem solved.
<havenwood> No gems in the Gemfile. Homeopathic code no doubt. Likely quite fast.
<sevenseacat> i'm so freaking glad that's over.
iotouch has joined #ruby
<ponga> what the heck is Homeopathic code
<ponga> lol
<chris349> Brb, refilling my cup of water.
EagleDelta has joined #ruby
<ponga> havenwood: im glad i wasn't on wrong track
krz has quit [Quit: WeeChat 1.0.1]
astrobunny has joined #ruby
<havenwood> ponga: So like instead of `gem help install` try `gem hel insta` or the final dilution `gem h i`. Give it a try.
paradisaeidae has joined #ruby
* ponga rolls out of his chair
<chris349> This is Gemfile.lock: http://pastebin.com/2C7eV5z3
<ruboto> chris349, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/78be1c0131921151f997
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<havenwood> chris349: Rails!
<ponga> it is rails we all knew it
* zotherstupidguy it is rails we all knew it
<sevenseacat> \o/
<ponga> it killed me
<ponga> trust me
astrobunny has quit [Remote host closed the connection]
cjim_ has quit [Quit: (null)]
dopie has joined #ruby
EagleDelta has quit [Remote host closed the connection]
icebourg has quit []
Musashi007 has quit [Quit: Musashi007]
oo_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
oo_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
mleung has joined #ruby
colorados2 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
lidenskap has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 248 seconds]
lidenskap has joined #ruby
braincrash has joined #ruby
moeabdol has joined #ruby
hellome has quit [Remote host closed the connection]
reinaldob has joined #ruby
zz_Outlastsheep has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
lxsameer has joined #ruby
chris349 has quit [Quit: Leaving]
diegoaguilar has quit [Ping timeout: 256 seconds]
psy_ has quit [Ping timeout: 276 seconds]
thatslifeson has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 255 seconds]
paradisaeidae has quit [Remote host closed the connection]
colorados2 has quit [Ping timeout: 256 seconds]
reinaldob has quit [Ping timeout: 250 seconds]
iotouch has quit [Ping timeout: 276 seconds]
iotouch has joined #ruby
RegulationD has joined #ruby
x1337807x has joined #ruby
dfinninger has quit [Remote host closed the connection]
colorados2 has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
mleung has quit [Quit: mleung]
RegulationD has quit [Ping timeout: 244 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tcrypt has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 265 seconds]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
hutch78 has quit [Read error: Connection reset by peer]
colorados2 has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
hutch78 has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
Oka has quit [Quit: さようなら]
IronKoopa has quit [Quit: Leaving]
tagrudev has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
colorados2 has joined #ruby
bluOxigen has joined #ruby
casadei_ has quit [Remote host closed the connection]
bruno- has joined #ruby
x1337807x has joined #ruby
hazelux has quit []
Sawbones has joined #ruby
pontiki has joined #ruby
snockerton has joined #ruby
gaganjyot has quit [Ping timeout: 248 seconds]
arescorpio has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 240 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
diegoaguilar has quit [Quit: Leaving]
iotouch has joined #ruby
SOLDIERz has joined #ruby
nii236 has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
vdamewood has joined #ruby
sent1nel has quit [Remote host closed the connection]
x1337807x has joined #ruby
<Atomicalloy> When I want to return a variable from a function, I just write it's name?
<sevenseacat> the last expression evaluated in a method is used as the return value
<sevenseacat> so if you have def name; @foobar; end; then @foobar is the last thing evaluated and its value will be returned
<sevenseacat> when you call name, that is
<Atomicalloy> sevenseacat, Oh I see. Can I set that variables value also?
<Atomicalloy> sevenseacat, Like this, http://codepad.org/08FWMTX2
A205B064 has quit [Ping timeout: 250 seconds]
<sevenseacat> no. you havent defined the foo= method on your class.
<sevenseacat> foo != foo=
<sevenseacat> calling hmm.foo = "bar" is a shortcut for calling hmm.foo=("bar")
Limix has quit [Quit: Limix]
<Atomicalloy> Oh okey I see.
Brozo has left #ruby ["Leaving..."]
Sawbones has quit [Remote host closed the connection]
muntazz has joined #ruby
<al2o3-cr> Atomicalloy: google attr_* also :)
<Atomicalloy> sevenseacat, That's the idea of attr_accessor?
<Atomicalloy> To be able to read and write?
<muntazz> chat
<Atomicalloy> al2o3-cr, Yea I just typed that
<harlen> what you've done is equivalent to attr_reader: :foo
<harlen> what you probably want is
<harlen> attr_accessor: :foo
zzach has quit []
jottr_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sevenseacat> yep, i wqas getting to that :P
<al2o3-cr> or attr_writer
<harlen> yours is better. mine is syntax error :)
<Atomicalloy> Ahh I see :)
<sevenseacat> in my code example, MyClass and MyClass2 have the exact same functionality
<Atomicalloy> Are there any situations where you would use the =() thing?
Jarboe has quit []
x1337807x has quit [Ping timeout: 250 seconds]
<Atomicalloy> Maybe if you wanted multiple arguments?
<sevenseacat> if you wanted to override the setter, eg. to parse and manipulate the value
Channel6 has quit [Quit: Leaving]
snockerton has quit [Quit: Leaving.]
<Atomicalloy> Oh so this is same as C++ where you change the behavior of the operators :)
MatthewsFace has joined #ruby
<Atomicalloy> For a class
iotouch has quit [Quit: This computer has gone to sleep]
<sevenseacat> there's no operators here, its all method calls and message sending
<Atomicalloy> I could also do, def foo +(x, y); (x+y+1); end
<harlen> operators in ruby are just methods. c++ is a bit more magical when it does it.
<Atomicalloy> right?
<sevenseacat> how would you call that?
<Eiam_> Is there a way to condense this down? h.map(&:effort).inject(:+) , this is what h looks like. [#<Test: @effort=5>, #<Test: @effort=6>]
x1337807x has joined #ruby
<sevenseacat> h.sum(&:effort) ?
<Eiam_> like.. fmap or something
jottr_ has quit [Ping timeout: 255 seconds]
<Eiam_> well h is an array, sum isn't defined for that
<sevenseacat> orly
<Eiam_> NoMethodError: undefined method `sum' for #<Array:0x007fbf49d91e20>
haxrbyte has joined #ruby
<sevenseacat> bah its probably an activesupport thing
<sevenseacat> yeah it is
gazay_ has joined #ruby
<al2o3-cr> Eiam_: that is pretty condensed imo
<pontiki> you don't need the map
<Eiam_> al2o3-cr: well,its not terrible, but I don't like having to enumerate twice
<pontiki> you can just sum the effort inside the inject block
<sevenseacat> see even now i get confused as to whats part of ruby and whats part of rails
gazay has quit [Ping timeout: 250 seconds]
gazay_ is now known as gazay
<Eiam_> you mean by like,writing code inside the inject block? =(
lemur has joined #ruby
<sevenseacat> yeah
<Eiam_> sevenseacat: simple solution, stay away from rails!
nii236 has quit [Ping timeout: 250 seconds]
<pontiki> yes, that's what i mean, like
<Atomicalloy> sevenseacat, Nevermind :p
<sevenseacat> i <3 rails
<Atomicalloy> sevenseacat, Am I able to change the behavior of the operator + for the specific class?
<Eiam_> pontiki: ah well, was hoping to avoid that.
<pontiki> why?
<sevenseacat> Atomicalloy: i believe so.
riotjones has joined #ruby
<pontiki> you don't like explicit blocks, just use implicit ones?
<lemur> class X; def +(other) do_your_thing end end
<Atomicalloy> sevenseacat, So if I have two class instances of class X, and I do instance_one + instance_two, maybe I can return the value of some instance variable.
<Atomicalloy> lemur, Thanks will try it out.
<sevenseacat> then yep, what lemur said.
<lemur> + is sugar for something like 1.+(2)
<Atomicalloy> So far, Ruby seems very logic I mean it's not hard at all. I hope it continues this way :(
<lemur> >> 1.+(2)
<sevenseacat> you can do all kinds of metaprogramming shit in ruby
<Atomicalloy> Compared to when I was learning C++
<ruboto> lemur # => 3 (https://eval.in/321470)
<Eiam_> pontiki: &:+ or &:sum is much cleaner to me
<lemur> that's just operator overloading
x1337807x has quit [Client Quit]
<sevenseacat> make a dsl as pretty and non-standard as you like
<pontiki> then you get to double enumerate
<Eiam_> pontiki: =)
<pontiki> does that "seem" cleaner, too?
<Eiam_> pontiki: well, at least we arrived at the same conclusion =)
riotjones has quit [Read error: No route to host]
haxrbyte has quit [Ping timeout: 240 seconds]
<sevenseacat> i dont think you did
gazay has quit [Client Quit]
workmad3 has joined #ruby
riotjones has joined #ruby
<lemur> >> (1..10).reduce(:+) # what are we talking about now?
<ruboto> lemur # => 55 (https://eval.in/321471)
<Eiam_> sevenseacat: sure we did. my choices were implicit block or spell it all out explicitly
<Atomicalloy> lemur, Isn't there any way to specific that I want to take a class X as an argument?
<lemur> >> {}.is_a?(Hash)
<ruboto> lemur # => true (https://eval.in/321472)
<sevenseacat> Atomicalloy: eh?
<Eiam_> basicaly, h.inject(0){|sum,ele| sum += ele.effort}
<lemur> >> class Foo; end; f = Foo.new; f.is_a?(Foo)
<ruboto> lemur # => true (https://eval.in/321473)
<sevenseacat> if foo is of class X and you call foo + bar, then it calls the + method on class X
<lemur> >> class Foo; def +(y) 1 + y end end; Foo.new + 5
<ruboto> lemur # => 6 (https://eval.in/321475)
<Atomicalloy> sevenseacat, http://codepad.org/V0iDQqFJ
<sevenseacat> Atomicalloy: i... dont know what you're trying to do.
<lemur> static typing in ruby
<Atomicalloy> lemur, What's the is_a ?
<lemur> >> 1.is_a?(Fixnum)
<ruboto> lemur # => true (https://eval.in/321476)
<sevenseacat> does what it says on the tin.
<lemur> >> 'string'.is_a? String
<ruboto> lemur # => true (https://eval.in/321477)
zorak8 has quit [Ping timeout: 250 seconds]
aganov has joined #ruby
<lemur> >> [].is_a? Array
<ruboto> lemur # => true (https://eval.in/321478)
<lemur> >> Array === []
<ruboto> lemur # => true (https://eval.in/321479)
<lemur> hehehe
<Atomicalloy> lemur, Lol you can do that?
<Atomicalloy> Ah lol :D
<lemur> Say hi to Haskell on the road to contracts and category theory on that one though
<lemur> case statements use ===
<al2o3-cr> ruboto: [] === Array
<Atomicalloy> >> class Foo; end x = Foo.new; x.is_a? Foo
<ruboto> Atomicalloy # => /tmp/execpad-6707b0fbf0df/source-6707b0fbf0df:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/321481)
workmad3 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<Atomicalloy> :S
<al2o3-cr> >> [] === Array
<ruboto> al2o3-cr # => false (https://eval.in/321482)
<lemur> only works the other way around
<sevenseacat> i was going to say, that looks very haskell-like
<sevenseacat> that contracts thing
<lemur> Array has === defined to is_a
<al2o3-cr> just show for that exact reason :[
<al2o3-cr> just show for that exact reason :p
<Atomicalloy> class Foo; end x = Foo.new; x.is_a?(Foo)
<lemur> Range has it defined to included
<Atomicalloy> >> class Foo; end x = Foo.new; x.is_a?(Foo)
<ruboto> Atomicalloy # => /tmp/execpad-cd268c23d09a/source-cd268c23d09a:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/321483)
<lemur> >> (1..10) === 1
<ruboto> lemur # => true (https://eval.in/321484)
<lemur> lambda / proc have it set to call
riotjones has quit [Read error: No route to host]
<lemur> >> -> x { x * 2 } === 4
<ruboto> lemur # => 8 (https://eval.in/321485)
<Atomicalloy> >> class Foo; end; x = Foo.new; x.is_a?(Foo)
<ruboto> Atomicalloy # => true (https://eval.in/321486)
wottam has joined #ruby
<lemur> semicolons are touchy here a bit
iceden has quit [Ping timeout: 256 seconds]
<Atomicalloy> lemur, I can see that
lemur is now known as baweaver
astrobunny has joined #ruby
<baweaver> baweaver == lemur
iotouch has joined #ruby
<baweaver> Anyways
<baweaver> case statements use === for when
<Atomicalloy> kind_of is same as is_a?
mengu has joined #ruby
yfeldblum has joined #ruby
<Atomicalloy> >> class Foo; end; x = Foo.new; x.instance_of?(Foo);
<ruboto> Atomicalloy # => true (https://eval.in/321487)
<baweaver> >> case 100; when (1..50) then :low; when (51..100) then :high; else :foo end
<ruboto> baweaver # => :high (https://eval.in/321488)
<baweaver> >> (51..100) === 100
<ruboto> baweaver # => true (https://eval.in/321489)
<baweaver> can be handy
<baweaver> especially when you remember &:method shortcuts
<baweaver> >> case 2; when &:even? then :even; when &:odd? then :odd; end
<ruboto> baweaver # => /tmp/execpad-3f693b4a4324/source-3f693b4a4324:2: syntax error, unexpected & ...check link for more (https://eval.in/321490)
djbkd has joined #ruby
<baweaver> guess not, it's touchy on that one.
krz has joined #ruby
nii236 has joined #ruby
<baweaver> well that's lame.
iceden has joined #ruby
<baweaver> ah well
timeout has joined #ruby
<Atomicalloy> >> class A; end; class B < A; end; x = A.new; x.instance_of?(B);
riotjones has joined #ruby
<ruboto> Atomicalloy # => false (https://eval.in/321491)
<Atomicalloy> :D
mooe has joined #ruby
banister has joined #ruby
thatslifeson has joined #ruby
<baweaver> ohai banister
djbkd has quit [Ping timeout: 256 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
<banister> hi
timeout has quit [Quit: leaving]
reinaldob has joined #ruby
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
thatslifeson has quit [Ping timeout: 272 seconds]
lidenskap has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
reinaldob has quit [Ping timeout: 245 seconds]
nii236 has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
piotrj has joined #ruby
<hanmac> baweaver: if you use to_proc then it works
zz_Outlastsheep has joined #ruby
<baweaver> figures, though kinda kills the mood, you know?
dcarmich has joined #ruby
<hanmac> hm yeah a bit ... i have seen someone using case without a case statement ... (and using functions in the when) ...
doodlehaus has quit [Ping timeout: 255 seconds]
<hanmac> imo that should show a warning or a syntax error:
<hanmac> >> case ; when 2.even? then :even; when 2.odd? then :odd; end
<ruboto> hanmac # => :even (https://eval.in/321499)
ismaelga has joined #ruby
nii236 has joined #ruby
pontiki has quit [Quit: goodnight familiar strangers]
ismaelga has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 265 seconds]
<dopie> anyone here use grok?
<hanmac> dopie: whats that? that sounds like Orc food ...
<baweaver> SciFi from Stranger in a Strange Land actually
<baweaver> To grok is to fully and completely comprehend somehting
<baweaver> something*
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<baweaver> literally to drink in knowledge.
krz has quit [Ping timeout: 264 seconds]
<baweaver> now considering how many blasted tools are using that name....
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has joined #ruby
<baweaver> web framework, aws cloudwatch tool, regex engine, natural language processing, and probably others I don't particularly want to hunt down
<baweaver> buuuut none of them are Ruby
<baweaver> which makes it odd to ask in a ruby channel, considering the most likely candidate is a web framework in Python.
<baweaver> I'll take "Engineers can't name things" for 500 Bob
seitensei has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* baweaver *breathes*
<harlen> sigh. 20 minutes rolling back and testing code changes because a div wasn't displaying. which happens when the display toggle line is commented out. home time. cyas :)
seitensei has joined #ruby
fgo has joined #ruby
<dopie> hanmac, ngrok
<hanmac> dopie: i dont know ngrok too
<sevenseacat> !popcorn2
<sevenseacat> oh dammit helpa.
ohaibbq has joined #ruby
dodobrain has quit [Quit: bye.. o/]
<al2o3-cr> where is helpa as it boycotted ruby?
<sevenseacat> it got banned from #ruby
<al2o3-cr> really?
<sevenseacat> ruboto is our new robot overlord now
<harlen> why banned?
<al2o3-cr> oh well
<sevenseacat> because it was decreed by apeiros
laurentide_ has quit [Read error: Connection reset by peer]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> so why hasn't ruboto got all the commands from helpa
* sevenseacat shrugs
SOLDIERz has joined #ruby
sinkensabe has joined #ruby
<al2o3-cr> typing that then it's like bot wars cause i've got color coded nicks ruboto(green) helpa(red) it's like good vs evil
<Radar> brown and dark yellow on my screen
<Radar> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<sevenseacat> heh
MyMind has quit [Read error: Connection reset by peer]
<al2o3-cr> haha
fgo has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Ping timeout: 265 seconds]
<Atomicalloy> sevenseacat, How long have you been coding in Ruby?
<sevenseacat> Atomicalloy: four and a half years.
<Atomicalloy> sevenseacat, I see. Does it take long to become good at it?
<sevenseacat> i'll tell you when i get there.
MyMind has joined #ruby
sent1nel has joined #ruby
jakolehm has joined #ruby
<sevenseacat> i consider myself to be good at rails. i dont consider myself to be good at ruby.
<Radar> Atomicalloy: What does it mean to be "good"?
<Atomicalloy> sevenseacat, Is there a difference?
<Radar> Atomicalloy: Would you say that not having to look anything up the API docs to mean that you're "good" at something?
<A124> wasamasa: So far switched to c++, optimized on many levels, algo, etc got from 5k years to 18 year best case estimate. (Unit is single x86 2600Mhz core, parallelism possible. Fifty quadcore computers one month.)
<sevenseacat> very much so.
nii236 has quit [Ping timeout: 276 seconds]
<Atomicalloy> Radar, I define it as someone who's able to pretty much do stuff and knows how to do it efficiently.
<sevenseacat> lol
<sevenseacat> if youre good, you can do stuff.
<sevenseacat> i like stuff.
<certainty> xD
sent1nel has quit [Ping timeout: 255 seconds]
<shevy> sevenseacat mouse stuff
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
<Atomicalloy> Radar, No, I wouldn't say that. To look up something is really part of the programming. What I say is, to feel comfortable when doing something.
<Radar> Atomicalloy: I've been feeling comfortable doing this for a couple of years now
arturaz has joined #ruby
<Radar> Depends on the task, really.
Akagi201 has quit [Remote host closed the connection]
<Radar> Someone who's been doing Rails for 15 minutes can tell you how to create a blog.
codecop has joined #ruby
<Radar> But they can't tell you how to build an ecommerce system
Akagi201 has joined #ruby
<Atomicalloy> Radar, Yea, I see. Also, the fact that Rails gives you a lot of things ready is something new to me. When we did C back in the days, well you know how it is. Starting from the very beginning.
vin-ivar has joined #ruby
Akagi201_ has joined #ruby
<vin-ivar> folks
<certainty> Radar: i hear someone has build a solution for e-commerce systems with rails. :p
krz has quit [Ping timeout: 256 seconds]
<vin-ivar> had a quick question about installing a particular gem
<vin-ivar> running "redmine install" after installing the gem
<vin-ivar> simply says "no .redmine directory found, run redmine install"
<vin-ivar> along with some other stuff
<vin-ivar> what do?
ndrei has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
Akagi20__ has joined #ruby
<al2o3-cr> ah never new you could do "gem i gem:version" hah learn something new everyday
robert_ has quit [Read error: Connection reset by peer]
Akagi201 has quit [Ping timeout: 264 seconds]
<al2o3-cr> is there a simpler way of doing this
sandstrom has joined #ruby
freerobby has quit [Quit: Leaving.]
harlen has left #ruby [#ruby]
nii236 has joined #ruby
alex88 has joined #ruby
Akagi201_ has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 248 seconds]
vire has joined #ruby
bigkevmc_ is now known as bigkevmcd
ndrei has joined #ruby
last_staff has joined #ruby
alex88 has quit [Ping timeout: 240 seconds]
<al2o3-cr> or is that considered sane?
<Atomicalloy> Is there any channel for ruby general talk?
<Radar> Atomicalloy: this is it
<Atomicalloy> Radar, Oh okey :)
<Atomicalloy> This question might sound stupid, but when do you think I should switch to Rails?
<baweaver> or go to the #ruby-lang channel (why is that a thing again?)
RegulationD has joined #ruby
<sevenseacat> didnt we answer that already
<baweaver> Whenever you don't feel like you're drowning in Ruby
<Radar> baweaver: *shrug* my guess is that some didn't want to live under zen spider's dictatorship
<Atomicalloy> sevenseacat, No?
hephaestus_rg has quit [Ping timeout: 240 seconds]
<Radar> And instead they'd prefer to live under my own personal brand of the stuff instead.
<sevenseacat> pretty sure we talked about it this morning
<baweaver> people not a fan of him? He seems decent enough.
<Radar> baweaver: "iron fist" is what I'd call his moderation style.
<Atomicalloy> sevenseacat, We did but there was no define answer to that.
<sevenseacat> because there is no definite answer
nfk|laptop has joined #ruby
<baweaver> He was spitting fire the other day, I'll grant that one.
vire has quit [Ping timeout: 245 seconds]
<Atomicalloy> sevenseacat, You said you were better at Rails than Ruby that's why I got confused.
<sevenseacat> if you want to use rails, install it now.
ismaelga has joined #ruby
<sevenseacat> i am. i did not take any time to learn ruby before i learnt rails.
<Atomicalloy> sevenseacat, Oh.
<baweaver> fair warning, as someone who does interviews that's a red flag
<Atomicalloy> I thought it went like, become good at Ruby then do Rails.
<sevenseacat> it should be.
A205B064 has joined #ruby
<havenwood> al2o3-cr: What's a person block? Just curious what goes in there?
<sevenseacat> i did it wrong.
<Atomicalloy> Well, I should at least read Eloquent :)
emilkarl has joined #ruby
<baweaver> become decent at Ruby, learn Rails, enhance on Ruby
ismaelga has quit [Remote host closed the connection]
iotouch has quit [Ping timeout: 245 seconds]
<fivetwentysix> Isn't rails a little dated? I thought ppl just do ruby for chef now adays..
<havenwood> Too many things to learn. Shuffle and start learning!
<sevenseacat> fivetwentysix: trollololol
<fivetwentysix> ?
<baweaver> sevenseacat: like some people I've talked to couldn't code their way through a reverse string function
theotherstupidgu has joined #ruby
<baweaver> fivetwentysix: completely unrelated mate.
iotouch has joined #ruby
<fivetwentysix> k
<sevenseacat> fun. even i could muddle through that in ruby, without using core/stdlib
<havenwood> al2o3-cr: Person = Struct.new :name, :age do def initialize; yield end end
<baweaver> sevenseacat: but swore they could do rails. That type of thing gets me to say no fast.
<al2o3-cr> havenwood: one sec
<baweaver> It's really not even that hard, that's one of my simple tests next to fizzbuzz
zotherstupidguy has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
nii236 has quit [Ping timeout: 256 seconds]
<al2o3-cr> havenwood: I want it so I can do Person.new do; name "whatever"; age 34; end # again contrived but you get my i hope
gagrio has joined #ruby
<fivetwentysix> al2o3-cr: shit if you really want structs do golang
<certainty> wat?
<baweaver> Those aren't structs mate
<baweaver> it's a DSL
<baweaver> Chef and JBuilder do something very similar
<Radar> MATE
<baweaver> but I don't know how.
* sevenseacat holds phone and chants MAAAAAAAATE
allenn has joined #ruby
<baweaver> phrase of habit.
<al2o3-cr> afk 10 minutes be bk then
<fivetwentysix> baweaver: it's called yield
<Radar> the more A's in the word "mate"; the friendlier you are to that person
ismaelga has joined #ruby
<sevenseacat> we call our enemies 'mate' and we call our mates assholes
<Radar> For example, when I greet me mate bazza, It's "MAAAAAAAAAAAATE". When I'm talking to some idiot on the train who thinks its OK to take up two seats, it's "mate"
<baweaver> I know what yield is
<certainty> also beware of someone calling you mte
<shevy> mte?
nii236 has joined #ruby
* theotherstupidgu thinkin aussies and kiwis are COOL and friendly just for using MATE;
<shevy> I wouldn't trust them
<shevy> they walk upside down
<sevenseacat> we're awesome.
gauke has joined #ruby
<shevy> :)
oo_ has quit [Remote host closed the connection]
<certainty> shevy: the number of A's in mate is directly proportional to the level of sympathy you have for that person. So mte ... well you get it
<shevy> hmm so
<shevy> it's mte
<shevy> and sshole
<shevy> right certinty?
Musashi007 has joined #ruby
<certainty> shevy: got it
kenndel_ has joined #ruby
<shevy> \o/
* theotherstupidgu germans should use MATE more often in emails
<shevy> germans should not be allowed to write emails
haxrbyte has joined #ruby
ismaelga has quit [Ping timeout: 252 seconds]
<Radar> Germans would use "mate", but the word is superfluous which goes against what it means to be German, so they don't.
andikr has joined #ruby
<baweaver> Ah, instance eval, that's hw. al2o3-cr: https://robots.thoughtbot.com/writing-a-domain-specific-language-in-ruby
wolflee has joined #ruby
<theotherstupidgu> or yield if block_given?
<baweaver> well to use methods inside it for definition
AirStar has joined #ruby
kenndel has quit [Ping timeout: 256 seconds]
<AirStar> i want study ruby, before i must install ruby on my mac. how can i do?
<baweaver> MyDSL.define do attribute 'foo' end
<havenwood> AirStar: Ruby ships with OS X.
<AirStar> Ruby ships?
<AirStar> what is it?
<havenwood> AirStar: To check the version, type: ruby -v
vire has joined #ruby
<Radar> AirStar: It's there on your Mac already
<AirStar> ruby 2.0.0p481 (2014-05-08 revision 45883)
<Radar> AirStar: yay isn't that magical?
<baweaver> Well that's one step out of the way.
* theotherstupidgu thinkin Airstar is from Germany
selu has joined #ruby
<Radar> theotherstupidgu: Would that make me from Bulgaria?
<AirStar> brew install ruby?
<baweaver> Guten Tag
<AirStar> possible?
<Radar> AirStar: Use ruby-install + chruby
<havenwood> AirStar: That'd give you latest stable.
<Radar> Don't use RVM because it's bloated.
<theotherstupidgu> Airstar i hear mac devs like rubymine, check it out
<baweaver> Oi
<baweaver> Vim of GTFO
<baweaver> That being said, I use Sublime more often
<Atomicalloy> I have the craziest theme for Vim :)
<Radar> Sublime is the One True Editor
<Radar> !subjective
<helpa> What you just asked could be classed as subjective. Subjective questions often start flamewars, which are tedious and boring. Try all the available options and see which one suits you the best.
oo_ has joined #ruby
<Radar> *cough*
<baweaver> less tendency for pair programming partners to want to axe murder you
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> I find vim has that effect for some reason.
<theotherstupidgu> Radar github's new editor is the next sublime i suppose, i use vim anyway
<baweaver> Atom
<AirStar> i must install ruby by ’brew install ruby’?
<Radar> theotherstupidgu: that Atom thing? Probably.
<Radar> AirStar: YOU ALREADY HAVE RUBY
<Radar> It is installed!
<Ropeney> Visual Studio code for win?
<AirStar> already?
<Radar> AirStar: yes!
<baweaver> Too young to make accurate assessments yet
<Radar> AirStar: "ruby -v" showed you a Ruby version.
<havenwood> AirStar: If you have OS X you have Ruby.
<Radar> AirStar: That means it's installed!
<AirStar> old version?
<Radar> AirStar: Yes.
<havenwood> AirStar: A supported but dated version.
<Radar> AirStar: Get the new version by installing chruby + ruby-install.
<AirStar> i want have new version.
<Radar> AirStar: not "brew install ruby"
<sevenseacat> !osx
<sevenseacat> wait, no.
<sevenseacat> write a new one Radar.
sandstrom has quit [Quit: My computer has gone to sleep.]
<baweaver> hehe
<Radar> AirStar: go now
<Radar> find peace
<baweaver> Radar: The irony is that brew is written in Ruby, so to run it....
csaunders_ has quit [Ping timeout: 248 seconds]
<Radar> AirStar: Ok sure you can do that if you want.
<AirStar> brew install ruby?
<AirStar> possible?
<Radar> AirStar: ffs
<Radar> AirStar: !try
<helpa> AirStar: Why don't you try it and find out for yourself?
* baweaver grabs popcorn
<AirStar> 8) my mac is newest.
vickleton has joined #ruby
<AirStar> heh
<Radar> newest mac != newest Ruby
* baweaver scratches head in bewilderment.
kyrylo has joined #ruby
<Atomicalloy> baweaver, http://i.imgur.com/feMdQ83.png
allenn has quit [Remote host closed the connection]
DavidDudson has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 248 seconds]
<baweaver> Atomicalloy: ? Vim theme?
allenn has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> I just default to Molokai most times, or Solarized failing that or when it gets old.
csaunders has joined #ruby
<Atomicalloy> baweaver, Yup I'm building one.
<AirStar> ruby 2.0.0p481 (2014-05-08 revision 45883)—->ruby 2.2.0p0 (2014-12-25 revision 49005)
<baweaver> Bright themes are eye-burning nightmares
rdark has joined #ruby
<sevenseacat> dobdark theme ftw
<Atomicalloy> You find it bright?
* baweaver claps slowly
<baweaver> No no, just saying I like darker themes in general
<Atomicalloy> baweaver, Yea I know, try blue :p
<Atomicalloy> I hate sublim :o
<Ropeney> Airstar just use rbenv
anisha has joined #ruby
ezra has quit [Ping timeout: 240 seconds]
lidenskap has joined #ruby
allenn has quit [Remote host closed the connection]
<AirStar> rbenv? what is it? Ropeney
<Radar> lol
anisha has quit [Client Quit]
<Radar> lol @ just use
<Atomicalloy> baweaver, The blue theme will get you blind
<Radar> AirStar can barely understand English and now we've given him 3 ways to install Ruby. Congrats people!
anisha has joined #ruby
<Atomicalloy> sudo apt-get install ruby
<Ropeney> Airstar: https://github.com/sstephenson/rbenv simple instructions
<theotherstupidgu> AirStar: !try
<baweaver> Bot says no
<sevenseacat> Radar: three ways and he already has ruby installed.
<Radar> theotherstupidgu: You tried, and it didn't work.
<AirStar> i already installed with ‘brew install ruby’.
<Radar> sevenseacat: confirm
<theotherstupidgu> lol
<Radar> AirStar: Great, so problem is solved.
<Radar> !next
<helpa> Next question, please!
konsolebox has joined #ruby
<AirStar> gve me easy tutorial site.
<AirStar> give me easy tutorial site.
<Atomicalloy> hahah
<theotherstupidgu> try sitepoint ruby
<Radar> Ruby Koans
<baweaver> AirStar: http://bit.ly/1dvIlLA
<AirStar> how about ‘learnhardwayruby’?
<Ropeney> Airstar: https://github.com/sstephenson/rbenv did you just ignore it?
<Radar> Ropeney: Yes.
<Radar> Ropeney: Because he _already has Ruby installed_
vickleton has quit [Quit: Ex-Chat]
nitrix has quit [Ping timeout: 240 seconds]
<Ropeney> >.<
<AirStar> how about ‘learnhardwayruby’ for beginner?
nii236 has quit [Ping timeout: 276 seconds]
<al2o3-cr> thanks for the link baweaver and thanks havenwood chow for now \o>
<Radar> loooool
<baweaver> Read it then
kohvihoor has quit [Ping timeout: 240 seconds]
<Radar> AirStar: Ruby Koans
<baweaver> Ah Zed Shaw
<havenwood> al2o3-cr: Enjoy the chow!
lessless has joined #ruby
PhantomS_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
jottr_ has joined #ruby
<baweaver> For people who already know other languages, this is invaluable: http:///www.learnxinyminutes.com
<al2o3-cr> will do :)
sandstrom has joined #ruby
<al2o3-cr> right gotta go or i'll be late bye everyone 8)
thumpba has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
ducklobster has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
<Ropeney> nothing beats https://www.railstutorial.org/book
thumpba has joined #ruby
<baweaver> for Rails
<Ropeney> touche
<baweaver> but they're trying to learn Ruby
<Radar> Ropeney: !ri4a
<Radar> Ropeney: !r4ia
<helpa> Ropeney: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
<Radar> Ropeney: Sorry you were saying? :)
reinaldob has joined #ruby
sandstrom has quit [Client Quit]
<Atomicalloy> Rails 4 will be the first book I read being written from a woman
Guest29689 has joined #ruby
<Ropeney> still railstutorial is awesome intro
<baweaver> Radar == Ryan Bigg. Self plug
<Atomicalloy> by a woman*
<Ropeney> the rails 4 in action is awesome for learning in depth
<baweaver> Noted that I need to still read through that one later Radar.
<Radar> baweaver: READ IT NOW
<sevenseacat> Atomicalloy: not sure how to take that one.
<baweaver> Rails 4 Way is probably the really in depth one.
<AirStar> how long it takes time for mastering ruby?
<Radar> AirStar: LOL
<Radar> This is hilarious
<Radar> That we keep getting asked this question
<Radar> every day
<Atomicalloy> sevenseacat, Are you / or t ?
<baweaver> 10_000 hours
<Radar> AirStar: Don't worry about how long it takes. Just learn.
<sevenseacat> Atomicalloy: I am the woman that wrote that book.
<Atomicalloy> sevenseacat, No way.
<sevenseacat> yes way.
<Radar> Atomicalloy: Given you're not ESL, can you explain why you wanted to know how long it took to master Ruby?
<Atomicalloy> Radar, Hm?
<Radar> I don't understand the point of that question.
<AirStar> 10,000 hour ——> 416 days?
MatthewsFace has quit [Remote host closed the connection]
<Radar> Atomicalloy: I want to know why it was important to you at that time.
alex88 has joined #ruby
<baweaver> Ah, wasn't following you sevenseacat
<Radar> Atomicalloy: 1,250 days @ 8hrs a day
<Radar> last msg was for AirStar
<theotherstupidgu> AirStar my advice not to use rails, instead try to understand basic ruby and metaprogramming, google 'dave thomas metaprogramming ruby'
jottr_ has quit [Ping timeout: 250 seconds]
<Atomicalloy> Radar, I didn't say to master it but become good at it and I explained what I meant by good. Tho, I didn't know Rails and Ruby differ at some level, my fault :)
kenndel has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Atomicalloy> sevenseacat, Really I will buy it :)
<sevenseacat> :)
* baweaver whistles
<AirStar> what is strength of ruby?
thumpba has quit [Ping timeout: 240 seconds]
Spami_ has joined #ruby
<Atomicalloy> AirStar, incline dumbbell press
<baweaver> AirStar: Learning to use Google will be invaluable you know
<tobiasvl> AirStar: are you a troll
ohaibbq has quit [Quit: Leaving...]
fgo has quit [Ping timeout: 245 seconds]
<AirStar> i m no troll, i installed ruby already. tobiasvl
kenndel_ has quit [Ping timeout: 272 seconds]
reinaldob has quit [Ping timeout: 244 seconds]
<AirStar> i m not troll,
<Ropeney> do you live under a bridge?
<AirStar> i m not begger, i have mac
<AirStar> of newest
* theotherstupidgu thinkin trolls have feelings too
<Atomicalloy> Radar, Actually, as I told you I'm not used to language->framework relationship that's why I was a bit confused.
<baweaver> Oi, be nice
<Radar> Atomicalloy: right
* sevenseacat dancing with glee about making simple_form custom inputs right now
<baweaver> AirStar: but really, you need to learn to be self-sufficient and google some of these questions.
kohvihoor has joined #ruby
<Atomicalloy> I don't believe it damn nice :)
ferr has joined #ruby
<sevenseacat> :)
<sevenseacat> thats us.
<sevenseacat> Radar is one of the authors also.
<baweaver> No wonder I hadn't seen it pop up yet, not quite released yet.
<baweaver> I was about to say, man I'm slipping.
<Radar> Yes I liked writing it.
<Radar> Dealing with the publisher left more to be desired.
workmad3 has joined #ruby
<theotherstupidgu> AirStar ruby's coolness [made in japan, cool metaprogramming features, friendly community who doesn't kcikout trolls, very easy to make new prjects with] and there is no such thing as the ultimate langauge of all so relax and pickone
yfeldblum has quit [Ping timeout: 256 seconds]
<sevenseacat> we've signed off on every single bit of the content, and its being typeset and the like as we speak.
haxrbyte has quit [Remote host closed the connection]
<AirStar> yeah theotherstupidgu
<baweaver> Oh I'll give it a read later when I get a chance, just thought I missed a book for a second there.
<Atomicalloy> sevenseacat, Where are you from?
iotouch has quit [Quit: This computer has gone to sleep]
<sevenseacat> Atomicalloy: Perth, Australia.
<baweaver> venture a guess
<baweaver> Aussie
<theotherstupidgu> perth!
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AirStar> mac is good for programming of ruby?
sameerynho has joined #ruby
gazay has joined #ruby
<Radar> AirStar: yes
vire has quit [Quit: Leaving]
vire has joined #ruby
<Atomicalloy> Linux ftw
<Atomicalloy> :)
<baweaver> Windows is hell for Ruby.... Had to get that to behave for a few years.
<sevenseacat> linux or mac are both good choices.
<Ropeney> did i hear Radar you were a author in Rails 4 way?
<Atomicalloy> baweaver, What is Windows?
reinaldob has joined #ruby
<Radar> Ropeney: Rails 4 in Action.
reinaldob has quit [Remote host closed the connection]
<baweaver> That was Obie Fernandez
krz has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
amundj has joined #ruby
<baweaver> who's been oddly quiet lately.
<Ropeney> Why so late in year to get it? :(
<AirStar> mac book air is nice?
<theotherstupidgu> AirStar try find Dave Thomas metaprogramming videos
<Radar> Ropeney: Because publishers.
<Atomicalloy> Does Rails 4 in Action require previous Rails experience?
<AirStar> i have mac book air 11 inch.
<Radar> Atomicalloy: no
<sevenseacat> no.
<Atomicalloy> Ah great :D
<Radar> Atomicalloy: You can follow the bouncing ball and build a complete Rails app
<baweaver> Metaprogramming when you're starting Ruby is a recipe for disaster you know.
<Radar> ^
<Atomicalloy> Radar, Will get it :)
lxsameer has quit [Ping timeout: 248 seconds]
<Radar> Atomicalloy: thank you
<Atomicalloy> AirStar, You know what's 11 inches?
workmad3 has quit [Ping timeout: 264 seconds]
PhantomSpank has joined #ruby
<AirStar> Atomicalloy: screen size
<baweaver> AirStar: Ignore him on that, it's a crude joke.
<sevenseacat> lol
* theotherstupidgu thinkin 11' is screen diagonal
<baweaver> (really, metaprogramming ruby in general is a recipe for pain)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Ropeney> Radar: Does it go into rails best practice security?
DavidDudson has quit [Read error: Connection reset by peer]
muntazz has quit [Ping timeout: 250 seconds]
<Radar> Ropeney: !security
<helpa> Ropeney: Ruby on Rails Security Guide - http://guides.rubyonrails.org/security.html - Written by Heiko Webers
iotouch has joined #ruby
SouL_|_ has joined #ruby
<theotherstupidgu> baweaver there is a saying if a lanauge doesn't alter the way you think, then its not worth learning
haxrbyte has joined #ruby
DavidDudson has joined #ruby
<baweaver> Not that you shouldn't, but think what happens when you run around firing a grenade launcher
<Ropeney> yeah but i like books :P
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
muntazz has joined #ruby
<baweaver> same with monkey patching
<baweaver> in moderation and under strict control
<theotherstupidgu> agree
<baweaver> take method_missing, which is substantially slower than a straight call or send method
<baweaver> it's more of be careful about it
<theotherstupidgu> >> 10_000
<ruboto> theotherstupidgu # => 10000 (https://eval.in/321531)
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<baweaver> and I'd say most of Ruby's strength is in the Enumerable area.
DavidDudson has quit [Max SendQ exceeded]
krz has quit [Ping timeout: 256 seconds]
<baweaver> You learn Enumerable well and it enables a whole swath of things.
DavidDudson has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
edwinvdgraaf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Hounddog has joined #ruby
<AirStar> i can do python, i need to learn ruby, or not? i don’t decide it?
amclain has quit [Quit: Leaving]
<Ropeney> ew python
<baweaver> Both are fine, and both are very similar languages.
<baweaver> Focus on learning one first though.
<theotherstupidgu> AirStar python got its merits and loved by many smart academic and industry ppl
<baweaver> Python is very strict in that there's one correct way to do things
<theotherstupidgu> i freakin hate it *python
<baweaver> Ruby has many ways to do one thing and chooses to embrace readability and programmer happiness.
<tobiasvl> AirStar: you have to decide yourself. why do you want to learn ruby?
crdpink has joined #ruby
<baweaver> Python isn't that bad.
<Ropeney> that forced indentation though
<theotherstupidgu> its good for git
<tobiasvl> python is a fine language, I use it at work myself
<AirStar> i want study metasploit. tobiasvl
<AirStar> so i learn ruby.
thatslifeson has joined #ruby
<Atomicalloy> hackz0R I see
<theotherstupidgu> metasploit is written in ruby in C style
<baweaver> fair warning, you're not going to be able to use it well for a long time.
<baweaver> but you'll figure that one out eventually
<baweaver> anyways
<baweaver> bed for me
<baweaver> 'night
ezra has joined #ruby
<theotherstupidgu> 'night MAAAAATE
antgel has joined #ruby
<AirStar> nite mare?
<Atomicalloy> n mte
<tobiasvl> going to sleep at 9.37 AM! crazy
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<certainty> :)
ezra is now known as Guest18774
<baweaver> 12:40 AM, Bay Area time.
<theotherstupidgu> AirStar get yourself kali or blackarch and learn C :) cheers
<Ropeney> metasploit on mac? gl
<Ropeney> if you cant install ruby...
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
hanmac has joined #ruby
psmolen has quit [Ping timeout: 265 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
colorados2 has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
narcan has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
livathinos has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
colorados2 has joined #ruby
dvlwrk has quit [Ping timeout: 265 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
sandstrom has joined #ruby
banister has joined #ruby
psmolen has joined #ruby
jakolehm_ has joined #ruby
iotouch has joined #ruby
havenwood has quit []
moeabdol has joined #ruby
piotrj has quit [Remote host closed the connection]
scripore has joined #ruby
jakolehm has quit [Ping timeout: 240 seconds]
haxrbyte has quit [Remote host closed the connection]
dvlwrk has joined #ruby
nii236 has joined #ruby
<hanmac> apeiros: what is your opinion, should the following show a warning or exception?
<hanmac> >> case ; when 2.even? then :even; when 2.odd? then :odd; end
<ruboto> hanmac # => :even (https://eval.in/321532)
fgo has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
<apeiros> hanmac: I think warnings are useless
<adaedra> O_o
DavidDudson has joined #ruby
<apeiros> not sure why the above expression should show either.
<adaedra> why just not 2.even? ? :even : :odd
<hanmac> apeiros: yeah like "Dont open this Door" or "Dont press this button"
<apeiros> makes hanmacs open the door and push the button… :)
ta has joined #ruby
<hanmac> adaedra: my sample is about that the "case <>" doent have a value it chould case for, but it does work in ruby
haxrbyte has joined #ruby
marr has joined #ruby
DavidDudson has quit [Max SendQ exceeded]
<adaedra> ah
<hanmac> imo its more a bug than a feature ...
DavidDudson has joined #ruby
<theotherstupidgu> hanmac i see you predicament, thats why testing is all about
doodlehaus has joined #ruby
DavidDudson has quit [Read error: Connection reset by peer]
<theotherstupidgu> red-green-refactor
<hanmac> i mean yeah it does work but imo its very bad style ... (its because someone does try to avoid if /then end structure and does force it to case when ... )
iotouch has quit [Quit: This computer has gone to sleep]
<theotherstupidgu> sorry, that didnt pass through well, could you plz explain
piotrj has joined #ruby
iotouch has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hanmac> theotherstupidgu: "if <exp1>; <code1>; elsif <exp2>; <code2>; end" can be written in "case <>; when <exp1>; <code1>; when <exp2>; <code2>; end" ... see the missing part in case
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Ping timeout: 248 seconds]
<theotherstupidgu> wht missing part?
<theotherstupidgu> 2 experissions and 2 codeblocks in both if and case
nfk has joined #ruby
* theotherstupidgu i see rainbows outside my window
scripore has quit [Quit: This computer has gone to sleep]
arta82 has joined #ruby
piotrj has quit [Remote host closed the connection]
<Ropeney> going to hunt for the gold chest?
<flughafen> ahoyahoy!
scripore has joined #ruby
<hanmac> theotherstupidgu: normaly if you do case ; when you have an value or an expression in it that does return the value you want to case for right?
* theotherstupidgu singing under the rain https://www.youtube.com/watch?v=rmCpOKtN8ME
<theotherstupidgu> hanmac i am sure there is else in case
fella6s has joined #ruby
<theotherstupidgu> a final else
DavidDudson has joined #ruby
<hanmac> theotherstupidgu: its not about the else ... its about that you can leave out the value in case to have an empty one like "case;"
Guest10578 has quit []
<theotherstupidgu> gist?
granthatcher has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
fella5s has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby
<hanmac> theotherstupidgu:
<hanmac> >> case; when true; end
<ruboto> hanmac # => nil (https://eval.in/321536)
iotouch has quit [Ping timeout: 272 seconds]
sent1nel has joined #ruby
haxrbyte has quit [Remote host closed the connection]
vin-ivar has left #ruby ["WeeChat 1.1.1"]
<theotherstupidgu> join #ruby-core
<theotherstupidgu> hanmac i see your point, maybe ruby-core would be good to discuss this
terlar has joined #ruby
haxrbyte has joined #ruby
ghr has joined #ruby
<hanmac> are you sure? they are still stuck in the 1.9.1 checking out the channel header ;P
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
haxrbyte_ has joined #ruby
<AirStar> what editor is good for ruby?
<tobiasvl> vim
<AirStar> another?
<sevenseacat> lol
<theotherstupidgu> hanmac try bothering tenderlove =)
joonty has joined #ruby
<AirStar> how about eclipse?
<sevenseacat> AirStar: no.
<theotherstupidgu> eclipse is the best, if u work for nasa
sent1nel has quit [Ping timeout: 240 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
* flughafen throws a ball of yarn at sevenseacat
kaleido has quit [Ping timeout: 272 seconds]
<AirStar> then i just use vim?
<tobiasvl> use whatever you want?
<abyss> AirStar: any of which make you feel good
iotouch has joined #ruby
<tobiasvl> you said you knew python, what editor do you use for that?
<adaedra> AirStar: if it edits file and has syntax color for vim, you can use it
edwinvdgraaf has quit [Remote host closed the connection]
<AirStar> tobiasvl: i use eclipse for python.
<tobiasvl> oh. ok
edwinvdgraaf has joined #ruby
<adaedra> If you want an heavy IDE for Ruby (people will argue then if it's necessary), look at RubyMine/IntelliJ
<AirStar> PyDev
DavidDudson has joined #ruby
haxrbyte has quit [Ping timeout: 272 seconds]
kaleido has joined #ruby
SouL_|_ has quit [Ping timeout: 265 seconds]
<Ropeney> Rubymine has 30 day trial to test out, some guys at work swear by it
<adaedra> It's free for students
dvlwrk has quit [Ping timeout: 265 seconds]
<Ropeney> ^
jenrzzz has joined #ruby
<hanmac> i fucking hate IntelliJ because they cant get there language plugins right ... i mean i got an ultimate version but does it support different languages? no it doesnt!
Zai00 has joined #ruby
<adaedra> It does, install the official plugins from the repository, hanmac
<adaedra> My IntelliJ supports Ruby, PHP and JavaScript
<Ropeney> nothing worse then it auto completing on a enter what it wasn't meant to!
A205B064 has quit [Ping timeout: 264 seconds]
<hanmac> adaedra: nope it doesnt newest IntelliJ/IDEA doesnt support C++ from the offical repository since MONTHS!!! .... i think they do it to sell there new extra C++ IDE ...
<adaedra> There's no C++ plugin, yes
<adaedra> CLion is still in development, wait and see
<hanmac> there was, but it doest work with newest IDEA anymore
<adaedra> ah.
<adaedra> Maybe it will get updated then
<hanmac> that was we are all waiting ... it didnt happen in months
blackmesa has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
iotouch has quit [Quit: This computer has gone to sleep]
<adaedra> meh
chthon has joined #ruby
Tuxified has joined #ruby
muntazz has left #ruby [#ruby]
RegulationD has joined #ruby
SouL_|_ has joined #ruby
iotouch has joined #ruby
yosafbridge` has quit [Ping timeout: 265 seconds]
moeabdol has joined #ruby
<theotherstupidgu> adaedra intellsense for ruby??
<adaedra> mmmh?
kedare has quit [Remote host closed the connection]
<theotherstupidgu> in RubyMine or similar , is there intellisense for ruby?
<adaedra> There's autocompletion, yes
<hanmac> there is no sense for Ruby ;P
asmodlol has joined #ruby
universa1 is now known as universal
universal is now known as universa1
MyMind has quit [Read error: Connection reset by peer]
bousquet has joined #ruby
kblake has joined #ruby
moeabdol has quit [Client Quit]
MyMind has joined #ruby
c0m0 has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
roolo has joined #ruby
asmodlol has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 244 seconds]
kblake has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
asmodlol has joined #ruby
KnownSyntax has joined #ruby
Igorshp has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
jottr_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
iotouch has joined #ruby
SOLDIERz has joined #ruby
msgodf has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
yosafbridge has joined #ruby
<adaedra> FYI, Microsoft's new tool (code) has (at least) basic support for Ruby
DavidDudson has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
kedare has joined #ruby
DavidDudson has quit [Max SendQ exceeded]
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
jakolehm has joined #ruby
DavidDudson has joined #ruby
DavidDudson has quit [Client Quit]
fgo has quit [Ping timeout: 256 seconds]
terlar has quit [Ping timeout: 256 seconds]
nii236 has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
<hanmac> adaedra: i read that it does have problems to run on linux ... some user says it does crash while trying to build the crash log ;P
<adaedra> oops.
jakolehm_ has quit [Ping timeout: 265 seconds]
<hanmac> also i read that it automaticly should send everything to microsoft when it does crash without asking ... imo also not so nice turn
equinox_ has joined #ruby
joonty has quit [Quit: joonty]
mengu has quit [Remote host closed the connection]
joonty has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
platzhirsch has joined #ruby
chipotles has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
workmad3 has joined #ruby
<adaedra> ok, ruby support may be a bug, not a feature :>
iotouch has quit [Ping timeout: 264 seconds]
piotrj has quit [Remote host closed the connection]
<adaedra> it's not on their documentation: https://code.visualstudio.com/Docs/languages
einarj has joined #ruby
iotouch has joined #ruby
terlar has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
<hanmac> adaedra: are you sure it does dect it as ruby? maybe it thinks its javascript? ;P
<adaedra> it highlights module, class, string interpolation, symbols, do/end, renquire
<adaedra> require*
<adaedra> And clearly states "Ruby" in the language selector
jenrzzz has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
roolo_ has joined #ruby
gaganjyot has joined #ruby
fluter has joined #ruby
sent1nel has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<AirStar> it is very hard day.
<AirStar> :x
<adaedra> ?
roolo has quit [Ping timeout: 252 seconds]
Cust0sL1men has joined #ruby
<Atomicalloy> AirStar, hahah, we already discussed your issues in ##c. Don't start here
terlar has quit [Read error: Connection reset by peer]
krz has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<AirStar> shadow chaser Atomicalloy
last_staff has quit [Quit: last_staff]
<Atomicalloy> wut?
leafybasil has quit [Remote host closed the connection]
sent1nel has quit [Ping timeout: 255 seconds]
<fluter> AirStar: indeed, don't give up too easy
<AirStar> oh my god
<AirStar> many shadow chasers
AlphaAtom has joined #ruby
sent1nel has joined #ruby
quimrstorres has joined #ruby
jakolehm_ has joined #ruby
<AirStar> d:)
AirStar has left #ruby [#ruby]
lkba has joined #ruby
krz has quit [Ping timeout: 264 seconds]
<apeiros> do I even want to know what's going on?
* theotherstupidgu cooking meth and disposing dead bodies #breakingbad
lidenskap has quit [Remote host closed the connection]
seal has joined #ruby
<emilkarl> Is it bad practice to write to use Minitest::Unit Spec and use describe/it togehter with assert_includes instead of must_include? How do people use it?
bousquet has quit []
jakolehm has quit [Ping timeout: 265 seconds]
lxsameer_ has joined #ruby
<emilkarl> minitest/spec *
ramfjord has quit [Ping timeout: 265 seconds]
sent1nel has quit [Ping timeout: 244 seconds]
astrobunny has quit [Remote host closed the connection]
<theotherstupidgu> why would u want to do that?
dopie has quit [Quit: This computer has gone to sleep]
thatslifeson has joined #ruby
seal has quit [Client Quit]
<emilkarl> i dunno, but I see it in a project here
<emilkarl> i just wonder if I should change it up to spec-like tests
<theotherstupidgu> i don't think it reads well
<theotherstupidgu> stick with a style
<theotherstupidgu> personally i like specs
sameerynho has quit [Ping timeout: 248 seconds]
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<emilkarl> but its not much of a difference, just be consequent with how u use it. if combined styles, then combine everywhere…but you would go with the second option here? http://pastie.org/10121792
thatslifeson has quit [Ping timeout: 256 seconds]
<toretore> use the first
<emilkarl> toretore: ok, why?
<toretore> because it's better
<emilkarl> ok, even tho it combines spec and unit styles?
<toretore> the `it`? who cares
<toretore> it's just some sugar for defining a method
<toretore> anyway, it doesn't matter as long as it works and does the job
<emilkarl> yep
<emilkarl> ok
<toretore> i would forego the whole spec thing, but that's me
dumdedum_ has joined #ruby
charliesome has quit [Quit: zzz]
blackmesa has quit [Ping timeout: 276 seconds]
doritostains has quit [Ping timeout: 265 seconds]
leafybasil has joined #ruby
terlar has joined #ruby
chipotles has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
tomphp has quit [Ping timeout: 255 seconds]
krz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
zotherstupidguy has joined #ruby
nii236 has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has joined #ruby
krz has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
jerematic has quit [Ping timeout: 255 seconds]
zz_Outlastsheep is now known as Outlastsheep
Ropeney has quit [Quit: Leaving...]
scripore has joined #ruby
SOLDIERz has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
rodfersou has joined #ruby
tomphp has joined #ruby
<shevy> you are so lazy
tomphp is now known as Guest30019
sandstrom has quit [Quit: My computer has gone to sleep.]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
SouL_|_ has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
doodlehaus has joined #ruby
jeromelanteri has joined #ruby
reinaldob has quit [Remote host closed the connection]
charliesome has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
gaganjyot has quit [Quit: Leaving]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
reinaldob has joined #ruby
jottr_ has joined #ruby
<shevy> can pure rack be used for much?
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<adaedra> yes
<zotherstupidguy> shevy new rack or current rack?
mooe has quit [Quit: Connection closed for inactivity]
<zotherstupidguy> tenderlove is writing "the metal"
<shevy> zotherstupidguy latest version of rack
reinaldob has joined #ruby
<shevy> I don't know what is the metal
<shevy> what I am reading like normally is "this webframework is using rack"
doodlehaus has quit [Ping timeout: 256 seconds]
reinaldob has quit [Remote host closed the connection]
wolflee has quit [Ping timeout: 245 seconds]
<zotherstupidguy> the idea is to rewrite rack so that it is more of specification than the current middleware container it is
mengu has joined #ruby
edwinvdg_ has joined #ruby
<zotherstupidguy> yeah, you can use rack to build web frameworks
<shevy> hmm
wolflee has joined #ruby
<zotherstupidguy> the best written resource on the net is a translated from chinese book about rack
<shevy> I guess that is also something I haven't quite understood yet
reinaldob has joined #ruby
<shevy> chinese?
reinaldob has quit [Remote host closed the connection]
Flowrhent has joined #ruby
<zotherstupidguy> yeah, its pretty comprehensive
hackeron has quit [Ping timeout: 256 seconds]
<zotherstupidguy> i will try find it online for you
piotrj has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
PhantomSpank has joined #ruby
<zotherstupidguy> but anyway, you can get a flavor of what you can do with rack by checking out somthing like almost-sinatra on github
PhantomSpank has quit [Read error: Connection reset by peer]
<zotherstupidguy> almost-sinatra is a six-line webframework written on top of rack, so thats awesome
<jhass> you totally can use rack directly
gagrio_ has joined #ruby
hackeron has joined #ruby
PhantomSpank has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
<jhass> makes sense for minimal stuff like just issuing a redirect or something
<zotherstupidguy> jhass true, but a dsl is nice! beside he would use a templating language =)
<zotherstupidguy> jhass ofcourse it depends on the usecase
reinaldob has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 248 seconds]
PhantomSpank has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
zotherstupidguy has quit [Quit: leaving]
piotrj has joined #ruby
reinaldob has joined #ruby
zotherstupidguy has joined #ruby
<toretore> rack *is* a specification
<jhass> well, there are two things we call rack
reinaldob has quit [Remote host closed the connection]
<jhass> the specification and the gem
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
krz has joined #ruby
reinaldob has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
yfeldblum has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
ixti has joined #ruby
sdothum has quit [Client Quit]
reinaldob has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
reinaldob has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
<Atomicalloy> jhass, A quick question. In Ruby, we iterate by using the absolute value signs? words.each do |x| ?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
yfeldblum has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<tobiasvl> Atomicalloy: they're not "absolute value signs", they're just pipes. and yes, they're used to pass a parameter to a block
PhantomSpank has joined #ruby
reinaldob has joined #ruby
<tobiasvl> really we iterate by passing the block to the iterator (each)
<tobiasvl> the block is everything inside do...end (or {...})
<shevy> zotherstupidguy ok
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> zotherstupidguy wat
<shevy> 232 pages
PhantomSpank has joined #ruby
<shevy> chinese pdf
reinaldob has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> ok it is in english
PhantomSpank has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<Atomicalloy> tobiasvl, That's all there is to it?
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
<tobiasvl> well yes, if you understand blocks then there's no hocus pocus
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
bruno- has joined #ruby
<Atomicalloy> tobiasvl, <-- C & C++ coder. Ruby seems so easy or is this just an illusion? "The hard stuff will crush me suddenly later?"
PhantomSpank has quit [Read error: Connection reset by peer]
<Atomicalloy> I mean it's logically easy.
maasha has joined #ruby
PhantomSpank has joined #ruby
thatslifeson has joined #ruby
<tobiasvl> hehe. yep, ruby isn't so hard. a ruby block isn't the same as a C/C++ block though, so beware of the gotchas
<apeiros> Atomicalloy: it is easy. designing large systems well is still hard, though.
<toretore> apeiros +1
<toretore> learning a programming language isn't difficult, but designing a system is
* apeiros says that while changing a design which worked well…
PhantomSpank has quit [Read error: Connection reset by peer]
<apeiros> why am I changing it again?
<maasha> I have a hanging open3 issue (hangs after printing here1) - what am I doing wrong ?
PhantomSpank has joined #ruby
<toretore> yeah, why apeiros?
<apeiros> toretore: I think I thought I could do it better with 10y more of experience.
<Atomicalloy> apeiros, What's hard about that?
<zotherstupidguy> apeiros who needs large systems when you can make distrubted small ones, thats key
ismaelga has joined #ruby
<apeiros> zotherstupidguy: many small systems form together a large system
<apeiros> zotherstupidguy: not much different from many small classes together forming a large system
terlar has quit [Ping timeout: 250 seconds]
<apeiros> only communication pathways are slightly different
sdothum has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
<Atomicalloy> Define "large systems"
<jhass> maasha: hard to tell, my guess would be that the process you call never closes its stdout
RegulationD has joined #ruby
PhantomSpank has joined #ruby
<apeiros> Atomicalloy: your experience * number of lines of code * number of use cases
* zotherstupidguy thinkin large system == java or big slow to develop code
Rickmasta has joined #ruby
<apeiros> that formula can probably be improved :D
PhantomSpank has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 256 seconds]
<toretore> large system doesn't have anything to do with language
PhantomSpank has joined #ruby
<toretore> large is large
<apeiros> but to rephrase it: large depends a lot on you/the team and the tools
<maasha> jhass: it works on some datasets, but not all. It will probably work if I used a system call and temporary files, but I would like to use open3.
<Atomicalloy> apeiros, I have years of experience in programming, but new in Ruby. I said it before here in #ruby, I made various programs such as an NES emulator which requires times :)
<jhass> apeiros: it's fine, just never define which outcomes count as large
<Atomicalloy> But my main goal is web development, so I'm learning Ruby to move on with Rails.
<toretore> maasha: obviously your stdout.read isn't reading, so it just sits there
bruno- has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
* zotherstupidguy thinking a large system is a system that you fear, fear to change and further improve, so thats relativly large for you
<maasha> toretore: yes, something is hanging.
<jhass> maasha: ^ so for those datasets the process you call never finishes
PhantomSpank has joined #ruby
lidenskap has joined #ruby
<hanmac> Atomicalloy: imo ruby is more awesome than only using it for web development ;P
<apeiros> maasha: IME some processes require your write to be closed before they start to emit data
wookiehangover has quit [Ping timeout: 256 seconds]
<toretore> you can make the case that ruby isn't a good fit for large systems too
<Atomicalloy> hanmac, Yea but I wanted to move away from desktop development and start with the web :p
tvw has joined #ruby
<apeiros> ah, seems you actually do close that
SouL_|_ has joined #ruby
<maasha> apeiros: hm. so drop open3 and use system() and temporary files?
<zotherstupidguy> Atomicalloy I am trying to use gamebox nowadays to write a 2d game =)
<zotherstupidguy> ruby in games!
<toretore> Atomicalloy: web development easily transforms in to "large system development"
<Atomicalloy> toretore, Sure it does.
<zotherstupidguy> toretore Atomicalloy rails sucks!
RegulationD has quit [Ping timeout: 244 seconds]
<toretore> maasha: figure out what makes the input process not output the data
PhantomSpank has quit [Read error: Connection reset by peer]
<Atomicalloy> zotherstupidguy, lol
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<toretore> rails works well as long as you stay within its boundaries
<toretore> but when you need to go outside it gets in your way a lot of the time
PhantomSpank has joined #ruby
<zotherstupidguy> Atomicalloy if you like breaking bad, you can try my 2d game =)
NinjaOps has joined #ruby
<apeiros> that's what you get with a *frame*work. you get a frame. with most frameworks it's painful to walk out of that frame.
PhantomSpank has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 250 seconds]
<toretore> indeed
<Atomicalloy> toretore, Why would you go outside?
PhantomSpank has joined #ruby
<Atomicalloy> zotherstupidguy, Made in ruby?
lidenskap has quit [Ping timeout: 256 seconds]
lordkryss has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<toretore> Atomicalloy: because it doesn't solve every imaginable problem
<zotherstupidguy> yup, just a sec, i will make a screenshot =)
wald0 has joined #ruby
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<Atomicalloy> toretore, If we start thinking like that, then all frameworks and libraries suck.
<Atomicalloy> Also all programming languages.
<toretore> that's also why frameworks always keep growing, to include a solution to every problem imaginable
PhantomSpank has joined #ruby
<toretore> no, with a programming language you can solve most problems, and libraries are just there to help you with specific problems
<Atomicalloy> toretore, *most* problems, not all problems.
<toretore> frameworks define boundaries that you can't easily step outside
<jhass> Atomicalloy: no, then you suck for applying the wrong tool to the problem
<Atomicalloy> jhass, then you suck for applying the wrong framework :)
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> yes, that's what I said
PhantomSpank has joined #ruby
<toretore> Atomicalloy: there is no such thing as a "right" framework
yeticry has quit [Ping timeout: 244 seconds]
<Atomicalloy> jhass, And I said that if you think like that, then everything sucks. Which means, you can't use one thing for everything.
<jhass> I don't follow how you make that connection
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<jhass> we're saying you shouldn't use one thing for everything
<Atomicalloy> jhass, He said a framework does not solve every problem.
<Atomicalloy> And I said
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> and if you do, you're to blame, not the thing you're using
<Atomicalloy> There is nothing that solves every problem.
<Atomicalloy> What?
<Atomicalloy> That's what I said,
<Atomicalloy> <toretore> Atomicalloy: because it doesn't solve every imaginable problem
<Atomicalloy> Continue from there.
PhantomSpank has joined #ruby
Rahul_Roy_ has joined #ruby
yeticry has joined #ruby
<jhass> nah, we wasted enough time with each other
<Atomicalloy> Anyway, what are you saying? I should not be using Rails for web development?
<Atomicalloy> toretore, ^
<toretore> i donn't care
<apeiros> I don't think that's what they said
<toretore> this is a useless conversation
<shevy> why are you talking
grzywacz has joined #ruby
<zotherstupidguy> Atomicalloy it actually shots rubies but i couldn't capture it on screenshot =) https://raw.githubusercontent.com/zotherstupidguy/omg_aliens/master/screenshot.png
grzywacz has quit [Changing host]
grzywacz has joined #ruby
<jhass> yeah, we're back at that they claim that web development is a specific use case that a single $thing could solve completely
<shevy> MegaWeb 2.0
<shevy> that's gonna be my new app
<shevy> it is THE INTERNET distilled into one $thing
<Atomicalloy> jhass, Referring to the statement that was made, "Rails sucks".
wookiehangover has joined #ruby
<shevy> who said so
<Atomicalloy> shevy, Scroll the fk up or don't talk.
<shevy> nobody said so
<shevy> go away Atomicalloy
<Atomicalloy> shevy, You're an idiot.
<jhass> Atomicalloy: no swearing directed at persons, see channel rules
<Atomicalloy> <zotherstupidguy> toretore Atomicalloy rails sucks!
<shevy> oh now the insults
<jhass> Atomicalloy: last warning
* zotherstupidguy thinkin shevy is my friend, i should be a standup guy ^^
<shevy> zotherstupidguy I think he does not like you :(
mtakkman has joined #ruby
<Atomicalloy> As I said, referring to the statement that was made.
<Atomicalloy> What's so hard to understand.
<zotherstupidguy> jhass sorry,
Rahul_Roy_ is now known as Rahul_Roy
<jhass> zotherstupidguy: you did nothing wrong ;)
<shevy> zotherstupidguy what are those aliens there? a game?
qwertme has joined #ruby
<zotherstupidguy> shevy yeah
<shevy> is that matz on top of it
Guest30019 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> its omg_aliens, the great great gamebox game =)
<shevy> ah now I remember
<zotherstupidguy> yeah thats matz :D
<zotherstupidguy> hehehhe
<shevy> I forgot you were the guy from #gamebox for a moment
tomphp_ has joined #ruby
<zotherstupidguy> #gamebox rules
<zotherstupidguy> =)
<shevy> then you actually wrote more game-code than I did
<zotherstupidguy> "we want you"
<apeiros> Atomicalloy: for every framework X you will find N people who say "X sucks"
<apeiros> personally I stopped caring about such blanket statements
<apeiros> rails is fine for its intended purpose.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Atomicalloy> apeiros, Sure, I wanted to know what he meant. But then there was this guy acted like a kid :)
<shevy> I still have to rewrite my old game... I wanted to redo it from scratch, with systematic tests, and different GUIs. gamebox would be one
<toretore> rails ruined my life :(
<apeiros> Atomicalloy: I didn't see anybody act like a kid
mathie has quit [Quit: Quitting...]
<zotherstupidguy> outlastsheep come back again =)
<Outlastsheep> zotherstupidguy: I was kinda curious on what that channel was :D
<apeiros> Atomicalloy: anyway, since zotherstupidguy said that - I'd suggest you ask them, not the channel :-p
mathie has joined #ruby
reinaldob has joined #ruby
<Outlastsheep> I might get into game design again some other day,.
spider-mario has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf_> >> "shevy rules! " * 3
<ruboto> gregf_ # => "shevy rules! shevy rules! shevy rules! " (https://eval.in/321598)
reinaldob has quit [Remote host closed the connection]
<gregf_> Atomicalloy: ^^
reinaldob has joined #ruby
<Atomicalloy> apeiros, Yea he kept saying "No he didn't say that" :)
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy> outlastsheep you heard of 0space?
<Outlastsheep> Nope, what is it?
<zotherstupidguy> well its a popular pc game
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jokester has quit [Quit: ghost replaced]
jokester has joined #ruby
Alina-malina has joined #ruby
<zotherstupidguy> there is a ruby version of it on github, also done in gamebox, its called killbox
allcentury has joined #ruby
Zenon has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy> https://github.com/shawn42/killbox imo its a GREAT demo of a ruby game, but it not 100% compelete yet
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 276 seconds]
tomphp_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<zotherstupidguy> it was inspired by the movie Ender's Game
Zai00 has quit [Quit: Zai00]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
DaniG2k has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
gizmore has joined #ruby
reinaldob has joined #ruby
tomphp_ has quit [Client Quit]
reinaldob has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
wolflee has quit [Read error: Connection reset by peer]
wolflee has joined #ruby
SOLDIERz has joined #ruby
chipotle has joined #ruby
vikaton has joined #ruby
SOLDIERz has quit [Client Quit]
tomphp has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
roolo_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
OnBrokenWings has joined #ruby
terlar has joined #ruby
DaniG2k has quit [Quit: leaving]
fgo has joined #ruby
OnBrokenWings has quit [Read error: Connection reset by peer]
arta82 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PhantomSpank has quit [Read error: Connection reset by peer]
Inoperable has quit [Quit: ZNC - http://znc.in]
philip1 has joined #ruby
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
sameerynho has joined #ruby
gccostabr has joined #ruby
terlar has quit [Read error: Connection reset by peer]
quimrstorres has quit [Read error: Connection reset by peer]
lxsameer_ has quit [Ping timeout: 264 seconds]
terlar has joined #ruby
quimrstorres has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
Akagi20__ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
<toretore> damnit rusty
escapement has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
wald0 has quit [Quit: Lost terminal]
gaganjyot has joined #ruby
philip1 has quit [Ping timeout: 256 seconds]
lxsameer_ has joined #ruby
Zenon has quit [Quit: bb]
nub is now known as callumacrae
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
jimms has joined #ruby
tomphp has joined #ruby
krz has quit [Ping timeout: 250 seconds]
sameerynho has quit [Ping timeout: 244 seconds]
ismaelga has quit [Remote host closed the connection]
iu1nguoi has joined #ruby
AirStar has joined #ruby
<AirStar> 8)
<AirStar> shadow chaser gone?
bMalum has quit [Quit: bMalum]
fgo has joined #ruby
Flowrhent has quit [Remote host closed the connection]
iu1nguoi has quit [Client Quit]
haidahaha has joined #ruby
Flowrhent has joined #ruby
jottr_ has joined #ruby
krz has joined #ruby
<apeiros> AirStar: what's a shadow chaser?
<AirStar> Some Guy who chase me.
<apeiros> o0
jimms has quit [Remote host closed the connection]
rodferso1 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barkerd427 is now known as zz_barkerd427
tomphp has joined #ruby
tomphp has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
rodfersou has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
piotrj has joined #ruby
<mwlang> how do I pass a specific SSL cipher option on a Faraday connection?
<mwlang> for example, SSLv3
Spami_ has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
shevy has joined #ruby
jokester has quit [Quit: recharge]
doodlehaus has joined #ruby
<jhass> isn't SSLv3 dead?
<jhass> anyway, I doubt you can
<jhass> it's adapter specific
<jhass> I stop now
sameerynho has joined #ruby
lxsameer_ has quit [Ping timeout: 256 seconds]
<jhass> so, look up how to do it for your adapter and verify that the value then use actually means what you think it does
<jhass> or just keep the usually sane defaults
<jhass> (which is to not use SSLv3 anymore these days)
Rapier- has quit [Quit: (null)]
escapement has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> jhass: thanks for that…unfortunately, I don’t have much choice here.
<jhass> mwlang: google for "poodle"
allcentury has quit [Ping timeout: 252 seconds]
<jhass> collect some links and send them out
<mwlang> jhass: ah…poodle — I had forgotten about that little doggie.
terlar has quit [Ping timeout: 250 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
psy_ has joined #ruby
jcromartie has joined #ruby
<mwlang> jhass: let’s just say if it takes > 60 days just to get a firewall rule added, it’s gonna be an uphill battle to getting protocols upgraded.
jcromartie has quit [Max SendQ exceeded]
kedare has quit [Read error: Connection reset by peer]
psy_ has quit [Max SendQ exceeded]
<mwlang> gov’t red tape is no fun. :-o
ldnunes has joined #ruby
psy_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jcromartie has joined #ruby
ismaelga has joined #ruby
terlar has joined #ruby
dumdedum_ has quit [Quit: foo]
nfk|laptop has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
<jhass> you should still try, SSLv3 is essentially a false sense of security these days and those are often worse than no security at all
gaganjyot has quit [Quit: Leaving]
PhantomSpank has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
serivich has joined #ruby
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
SouL_|_ has quit [Ping timeout: 255 seconds]
<zotherstupidguy> jhass why SSLv3 is a false sense of security?
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<workmad3> zotherstupidguy: TL;DR SSLv3 has been cracked wide open
SouL_|_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<zotherstupidguy> workmad jhass thanks
PhantomSpank has joined #ruby
<adaedra> I heard TLS v1.0 is at trouble too
Nimf has joined #ruby
<certainty> cryptocalypse is coming
<certainty> we're all going to die
<jhass> yes, TLS 1.0 is basically SSLv3, so it has similar issues
* certainty runs screaming like crazy
<jhass> TLS 1.1 is okayish but the general SSL/TLS design is worrysome to many people
<mwlang> jhass: thanks for the source references. that quickly led me to finding the “right” option. :version => :SSLv3 did the trick.
haidahaha_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haidahaha has quit []
haidahaha_ is now known as haidahaha
<mwlang> I’m passing on the poodle links, esp. as some of the security alerts are on the gov’t’s own websites. Surely they listen to themselves, right?
SouL_|_ has quit [Ping timeout: 256 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
PhantomSpank has joined #ruby
doodlehaus has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
fluter has quit [Ping timeout: 256 seconds]
haidahaha has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
<certainty> Das also war des Poodles Kern!
oo_ has joined #ruby
<jhass> bah, faust
<certainty> :)
<jhass> had to read that :/
* hanmac does laugh about the german sounding joke
omegahm has joined #ruby
<certainty> jhass: i guess we all had to.
<certainty> that's how they torture poor german students
<certainty> i liked it though
<certainty> in fact i've read it before voluntarily
<hanmac> certainty: try to tell jokes in saxon dialect ... thats funny ;P
<jhass> Faust II too?
<certainty> jhass: well nope that one I didn't like too much. very boring
<certainty> sequels are always bad
<certainty> i liked faust and urfaust
<certainty> hanmac: hehe, i can do that!
Zai00 has joined #ruby
JDiPierro has joined #ruby
SouL_|_ has joined #ruby
michael_mbp has quit [Excess Flood]
PhantomSpank has quit [Read error: Connection reset by peer]
wottam has joined #ruby
PhantomSpank has joined #ruby
haidahaha has joined #ruby
userjs has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 245 seconds]
PhantomSpank has joined #ruby
Akagi201 has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> I did not have to read Faust!
PhantomSpank has joined #ruby
<hanmac> certainty: "Vater, der jäger is, und Sohn sitzen auf einem Hochposten am Waldrand, in der Richtung des Vaters läuft eine Frau dem Weg entlang, aber in der Richtung des Sohnes kommen mehrere Füchse aus dem Wald. und der Junge ruft: "Fixse!" worauf der Vater antwortet: "aber sag es nicht Mama""
<certainty> hanmac: hahah, i knew that one :)
haidahaha has quit [Client Quit]
michael_mbp has joined #ruby
<certainty> shevy: you're from austria, no?
<shevy> yeah
<certainty> so it has something good to it :p
Zai00 has quit [Ping timeout: 256 seconds]
haidahaha has joined #ruby
<hanmac> shevy i hope you get my joke too :p or is saxon to difficult for you? ;P
<shevy> we had to read some strange literature in german classes
doertedev has quit [Quit: Lost terminal]
iotouch has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> one book was about a strange cat (Kater Muck? something like that)
PhantomSpank has joined #ruby
<certainty> i don't know that one
<shevy> and boring theater plays... let me try to remember...
nii236 has quit [Ping timeout: 252 seconds]
<certainty> who names his cat muck anyway
<certainty> cats need majestic names
<certainty> like monolith
<certainty> *scnr*
<shevy> some things from Johann Nestroy
jokester has joined #ruby
oo_ has quit [Remote host closed the connection]
haidahaha_ has joined #ruby
<shevy> it's as if you take the ancient past, and put it into modern days
<shevy> and it is boring... what a surprise
<shevy> they did not have youtube back then
haidahaha has quit [Read error: Connection reset by peer]
haidahaha_ is now known as haidahaha
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> certainty I can't even remember what the cat did but apparently it was a heroic cat
haidahaha has quit [Client Quit]
PhantomSpank has joined #ruby
scripore has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<hanmac> certainty: part of my family are "Förster/Jäger" i was told that joke then i was very little ... i think i was 8 - 10, i think in days like now that joke would been censored from some "extremist" groups like feminists or other "think about the children" fractions ...
<certainty> shevy: the cat didn't evn have a twitter account?
PhantomSpank has joined #ruby
<shevy> certainty no... hmm
<shevy> I read another cat story though, Ginger the red
<shevy> that one made me sad, the cat died against some ferrets or so :(
<certainty> isn't that redundant?
<shevy> haha
<shevy> it was some heroic farm cat that killed mice
<certainty> hanmac: you're possibly true. Did you get it when you were 8 - 10?
mostlybadfly has joined #ruby
<shevy> until those ferrets or pack of marders or whatever it was killed it
Akagi201_ has joined #ruby
<certainty> what's heroic about doing what cats do?
<hanmac> certainty: yeah i think i did
Joffily has joined #ruby
<shevy> hanmac cool, rural guys are simple people!
Joffily has quit [Max SendQ exceeded]
maasha has quit [Quit: Page closed]
doertedev has joined #ruby
<shevy> certainty it died defending the farm!
<hanmac> certainty: apropos ginger: http://pics.nase-bohren.de/color-names.jpg
<certainty> hanmac: i do think about the children and my daughter is 8. I could safely tell that joke and the only response i'd expect would be her loughing in order to try to cover that she didn't understand
<certainty> shevy: it died defending the farm? well that's a totally different thing then
<certainty> shevy: did you read books without cats?
<certainty> hanmac: muhaha
<certainty> true thing
zz_barkerd427 is now known as barkerd427
<shevy> hanmac this one is also quite lolworthy http://pics.nase-bohren.de/please-visit.jpg
mjuszczak has joined #ruby
ismaelga has quit [Remote host closed the connection]
<shevy> certainty yes... nemo the bear cub
thatslifeson has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 240 seconds]
<shevy> that was actually one of the best books of my youth
<shevy> no I am an idiot
<shevy> the name was not nemo of course
<shevy> :(
haidahaha has joined #ruby
<shevy> I think it was neva
<certainty> of course
<certainty> any book without animals?
<shevy> I can not even remember, this is so awful
zotherstupidguy has quit [Ping timeout: 255 seconds]
<shevy> certainty how about dragons?
<certainty> dragons are animals
<shevy> hmmmm
<certainty> noble ones
zotherstupidguy has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
RegulationD has joined #ruby
blokc has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
Rollabunna has joined #ruby
mjuszczak has quit [Client Quit]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
blokc has quit [Client Quit]
doodlehaus has joined #ruby
kblake has joined #ruby
Nimf has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
haidahaha has quit [Quit: haidahaha]
jottr_ has quit [Quit: WeeChat 1.1.1]
but3k4 has joined #ruby
SouL_|_ has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
fgo has quit [Ping timeout: 264 seconds]
Joffily has joined #ruby
bMalum has joined #ruby
tomphp has joined #ruby
userjs has quit [Quit: Page closed]
scripore has quit [Quit: This computer has gone to sleep]
mjuszczak has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
wookiehangover has quit [Ping timeout: 265 seconds]
edwinvdg_ has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 256 seconds]
edwinvdgraaf has joined #ruby
kblake has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
nfk|laptop has quit [Client Quit]
jakolehm_ has quit []
jcromartie has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
gazay has quit [Quit: gazay]
devyn has quit [Ping timeout: 255 seconds]
elaptics_away is now known as elaptics
nfk|laptop has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
wookiehangover has joined #ruby
thatslifeson has joined #ruby
zotherstupidguy has quit [Ping timeout: 248 seconds]
qwertme has joined #ruby
iotouch has quit [Ping timeout: 265 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
zotherstupidguy has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
FaresKAlaboud has quit [Quit: Quit~]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
devyn has joined #ruby
FaresKAlaboud has joined #ruby
thatslifeson has quit [Remote host closed the connection]
cibs has quit [Quit: leaving]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
iotouch has joined #ruby
loadhigh has quit [Ping timeout: 248 seconds]
rikai has quit [Ping timeout: 252 seconds]
loadhigh has joined #ruby
withnale_ has joined #ruby
lxsameer_ has joined #ruby
bMalum has quit [Quit: bMalum]
lordkryss has quit [Quit: Connection closed for inactivity]
avril14th has joined #ruby
baash051 has joined #ruby
lxsameer has joined #ruby
Rahul_Roy has quit [Excess Flood]
Rahul_Roy has joined #ruby
<hanmac> shevy: "this train is closed": https://twitter.com/HVVStoerungen/status/593108565809836032
jottr has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
nfk|laptop has quit [Ping timeout: 256 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gazay has joined #ruby
lxsameer_ has quit [Ping timeout: 252 seconds]
mtakkman has joined #ruby
dstarh has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
chipotles has joined #ruby
sameerynho has joined #ruby
PhantomSpank has joined #ruby
SouL_|_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
bMalum has joined #ruby
chipotles has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
iotouch has quit [Ping timeout: 255 seconds]
ismaelga has quit [Remote host closed the connection]
iotouch has joined #ruby
sevenseacat has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
lxsameer_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 245 seconds]
PhantomSpank has joined #ruby
nfk|laptop has joined #ruby
quimrstorres has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
zotherstupidguy has joined #ruby
chipotles has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
Rapier- has joined #ruby
PhantomSpank has joined #ruby
bmurt has joined #ruby
iotouch has quit [Client Quit]
jerematic has joined #ruby
sankaber has joined #ruby
sameerynho has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
timmow_ is now known as timmow
JDiPierro has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
McRae has joined #ruby
PhantomSpank has joined #ruby
segfalt has joined #ruby
bluOxigen has joined #ruby
WajidKagzi has joined #ruby
lessless has quit [Max SendQ exceeded]
chrisarc1nd is now known as chrisarcand
kedare has joined #ruby
iotouch has joined #ruby
sgambino has joined #ruby
thumpba has joined #ruby
WajidKagzi has quit [Client Quit]
decoponio has joined #ruby
bMalum has quit [Quit: bMalum]
cpt_yossarian is now known as woodruffw
nfk|laptop has quit [Quit: yawn]
woodruffw has quit [Quit: And then he took off.]
PhantomSpank has quit [Read error: Connection reset by peer]
woodruffw has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
PhantomSpank has joined #ruby
thumpba_ has joined #ruby
Guest15 has joined #ruby
bMalum has joined #ruby
griffindy has joined #ruby
thumpba has quit [Ping timeout: 252 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
sent1nel has joined #ruby
livathinos has quit [Ping timeout: 272 seconds]
Mohan_ has joined #ruby
scripore has joined #ruby
baash051 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
dblessing has joined #ruby
edwinvdg_ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dblessing has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
diegoaguilar has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
dblessing has joined #ruby
joe_meade has joined #ruby
mjuszczak has quit []
edwinvdgraaf has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby
gaganjyot has joined #ruby
Flowrhent has quit [Quit: Remote host closed the connection.]
fgo has quit [Ping timeout: 276 seconds]
SOLDIERz has joined #ruby
cassianoleal has joined #ruby
mjuszczak has joined #ruby
cassianoleal has quit [Client Quit]
umgrosscol has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
woodruffw has quit [Ping timeout: 252 seconds]
uri_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<AirStar> how many programming ordinary people use?
<certainty> hmm?
<tobiasvl> how many programming?
<sevenseacat> oh man AirStar is still going
dseitz has joined #ruby
<AirStar> yes. how many programming?
<apeiros> AirStar: that question makes no sense. try rephrasing it?
<AirStar> i don’t know that i will use only one programming or many?
<tobiasvl> what is a programming?
<tobiasvl> programming is a verb
<apeiros> do you mean "programming *languages*"?
<AirStar> yes
<AirStar> programming language
<AirStar> oh
<apeiros> ordinary people? probably zero.
DeBot has quit [Quit: Crystal]
<AirStar> i think that programming is noun.
<AirStar> oh verb
DeBot has joined #ruby
philip1 has joined #ruby
blackmesa has joined #ruby
<shevy> hmm how do I define << method again? def <<(i) that's it right?
<umgrosscol> AirStar: ordinary people aren't usually programmers. Most programmers use two to three languages daily, but that greatly depends on the field their in.
<apeiros> shevy: yes
<shevy> okies
freerobby has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
hiyosi has joined #ruby
<AirStar> i m not programmer. i only use programming language for convenience.
scripore has joined #ruby
<AirStar> umgrosscol:
banister has joined #ruby
moeabdol has joined #ruby
lsmola_ is now known as lsmola
avril14th has quit [Remote host closed the connection]
<umgrosscol> AirStar: I don't know many people that would use something just to inconvenience themselves.
<umgrosscol> AirStar: with the exception of exercise equipment. Exercise is about being deliberately inconvenient to strengthen yourself.
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium> AirStar: Indian? The "i m" thing is kind of an Indian English language tick, trying to figure out if it's a kind of shibboleth.
joast has quit [Quit: Leaving.]
jottr has joined #ruby
<AirStar> I m Great Russian
<AirStar> Nilium:
<Nilium> I have my doubts about whether Russians would refer to themselves that way.
edwinvdg_ has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 250 seconds]
<AirStar> :x
edwinvdgraaf has joined #ruby
joast has joined #ruby
livathinos has joined #ruby
mrmargolis has joined #ruby
jerius has joined #ruby
<AirStar> where are you from? Nilium
<adaedra> From IRC
livathinos has quit [Client Quit]
<Nilium> IRC.
SOLDIERz has joined #ruby
RegulationD has joined #ruby
<AirStar> IRC——>ISC?
<AirStar> oh afraid.
Mohan_ has joined #ruby
<jhass> international republic of cables
gazay has quit [Quit: gazay]
<jhass> IRC
<adaedra> :D
quimrstorres has joined #ruby
workmad3 has joined #ruby
jobewan has joined #ruby
noname has quit [Quit: WeeChat 1.0.1]
riotjones has quit [Remote host closed the connection]
nii236 has joined #ruby
lxsameer_ has quit [Quit: Leaving]
doodlehaus has joined #ruby
fryguy9 has joined #ruby
nettoweb has joined #ruby
gaganjyot has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
cek has joined #ruby
<cek> Hi. Want to alias a class method on a Module. How do I very concise?
horsecowdog has joined #ruby
mjuszczak has quit []
<Nilium> O_o
bMalum has quit [Quit: bMalum]
emilkarl has quit [Quit: emilkarl]
<hanmac> cek: calling alias_method inside a "class << self"
<cek> nope, that's not concise and opens new context
<zotherstupidguy> cek please explain what concise is?
<cek> concise is 10 symbols
<segfalt> lol.
<tobiasvl> what's a context?
<cek> a scope
<segfalt> are you solving code golf?
<tobiasvl> and why is concise 10 symbols? is this ruby golfing?
<zotherstupidguy> he means 'self"
<segfalt> if not, you’re annoying future colleagues.
woodruffw has joined #ruby
thatslifeson has joined #ruby
gaganjyot has joined #ruby
<zotherstupidguy> 10 symbols means what?
Zamyatin has joined #ruby
failshell has joined #ruby
<Nilium> It means an arbitrary number of keywords/numbers/literals that is supposedly concise.
<Nilium> Should spend less time worrying about what concise is and just write code that's obvious in its function.
<wasamasa> A124: congrats
<apeiros> appease the rubocop gods
<segfalt> could just wait for this, cek: https://bugs.ruby-lang.org/issues/9185
<segfalt> i would start holding my breath immediately
<segfalt> ;-)
EagleDelta has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
ismaelga has joined #ruby
segfalt has quit [Quit: segfalt]
[k- has joined #ruby
CloCkWeRX has joined #ruby
<apeiros> class << Module; alias foo bar; end # is actually only 6 symbols and by the given definition "concise"
quimrstorres has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
<apeiros> or well, 7 symbols if you consider class<< to be 2 symbols.
<cek> well segfart was very close
<apeiros> !kick cek insults are not welcome
<helpa> apeiros: No.
cek was kicked from #ruby by ruboto [insults are not welcome]
<tobiasvl> segfart. haha. wtf
<tobiasvl> is it just me or are there more trolls in here nowadays
<jhass> eh, I think that was actually unintentional :D
<apeiros> I doubt that
<apeiros> cek isn't unknown
<umgrosscol> Not sure which keyboards have l and r next to one another.
<apeiros> + ^
<jhass> and yay, another helpa conflict! :(
<umgrosscol> Anyone know why he was trying to write ruby using perl rules?
quimrstorres has joined #ruby
shevy has quit [Ping timeout: 276 seconds]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
paulcsmith has joined #ruby
woodruffw has quit [Quit: And then he took off.]
gfawcettpq has joined #ruby
<umgrosscol> I'm a fan of code like, Dear :backend, take: "foo", combine_with: "bar"
mrmargolis has quit [Read error: Connection reset by peer]
<apeiros> umgrosscol: objc coder? :)
mary5030 has joined #ruby
<apeiros> I think smalltalk has that too? not sure…
mrmargolis has joined #ruby
agarie has joined #ruby
<apeiros> jhass: re helpa - working on it
<umgrosscol> apeiros: Nope. Just enjoy the cutesiness of ruby.
<[k-> could be possible in ruby
kblake has joined #ruby
cek has joined #ruby
kedare has quit [Remote host closed the connection]
<cek> so the correct answer is : klass.instance_exec { alias :new :old }
psy_ has quit [Ping timeout: 256 seconds]
<mwlang> ugh…cap 3 kills me. what the heck is capistrano-passenger gem doing that’s so complicated that it needs sudo to restart?
<[k-> you should use alias_method?
Matachines has joined #ruby
<cek> alias_method wouldn't help in that case
<cek> klass being a Module.
<[k-> oh, then do the class << self thing
<mwlang> isn’t touching the tmp/restart.txt file enough these days to restart passenger?
<cek> [k-: i already provided the correct answer.
<theotherstupidgu> cek gist or it never happened!
Matachines has quit [Client Quit]
<[k-> there is also module_exec
<apeiros> mwlang: afaik yes
<mwlang> otherwise, I have to set passenger_restart_with_sudo to true *and* add password-less sudo for my deploy user….that seems like a security risk.
<apeiros> mwlang: at least that's how I restart it
<cek> I hereby declare that's the only TRUE class method alias that you should use when you wish to be concise and not open a new scope.
<mwlang> apeiros: so how do you do it with cap 3?
<apeiros> cek: but a block opens a new scope
<cek> mwlang: it will restart on next request
rodferso1 has quit [Quit: leaving]
<apeiros> mwlang: I don't use cap, sorry
rodfersou has joined #ruby
<[k-> alias is not good because it affects inheritance pr something
<umgrosscol> mwlang: can't you limit the deploy user's sudo access to a single command in the sudoers file?
<mwlang> umgrosscol: yeah, I just gotta dig out documentation on doing that and do more testing than I intended.
<cek> you can access local vars outside the block, class << won't allow you that.
<[k-> that much is true
<apeiros> cek: so your arbitrary rule wasn't actually "don't open a new scope" but "need access to outside lvars"
edwinvdg_ has quit [Remote host closed the connection]
<vikaton> are you allowed to make syscalls in erb ?
<apeiros> mod.singleton_class.send :alias_method, foo, bar
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matachines has joined #ruby
<apeiros> vikaton: erb itself does not restrict you in any way regarding code running in it
edwinvdgraaf has joined #ruby
<vikaton> oh
Lewix_ has joined #ruby
<vikaton> cuz I'm getting erros only with syscalls
terlar has quit [Quit: WeeChat 1.1.1]
Mezjin has quit [Ping timeout: 248 seconds]
<apeiros> vikaton: then either you have safe_level set in erb, outside erb or something else restricting you
<cek> didn't know singleton_method existed.
terlar has joined #ruby
<cek> i mean _)class. and all the family
shevy has joined #ruby
<umgrosscol> mwlang: I think it's pretty straight forward for a single command you want a user to be able to execute. deployuser ALL = NOPASSWD: /etc/init.d/apache2
mrmargol_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
kedare has joined #ruby
iamjarvo has joined #ruby
lsmola has quit [Quit: Leaving]
edwinvdg_ has joined #ruby
mengu has quit [Remote host closed the connection]
Spami has joined #ruby
havenwood has joined #ruby
mistermocha has joined #ruby
mrmargolis has quit [Ping timeout: 244 seconds]
<vikaton> >> system 'echo hi'
<ruboto> vikaton # => (https://eval.in/321666)
segfalt has joined #ruby
<mwlang> umgrosscol: hmmm…that gives syntax error as does this: “deploy ALL=(ALL)NOPASSWD:passenger-config”
<vikaton> >> exec 'echo hi'
<ruboto> vikaton # => (https://eval.in/321667)
<vikaton> >> `echo hi`
<ruboto> vikaton # => (https://eval.in/321668)
<jhass> vikaton: use your local irb/pry/ruby to experiment, this bot is for demo only
<vikaton> sorry jhass
<jhass> ü
edwinvdgraaf has quit [Ping timeout: 255 seconds]
<jhass> sorry
qwertme has joined #ruby
scpike has joined #ruby
SOLDIERz has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
<[k-> >> %x[echo hi]
<ruboto> [k- # => (https://eval.in/321669)
arturaz has quit [Ping timeout: 250 seconds]
<[k-> probably blocks syscalls
<[k-> ahh yes: Forbidden access to file `/usr/local/bin/echo'
<adaedra> echo's no syscall
<[k-> soz, me no know much
edwinvdg_ has quit [Remote host closed the connection]
CloCkWeRX has quit [Remote host closed the connection]
<adaedra> But yes, the bot is setup to not execute random binaries, and ops are setup to ban people who try to break it
livathinos has joined #ruby
<sevenseacat> hello :)
ItSAN____ has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> hehe ops are set up
<adaedra> hi sevenseacat
gfawcettpq has quit [Ping timeout: 240 seconds]
<umgrosscol> mwlang: Here's what I have for a user that restarts tomcat. myuser ALL =/etc/init.d/tomcat7, /bin/su - tomcat7
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ItSANgo_ has joined #ruby
<umgrosscol> mwlang: that user can also switch to the tomcat7 user in order to muck about with files.
edwinvdgraaf has joined #ruby
<vikaton> apeiros: how can I set the erb safe_level inside the file.erb ?
<apeiros> vikaton: you can't
<vikaton> oh
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> vikaton: also once safe level is restricted, you can't unrestrict it
<apeiros> otherwise it'd be pretty pointless
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: bbl]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<vikaton> App 21371 stderr: [ 2015-04-30 14:19:19.1851 21386/0x007f87eb075538(Worker 1) utils.rb:85 ]: *** Exception Errno::ENOENT in Rack application object (No such file or directory - echo
<vikaton> :S
<vikaton> thats the error im getting now
PhantomSpank has joined #ruby
tkuchiki has joined #ruby
PhantomSpank has quit [Remote host closed the connection]
shellfu_afk is now known as shellfu
nii236 has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
griffindy has joined #ruby
enebo has joined #ruby
Guest15 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Tomasso has joined #ruby
joelataylor has quit [Quit: Be back later ...]
tkuchiki has quit [Remote host closed the connection]
icebourg has joined #ruby
joelataylor has joined #ruby
terlar has joined #ruby
slash_nick has joined #ruby
leafybas_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Tomasso> i have to highlight certain parts of a text, for example when something matches to 7878484848484848484 (19 numbers), replace text by "<a href="#">7878484848484848484</a>" , but the problem is that then the function that highlights runs again, and what happens is "<a href="#">"<a href="#">7878484848484848484</a>"</a>" and so ooon... any way to look at the context where the match occurs?
ndrei has quit [Ping timeout: 255 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
tagrudev has quit [Remote host closed the connection]
<jhass> Tomasso: have a look at lookaround expressions
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
<mwlang> umgrosscol: finally got it .. I wasn’t supplying full path to the passenger-config and that gave me “syntax error” until I did: deploy ALL = (ALL) NOPASSWD: /usr/bin/passenger-config
revoohc has joined #ruby
<jhass> Tomasso: though running text processing functions multiple times over the same text can also hint a design issue
ndrei has joined #ruby
joelataylor has quit [Ping timeout: 256 seconds]
<umgrosscol> Tomasso: You're looking to make your replacement idempotent?
<cek> anyone had experience with 0MQ here?
<jhass> ?anyone cek
<ruboto> cek, Just ask your question, if anyone has, they will respond.
<umgrosscol> Tomasso: expand the pattern to include some of the surrounding characters that you specific should not be present
rmoriz has joined #ruby
<cek> msg send returning OK despite hitting high watermark and subscriber being unreachable
<umgrosscol> Tomasso: So match 19 numbers that are not surrounded with > and <
leafybas_ has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
casadei_ has joined #ruby
edwinvdgraaf has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
<Tomasso> umgrosscol: that could be, but if im iterating over the list of results, I don't know to what > < belongs..
riotjones has joined #ruby
odin22 has joined #ruby
<Tomasso> jhass: i want it to run so when the user types a certain pattern, gets detected
<umgrosscol> Tomasso: okay, expand further.
<xxneolithicxx> it sounds as if your almost doing a half baked search replace that may benefit from using a proper DOM parser first and be replacing all 19 number strings with a new element as long it wasnt already in an anchor
tvw has quit [Remote host closed the connection]
<umgrosscol> Tomasso: make sure it isn't surrounded by <a heref="#"> and </a>
<xxneolithicxx> that would make it idempotent
<jhass> or just don't run it multiple times
<jhass> store unchanged, parse on render
<umgrosscol> jhass: That's a dangerous and inconvenient way to live.
<Tomasso> I will have to detect first the number, and then add the no <> condition, but it should be in the same regex
<umgrosscol> Tomasso: it's all one pattern.
<Tomasso> yesh
<umgrosscol> Tomasso: You're looking for 19 numbers NOT surrounded by the text you're going to insert.
Mohan_ has quit [Ping timeout: 250 seconds]
<xxneolithicxx> s/[^>]?(\d{19})[^<]?/<a>\1</a>/ or something like that
last_staff has joined #ruby
<jhass> use lookaround expressions, as I said initially
sinkensabe has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 256 seconds]
<xxneolithicxx> that forward slash might need escaping
<jhass> but since this looks like some automatic linking, it should run close before rendering, not before storage
leafybasil has joined #ruby
sinkensabe has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest85423
edwinvdgraaf has quit [Remote host closed the connection]
surs has quit [Quit: WeeChat 0.3.7]
<apeiros> *sob*, ruby 2.2, Mutex is still not recursive :(
<apeiros> or reentrant
<havenwood> apeiros: Monitor!
<apeiros> havenwood: Monitor is quite a bit heavier weight, no?
<jhass> apeiros: granted, pthread makes that hard to unusable
<havenwood> apeiros: I don't know under the hood.
horsecowdog has quit [Read error: Connection reset by peer]
<apeiros> hm, but since I don't want to reinvent *that* wheel *too*, I guess I'll just use monitor.
<apeiros> thanks for the hint, havenwood
<jhass> isn't Monitor just a wrapper around Mutex & ConditionVariable?
horsecowdog has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nahtnam has joined #ruby
<apeiros> jhass: pthread makes reentrant mutex hard to unusable?
<jhass> yeah
<apeiros> how come?
baroquebobcat has joined #ruby
MXfive has joined #ruby
<jhass> let me see if I can find it again
<apeiros> oh, if it's TL, then I'll DR
freerobby has quit [Quit: Leaving.]
<apeiros> not that you search for it if it's long :)
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
sinkensabe has quit [Ping timeout: 264 seconds]
last_staff has quit [Quit: last_staff]
aganov has quit [Remote host closed the connection]
<jhass> I think it was in pthread_mutex_lock(3) somewhere
edwinvdgraaf has joined #ruby
<jhass> can't find it, but there were one or two very odd things about it
failshell has quit [Remote host closed the connection]
<apeiros> I guess I'll have to find all Mutex.new in my code and replace it with Monitor
nateberkopec has joined #ruby
<blackjid> hi guys, any rbenv expert here?
allcentury has quit [Ping timeout: 250 seconds]
<adaedra> State your question, and if someone can, he'll answer.
livathinos has quit []
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
failshell has joined #ruby
<umgrosscol> ?anyone blackjid
<ruboto> blackjid, Just ask your question, if anyone has, they will respond.
JDiPierro has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
<jhass> apeiros: ah I remember now, you can't use condition variables (pthread_cond_) in a reentrant mutex (pthrex_mutex_)
<blackjid> i have server with system ruby and rbenv for the user deploy. I want to install a gem at system ruby but with --user-install so it goes to /home/deploy/.gem and that user doesn't need sudo to execute. Then, as deploy user, I want to be able to run RBENV_VERSION=system which <gem> and get /home/deploy/.gem/ruby/2.1.0/bin/<gem> but if I run which <gem> get /home/deploy/.rbenv/shims/<gem>
Tomasso has quit [Quit: Page closed]
ChoiKyuSang has joined #ruby
<apeiros> jhass: concurrency primitives, how I love thee
<blackjid> of course thats in the case that I have done RBENV_VERSION=system gem install <gem> --user-install and gem install <gem> from the deploy user...
<jhass> apeiros: yeah, let's just use a semaphore for everything!
leafybasil has quit [Ping timeout: 256 seconds]
Nimf has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
sankaber has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<havenwood> blackjid: Running these commands from shell directly or shelling out from another Ruby?
SOLDIERz has joined #ruby
<blackjid> running directly from the shell
Kricir has joined #ruby
<zotherstupidguy> apeiros how to read a file starting from the 2nd line till the EOF?
freeze has joined #ruby
quimrstorres has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
<apeiros> zotherstupidguy: no need to ask me specifically. others in the channel know too.
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<apeiros> zotherstupidguy: you can use gets to skip the first line, then .read to read the rest
konsolebox has joined #ruby
<umgrosscol> blackjid: You're going to have to try to manage two different sets of paths doing it like that.
<shevy> he only wants to ask apeiros :(
<apeiros> zotherstupidguy: or you use File.readlines + shift to skip the first line
<zotherstupidguy> i was hoping for somthing like readlines[1...-1]
<shevy> you have an array
<shevy> but you get [0] as well
rbennacer has quit [Read error: Connection reset by peer]
<apeiros> zotherstupidguy: sure. File.readlines returns an array. [1..-1] works on that.
<havenwood> zotherstupidguy: Try it!
<jhass> zotherstupidguy: that'll work, another one is File.readlines.drop(1).each
<zotherstupidguy> jhass i like this one
snockerton has joined #ruby
<umgrosscol> rbenv won't see the gems installed in for you system ruby unless you explicitly add that path to gem_home.
<zotherstupidguy> thank you
<[k-> you could use a ruby script to mv the gems
rbennacer has joined #ruby
quimrstorres has joined #ruby
<[k-> and do a one-click install
<[k-> or rather one-command install
<umgrosscol> blackjid: but then you could have problems with the difference in ruby version.... say the user was doing something with jruby, and you've set the path to use the system nokogiri gem... his apps won't run.
leafybasil has joined #ruby
<toretore> file.each.drop(1)
gaganjyot has quit [Ping timeout: 255 seconds]
<umgrosscol> blackjid: We use rbenv for the system rubies. So the only things available to users are the ruby's the sysadmins install. We just have rake, rails, and bundler installed as system gems for each of those rubies.
<toretore> gives you an enumerator instead of reading the entire file into memory
failshell has quit [Remote host closed the connection]
claw has joined #ruby
<umgrosscol> blackjid: So if the users want to monkey about with installing their own gems for dev, they just do it with bundle install --path=vendor/bundle or some local directory.
failshell has joined #ruby
thatslifeson has joined #ruby
<apeiros> toretore: nope. drop sadly returns an array
<blackjid> umgrosscol what do you mean with using rbenv for system rubies?
<apeiros> >> [1,2,3].each.drop(1).class
<ruboto> apeiros # => Array (https://eval.in/321680)
<toretore> ah youre right
<toretore> that sucks
<apeiros> yupp
glcx has joined #ruby
<umgrosscol> blackjid: I mean that root uses rbenv. So that anyone typing which ruby would get /l/local/rbenv/shims/ruby
<IceDragon> apeiros: what does drop do? (being to lazy to read docs)
rodfersou has quit [Quit: leaving]
<umgrosscol> blackjid: so each user can pick from the installed rubies on the machine, but they can't install their own.
<apeiros> IceDragon: drop(n) returns an array without the first n elements
theotherstupidgu has quit [Remote host closed the connection]
<apeiros> IceDragon: also for future reference - I'm not your docs :-p
<IceDragon> apeiros: so slice(n, length - n)
<IceDragon> >_>;
theotherstupidgu has joined #ruby
<IceDragon> apeiros: YOU WILL FOREVER BE MY DOCS, MUHAHAHAHAHAHA
gccostabr has quit [Quit: See you later!]
<apeiros> we shall see…
<umgrosscol> blackjid: the only not I have about doing that is throw rbenv_profile into root's directory. So when you su - over to root, you can just run . rbenv_profile when you need to work with rbenv... like for installing new ruby versions or adding system gems to a ruby version
<umgrosscol> s/not/note/
<umgrosscol> blackjid: Trying to get rbenv to use gems you installed to a ruby not under rbenv's directory structure sounds painful and error prone.
nobitanobi has joined #ruby
jerematic has quit []
horsecowdog has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
<umgrosscol> blackjid: However, if you're insistent on it, you can set the GEM_HOME or GEM_PATH of your deploy user to point to /home/deployuser/.gems or wherever.
Rollabunna has joined #ruby
joelataylor has joined #ruby
nii236 has joined #ruby
<blackjid> umgrosscol i'm not particulary insistent... what I really need is to have some rubies and gems installed at system level, that can be used by users....
Coraline has left #ruby ["Zoom zoom"]
<umgrosscol> blackjid: We've had good luck using rbenv for that.
<blackjid> umgrosscol my particular case.... I have multiple applications deployed on the server, with different versions of ruby using the .ruby-version file. Also those applications are monitored by the eye gem,which I want to be executed with the system ruby regardless which ruby version is using the application.
<blackjid> umgrosscol I think your approach works for that right?
joelataylor has quit [Ping timeout: 252 seconds]
hewenhong has joined #ruby
hewenhong has quit [Client Quit]
<umgrosscol> You'd have to have your eye gem installed for each version of ruby you're running.
nii236 has quit [Ping timeout: 256 seconds]
vire has quit [Ping timeout: 256 seconds]
<umgrosscol> I'm not familiar with that gem. Is it a part of each application? or is it a wholly separate process?
<[k-> whoa guys: http://codebunk.com/
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blackjid> umgrosscol is not part of the application, just a separate process that monitor PIDs
<blackjid> umgrosscol that's why I want to run it always with the same version of ruby, regardless of the application's .ruby-version
theotherstupidgu has quit [Ping timeout: 255 seconds]
<adaedra> [k-: IDE as a service?
<umgrosscol> blackjid: So it's your process monitor tool? Then yeah, it shouldn't matter.
<adaedra> I've been testing Visual Studio Code since this morning with ruby code, it's rather neat
<[k-> kind of
Tuxified has quit [Ping timeout: 272 seconds]
<[k-> CodeBunk provides a Realtime Collaborative Editor with Compile/Run. CodeBunk also has Peer-to-Peer Video/Audio and Text chat facility. CodeBunk is ideal for Online Interviewing of Developers as well as Learning to code from Friends.
hewenhong has joined #ruby
<[k-> its like google docs
<[k-> but with code
<umgrosscol> blackjid: rbenv should let you set the ruby version per application. I usually do it per user and per shell, but i think there is a local option for per directory.
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> [k-: and paid
<[k-> yes i was about to mention that
<[k-> you get 5 free sessions tho
<adaedra> So IDE as a service
<adaedra> :)
theotherstupidgu has joined #ruby
<[k-> *collaborative* IDE as a service
<[k-> there is also this https://codebunny.io/
hewenhon_ has joined #ruby
<blackjid> umgrosscol just to confirm, just install rbenv as root in /usr/local/rbenv ???
iotouch has quit [Read error: Connection reset by peer]
joelataylor has joined #ruby
iotouch has joined #ruby
zorak8 has joined #ruby
Ellis has joined #ruby
Ellis has quit [Client Quit]
colorados2 has quit [Read error: Connection reset by peer]
Atomicalloy has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 276 seconds]
hewenhong has quit [Ping timeout: 256 seconds]
crus` has quit [Ping timeout: 250 seconds]
Matachines has joined #ruby
dfinninger has joined #ruby
theotherstupidgu has quit [Ping timeout: 256 seconds]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matachines has quit [Max SendQ exceeded]
gaganjyot has joined #ruby
<[k-> There's also anther one: http://collabedit.com/ this one is free but it doesn't run code
Matachines has joined #ruby
<adaedra> I don't like these kind of things personally
theotherstupidgu has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<Nimf> You can take a look at this also: https://c9.io
<[k-> lol i posted them so we could help people code >.<
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
<[k-> cloud9's website looks refreshed
<[k-> much nicer looking
<jhass> there are tons of these by now
<Nimf> Oh, sorry. I thought you are looking for collaborative cloud development environment
<jhass> there's even one that spins up entire preconfigured VMs for you
dopie has joined #ruby
<jhass> I can never remember the names of these thingys
woodruffw has joined #ruby
<[k-> i didn't know cloud9 could be collaborative till now
GaryOak_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<[k-> there is nitrous.io, codeenvy, koding, codebox, etc
ndrei has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jimms has joined #ruby
<Nimf> yup nitrous.io also looks very promising
Limix has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.1.1]
riotjones has joined #ruby
<ytti> not trying to push any buttons
<ytti> but what is the use-case for browser editor?
anisha has quit [Quit: Leaving]
<ytti> is it for google pixel type of deals
<ytti> or is there also use case for 'normal' desktop/laptop use?
sent1nel has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
<ytti> i wonder if one of those is GPL/BSD licensed, might be nice gitlab
Spami has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
<[k-> well it is sort of like a vm
<[k-> if you are windows and need linux tools
<[k-> you dont need to install anything else
<ytti> you get linux tooling in-editor?
<[k-> so theres that
<[k-> yup
colorados2 has joined #ruby
<ytti> oh, that's cool
gagrio has quit [Ping timeout: 244 seconds]
gagrio_ has quit [Ping timeout: 265 seconds]
dvlwrk has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
riotjones has quit [Ping timeout: 265 seconds]
bruno-_ has quit [Ping timeout: 255 seconds]
gauke has quit [Quit: gauke]
dopie has quit [Quit: This computer has gone to sleep]
crus has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
revoohc has quit [Quit: revoohc]
gizmore has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
ta has quit [Ping timeout: 245 seconds]
<umgrosscol> blackjid: or wherever you want to put it.
einarj has quit [Remote host closed the connection]
revoohc has joined #ruby
<blackjid> umgrosscol what do you do if you want to execute rbenv in a non-interactive shell script, how do you initialize it?
jimms has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
piotrj has joined #ruby
<toretore> you don't, really
<toretore> what's the reason you have rbenv in the first place?
ta_ has quit [Ping timeout: 250 seconds]
zdman135 has joined #ruby
<[k-> bash already initializes it
piotrj has quit [Read error: Connection reset by peer]
<[k-> so when your script is run, its there
<[k-> accessible via `code` or %x[code]
piotrj has joined #ruby
terlar has joined #ruby
zotherstupidguy has quit [Ping timeout: 256 seconds]
krz has quit [Quit: WeeChat 1.0.1]
zotherstupidguy has joined #ruby
nb_bez___ has joined #ruby
hewenhong has joined #ruby
Spami has joined #ruby
<GaryOak_> what editors are people using for ruby these days?
<toretore> intellij
<terrellt> Vim.
<[k-> sublimetext
gaganjyot has quit [Ping timeout: 276 seconds]
<[k-> brackets
<nb_bez___> Sublime
Spami has quit [Client Quit]
<[k-> lighttable maybe
<GaryOak_> Is there anything in them that are the 'killer app' for you as a dev?
<umgrosscol> blackjid: I think you'd source rbenv_profile. Why do you want to call rbenv non interactively? to select the ruby version? you can do that with an env varaible
pengin has joined #ruby
<GaryOak_> For ruby specifically
Jackneill has joined #ruby
<umgrosscol> blackjid: I think it's RBENV_VERSION if you're doing it on a user by user basis
<terrellt> ...I mean, vim's vim. It has rails.vim, ctags, ctrl+p, vim-rspec, tslime, etc etc.
revoohc has quit [Quit: revoohc]
revoohc has joined #ruby
<GaryOak_> terrellt: what do you use to move between files?
<[k-> some people also use emacs nano gedit geany kedit
<terrellt> :Explore
ascarter has joined #ruby
<[k-> textmate textwrangler rubymine
<GaryOak_> Are you fast at it now?
serivich has quit [Ping timeout: 240 seconds]
DerisiveLogic has joined #ruby
<terrellt> Or ctrl+p, really - fuzzy file searching.
<toretore> :q\nvim otherfile
<terrellt> Yes - I used other IDEs a year ago, I'm at least twice as fast.
<toretore> or \r or whatever enter is
<terrellt> toretore: Ew, :e otherfile. Never close vim!
mleung has joined #ruby
<umgrosscol> blackjid: It's the .ruby-version file if you're not setting the env variable, but I think that env var overrides any .ruby-version
<toretore> i use one vim per file
<toretore> tmux for windows
<terrellt> What, why
hewenhong has quit [Ping timeout: 240 seconds]
<terrellt> There's tabs built -in- to vim.
<terrellt> Tmux is important still, but yeah.
<toretore> i don't care
<toretore> i like tmux
sinkensabe has joined #ruby
<terrellt> Yes, use them both, by all means, but there's so much power in keeping tabs in vim.
<toretore> got my keys all set up and i ain't going back
iasoon has joined #ruby
<toretore> i switch so much between the cmdline and editing that i constantly :q anyway
<terrellt> That's where tmux is good.
<terrellt> Panes.
<toretore> i got panes, sessions, windows
<toretore> got it all
<toretore> don't need any more
<toretore> too many levels man
<terrellt> But ctrl+p, fuzzy search file, ctrl+t to open a file in a new tab is just -so fast-
<zlude> Hey guys, i'm using nokogiri to parse a table, I'm using that " rows = doc.search('//tr[starts-with(@class, "Odd")]') " and it's working, but I want to get class Odd and Even, how can I do that?
gazay has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
<GaryOak_> zlude: add `or starts-with(@class, "Even")`
DerisiveLogic has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
dblessing has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
<GaryOak_> xpaths are powerful but primitive
<zlude> GaryOak_, thank you bro!
<GaryOak_> haha no problem
<zlude> GaryOak_, do you recommend another thing instead of xpaths?
SouL_|_ has quit [Ping timeout: 244 seconds]
<toretore> zpath is fine
<toretore> stick with it
<toretore> x
Spami has joined #ruby
<GaryOak_> you can use css selectors, but they aren't as specific as xpaths
<toretore> path
Spami has quit [Client Quit]
fryguy9 has quit [Ping timeout: 245 seconds]
<zlude> GaryOak_, but uses xpaths is something bad? i'm beginning in ruby .. and I want to write 'modern' codes... nothing old.
Spami has joined #ruby
<GaryOak_> nope xpaths are fine
<zlude> thank you! :D
<zlude> i love ruby community
baweaver has joined #ruby
odin22 has quit [Quit: Leaving]
zorak8 has joined #ruby
dopie has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
dvlwrk has quit [Ping timeout: 240 seconds]
<GaryOak_> that's why we're here
PhantomSpank has joined #ruby
pengin has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
Papierkorb has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<[k-> <3
PhantomSpank has joined #ruby
roolo has quit [Remote host closed the connection]
<Papierkorb> What's the ruby solution to doing stuff concurrent? I have a bunch of URLs, all of which I want to download and using the data then update active record entries.
jtdowney has joined #ruby
mjuszczak has quit []
failshell has quit [Remote host closed the connection]
<Papierkorb> I'm using MRI 2.2.2
thatslifeson has quit [Remote host closed the connection]
fryguy9 has joined #ruby
AirStar has quit [Quit: AirStar]
<jhass> threads?
<toretore> that's a question with complicated answers
dorei has joined #ruby
<toretore> there is no one solution to concurrency
<jhass> is it a one off script or do you want to integrate it into a (long running) application
<jhass> ?
<Papierkorb> Well, I want to start those jobs and when they're all done, the application shall exit
<havenwood> Papierkorb: There are several great HTTP client gems. Consider using one like Typhoeus: https://github.com/typhoeus/typhoeus#readme
maletor has joined #ruby
sinkensabe has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 248 seconds]
<havenwood> Papierkorb: Though you said the word "Active", so #RubyOnRails! :P
<jhass> yeah typhoeus hydra and pushing the responses into a queue on which a bunch of consumers listen that process the data and store it
tonyhb has joined #ruby
aryaching has joined #ruby
<Papierkorb> havenwood: not using RoR though
<havenwood> Papierkorb: aha
jottr has quit [Ping timeout: 256 seconds]
<Papierkorb> havenwood: at least as far I understand, that's only for web applications, which I don't develop
grzywacz has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Remote host closed the connection]
nobitanobi has joined #ruby
sinkensa_ has joined #ruby
<havenwood> Papierkorb: Most folk using ActiveRecord are using Rails, but yeah not all!
<toretore> Papierkorb: threads = URLS.map{|u| Thread.new{ get u } }; content = threads.map(&:value)
rbennacer has joined #ruby
gaganjyot has joined #ruby
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith has quit [Quit: Be back later ...]
<jhass> spawning a thousand threads won't get you the best throughput
terlar has quit [Ping timeout: 272 seconds]
<Papierkorb> well, especially not when MRI decides to lock it to one running thread ..
<toretore> spawning 10 threads will work fine
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
<toretore> and it will be concurrent, Papierkorb
<umgrosscol> I feel like GIL is a punchline here.
<GaryOak_> hahhaa
metalic has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<umgrosscol> toretore: Don't you need JRuby or Rubinius to get true parallelization?
Guest15 has joined #ruby
<toretore> people don't understand the gil; what use would threads be if nothing could ever run concurrently?
<GaryOak_> If this is for something real, you could use Resque, or Celluloid
<toretore> parallel, yes
<GaryOak_> not concurrent though
<toretore> if you just want to run a script to download a bunch of stuff, threads will work just fine
Guest15 has quit [Client Quit]
<jhass> they want to do db inserts, threads will improve throughput for that, even on MRI
<GaryOak_> Unless you have too many connections to the database, like a lot
jottr has joined #ruby
<GaryOak_> Done that before
<jhass> luckily AR ships with a connection pool
kaleido has quit [Ping timeout: 256 seconds]
<GaryOak_> If you overload the connection pool limit things start to slow down
PhantomS_ has quit [Read error: Connection reset by peer]
<jhass> Papierkorb: depending on your usecase, https://github.com/zdennis/activerecord-import might be useful too
rbennacer has quit [Ping timeout: 256 seconds]
PhantomSpank has joined #ruby
tonyhb has quit [Quit: peace]
<jhass> sure, that's why I suggested a producer/consumer pattern
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
mnemon2 is now known as mnemon
PhantomSpank has quit [Read error: Connection reset by peer]
<[k-> fibers?
<Papierkorb> jhass: Yes, I want to have some kind of 'job', which I give some kind of manager which runs multiple jobs in parallel on multiple cores at once.
PhantomSpank has joined #ruby
Soda has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
<IceDragon> [k-: Wait, where you suggestion that Papierkorb use Fibers, in which case, ignore me D:
<IceDragon> suggesting*
<Papierkorb> Oh god please not manually doing that crap
noname has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
<Papierkorb> If it's harder to use than a one-liner in C++, then somethings wrong.
<toretore> Papierkorb: the solution depends on the details of your problem. explain your problem better
<jhass> producer/consumer is really easy to implement
PhantomSpank has joined #ruby
<jhass> really easy
<havenwood> Papierkorb: Understand what jhass said about "typhoeus hydra and pushing the responses into a queue on which a bunch of consumers listen ..."?
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
<umgrosscol> Papierkorb: if you need parallel, jruby or rubinius. however, concurrent might be sufficient.
<GaryOak_> FIFO to the rescue!
ch3f has joined #ruby
sent1nel has joined #ruby
<umgrosscol> Papierkorb: I'm pretty sure the GIL yields on disk and network i/o
McRae has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
<toretore> it does
rbennacer has joined #ruby
<umgrosscol> Papierkorb: So concurrency might be sufficient if you're doing a lot of i/o and not a lot of cpu.
<Papierkorb> toretore: Well, I want a generic solution in general. I want to download stuff, which is then processed and put into database. jobs may be added from running jobs, so I can't create a complete list directly.
PhantomS_ has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 250 seconds]
tonyhb has joined #ruby
sagittarian has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<toretore> Papierkorb: like i said, there is no such thing as a generic solution to concurrency
rmcafee_ has joined #ruby
<shevy> lol
<shevy> what kind of nick is "Papierkorb"
<shevy> :)
<umgrosscol> Papierkorb: yeah Resque. Uses Reddis. Add stuff to queue. Workers process from queue
<shevy> flughafen, look at your brother here, Papierkorb
<jhass> resque is slow though
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> unless you have very complex computations in each job
<adaedra> shevy: Recycle Bin
<jhass> s/complex/expensive/
<IceDragon> Yo shevy ma brother!
PhantomSpank has joined #ruby
wldcordeiro has joined #ruby
<toretore> Papierkorb: you still haven't actually described the problem you're trying to solve, except for "a generic solution to running jobs concurrently"
<umgrosscol> Papierkorb: You could spin up as many instances as you want on the same or other hosts that can process from that queue
juanpablo_ has joined #ruby
<Papierkorb> toretore: I download webpages, do selections on one, and then store that in a database.
<toretore> Papierkorb: how many? where do the urls come from?
PhantomSpank has quit [Read error: Connection reset by peer]
<IceDragon> I'm gonna start telling people to just use Go when they bring on (complex) parallel programming in ruby...
Igorshp has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<toretore> is it a list that is known from when the program starts?
kaleido has joined #ruby
<Papierkorb> toretore: Ten to thousands maybe.
<Papierkorb> toretore: No.
Igorshp has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 250 seconds]
<umgrosscol> queue of urls. pool of scrapers. queue of serialized data. pool of database writers.
<jhass> toretore: it's not complex yet
JDiPierro has quit [Remote host closed the connection]
<jhass> don't even need two pools
<toretore> Papierkorb: so you want a long-running process that receives "jobs" in the form of urls to download?
PhantomSpank has joined #ruby
<umgrosscol> jhass: Depends on how scalable he'd like it to be.
<jhass> case job; when Fetch; when Process;
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<jhass> and Fetch just pushes it into a typhoeus hydra
<Papierkorb> toretore: basically yes, including on doing some processing them (Parsing HTML, selecting stuff)
quimrstorres has joined #ruby
<toretore> Papierkorb: a "generic solution" to "running jobs" is resque, there are others
PhantomSpank has quit [Read error: Connection reset by peer]
\13k has joined #ruby
failshell has joined #ruby
PhantomSpank has joined #ruby
thatslifeson has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<umgrosscol> toretore: I concur
horsecowdog has joined #ruby
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> for what they described so far resque and sidekiq would be overkill
PhantomSpank has joined #ruby
\13k has quit [Client Quit]
<jhass> besides they don't shut down if all work is finished
<toretore> Papierkorb: but; i would advice that if you have to ask these questions, managing concurrency in ruby isn't going to be easy. there are other environments that make it easier
<Papierkorb> and I don't want to set up any other server like redis for just doing some parallel stuff ..
<toretore> that have more idiot proofing than ruby
<umgrosscol> jhass: Given it's impossible to know the scope of how much data will be in the list or when it will stop coming in, I'd say it couldn't know when it's done.
<fivetwentysix> toretore: golang!
wldcordeiro has quit [Quit: Leaving]
<umgrosscol> Papierkorb: It's easier than rolling your own.
<toretore> it's not difficult to roll your own if you know what you're doing
<fivetwentysix> but making threads in ruby aint hard :)
duderonomy has quit [Ping timeout: 255 seconds]
\13k has joined #ruby
konsolebox has quit [Ping timeout: 245 seconds]
<toretore> a thread pool, a queue, some way for the process to receive external input
mikecmpbll has quit [Ping timeout: 264 seconds]
<umgrosscol> toretore: Yes, but that adds to your dev and testing time. There are off the shelf components that simplify the matter. Papierkorb just isn't too keen on using them.
wldcordeiro has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<toretore> sometimes they complicate the matter
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> I don't want to learn how to administer a whole server solution when all I need is a script which does a lot just fast.
<umgrosscol> toretore: This can be true, but in this case, it's pretty straight forward.
<toretore> adding redis shouldn't be necessary
<Papierkorb> If I have to do all that crap, while C++ does it easily, where's the point?
last_staff has joined #ruby
<toretore> i'm not going to run a redis server just do run a script to download a bunch of web pages
<umgrosscol> Papierkorb: then set up a simple straight through process that reads in a file, deletes the file, and does the processing.
bricker has joined #ruby
<umgrosscol> Papierkorb: Restart the process periodically, or setup a watchdog to start the process when it's input file comes into existence.
fryguy9 has quit [Read error: Connection reset by peer]
fryguy91 has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<toretore> Papierkorb: if c++ does it so easily why aren't you using it? (being serious)
<fivetwentysix> toretore: honestly, you can do what you want with Typhoeus and Nokogiri most likely for batch web processing
PhantomSpank has joined #ruby
<Papierkorb> toretore: Because parsing HTML sucks and I don't have a easy ORM there
choke has quit [Ping timeout: 255 seconds]
<Papierkorb> toretore: The latter I could fix, the former .. no idea what solutions there are.
PhantomSpank has quit [Read error: Connection reset by peer]
<fivetwentysix> but then if you want C like performance
<fivetwentysix> do golang and gokogiri
PhantomSpank has joined #ruby
<fivetwentysix> it's just as simple
mtakkman has joined #ruby
<umgrosscol> Or python
<toretore> use rust
PhantomSpank has quit [Read error: Connection reset by peer]
<jhass> crystal!
dcarmich has joined #ruby
<dorei> rust :)
rmcafee_ has left #ruby [#ruby]
<toretore> clojurescript
<fivetwentysix> life so easy
<jhass> (no, but since we're only suggesting non-sense now)
PhantomSpank has joined #ruby
<toretore> with a react frontend
kith has quit [Quit: kith]
michaeldeol has joined #ruby
granthatcher has quit []
wottam has joined #ruby
gaganjyot has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Client Quit]
<havenwood> Papierkorb: Easy parallel HTTP requests with typhoeus, curb or em-http-request. Or async HTTP requests with httpclient, wrest or em-http-request. These are tools made for the job. Or there are ThreadPools/Actor/CSP whatever concurrency primitives available in a number of gems.
ergodicsum has joined #ruby
dseitz has joined #ruby
<ergodicsum> hello what does this code do: rocessVideoJob < Struct.new(:video_id)
<ergodicsum> class ProcessVideoJob < Struct.new(:video_id)
lkba_ has joined #ruby
ascarter has joined #ruby
iamjarvo has joined #ruby
<jhass> ergodicsum: it's the discouraged version of ProcessVideoJob = Struct.new(:video_id)
Cust0sL1men has quit [Ping timeout: 256 seconds]
<havenwood> ergodicsum: Like a nasty way of saying: ProcessVideoJob = S - dangit jhass you make me delete so much by beating me to it!
gaganjyot has joined #ruby
<bricker> :D
ascarter has quit [Max SendQ exceeded]
paulcsmith has joined #ruby
wldcordeiro has joined #ruby
<ght> Question: I notice when I pass a hash as a method parameter, if I make changes to the values within the hash in the method, those changes remain persistent after control has been returned to the calling method.
zorak8 has quit [Quit: Leaving]
ascarter has joined #ruby
sent1nel has quit [Remote host closed the connection]
<jhass> ght: yes, that's called pass by reference
lkba has quit [Ping timeout: 264 seconds]
<ght> So therefore, when ruby passes a hash as a method parameter, is it passing a pointer to the area of ram that contains the hash instead of copying it?
sent1nel has joined #ruby
baweaver has quit [Remote host closed the connection]
<ninjs> jhass how did you get so smart? lol
withnale_ has quit [Ping timeout: 252 seconds]
<jhass> ninjs: this channel mostly
ascarter has quit [Max SendQ exceeded]
<IceDragon> ah, the concurrency talk is over?
<IceDragon> ;-;
<IceDragon> and I made a thing...
<adaedra> IceDragon: we can do another talk in parallel.
lrcezimbra has joined #ruby
<ght> Got it.
<havenwood> Then starve our Threads.
ascarter has joined #ruby
<ght> pass by value vs pass by reference.
<jhass> ght: pretty much, specifically in MRI each object is an instance of a struct and only pointers to those are passed around
<jhass> but that's an implementation detail you shouldn't care about
<IceDragon> adaedra: *whistles*
iotouch has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
<ght> Also, when I was growing up coding, "methods" were called "functions" in C/C++/TurboPascal, except in Pascal when they wouldn't return a value, then they were calld procedures.
slash_nick has quit [Ping timeout: 264 seconds]
<adaedra> ght: methods and functions are different things
<havenwood> ght: I like "subroutine."
<jhass> ght: the high level concept is pass by reference and pass by value as you said, and that's what you should care about, not how they are implemented
chthon has quit [Ping timeout: 244 seconds]
<ght> adaedra: what's the difference?
metalic has quit [Quit: Leaving]
<adaedra> ght: methods are functions which are called on an object
<ytti> method lives inside an object and sees what the object sees
<umgrosscol> ght methods belong to an object
<adaedra> :')
<ytti> function sees nothing but what it has
<ght> Interesting, ok.
<havenwood> UNBIND ALL THE METHODS \o/
<ght> I got it.
lrcezimbra has quit [Quit: Konversation terminated!]
<adaedra> hanmac: YOU FOOL, WHAT HAVE YOU DONE
lrcezimbra has joined #ruby
<jhass> ght: more importantly methods have a context in which they're executed in (the object they belong to)
<umgrosscol> you want some weird stuff about methods... ruby has transplantable methods.
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<ght> I got it, yes.
<ght> Thank you, very helpful.
<adaedra> umgrosscol: Ruby has many things.
lrcezimbra has quit [Client Quit]
Xiti has quit [Read error: Connection reset by peer]
gauke has joined #ruby
sent1nel has quit [Read error: No route to host]
PhantomSpank has quit [Read error: Connection reset by peer]
<IceDragon> havenwood: did you just say unbind all methods?
* IceDragon runs for cover
PhantomSpank has joined #ruby
sent1nel has joined #ruby
soulcake has quit [Quit: Quack.]
gauke has quit [Client Quit]
leafybas_ has joined #ruby
soulcake has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
<adaedra> Time to go, see ya
leafybas_ has quit [Remote host closed the connection]
<GaryOak_> Get rid of those pesky methods
<ytti> i heard majority of the bugs occur in methods in OO programming
<kaspergrubbe> lol
<GaryOak_> It's true
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
PhantomSpank has quit [Read error: Connection reset by peer]
zdman135 has quit [Remote host closed the connection]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PhantomSpank has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
PhantomSpank has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Ping timeout: 245 seconds]
PhantomSpank has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<A124> Is there a way to do arry.combination(n).size, without building the array? .. yep there is.. it returns enumerable which is inteligent enough to give you just the number of combinations.
djbkd has joined #ruby
The_Phoenix has joined #ruby
<A124> Is there a way to get number of combinations by not actually having to have the array?
The_Phoenix has quit [Max SendQ exceeded]
zorak8 has joined #ruby
Dakuan has joined #ruby
The_Phoenix has joined #ruby
<IceDragon> >> Enumerable.method(:combinations)
<ruboto> IceDragon # => undefined method `combinations' for class `Module' (NameError) ...check link for more (https://eval.in/321721)
<IceDragon> >> Enumerable.instance_method(:combinations)
<ruboto> IceDragon # => undefined method `combinations' for module `Enumerable' (NameError) ...check link for more (https://eval.in/321722)
ghr has quit [Ping timeout: 240 seconds]
* IceDragon curses Enumerable
ramfjord has joined #ruby
<blackjid> toretore I use rbenv because I need to run apps with different versions of ruby
The_Phoenix has quit [Max SendQ exceeded]
joelataylor has quit [Quit: Lingo: www.lingoirc.com]
<toretore> blackjid: in which context are you running these apps?
bMalum has joined #ruby
<blackjid> toretore what do you mean context??
<toretore> blackjid: is it a server, where you're running them using init files or similar?
The_Phoenix has joined #ruby
<[k-> >> Array.method(:combinations)
<ruboto> [k- # => undefined method `combinations' for class `Class' (NameError) ...check link for more (https://eval.in/321723)
<[k-> >> Array.instance_method(:combination)
vickleton has joined #ruby
<ruboto> [k- # => #<UnboundMethod: Array#combination> (https://eval.in/321724)
<IceDragon> [k-: Its actually combination
<IceDragon> >:
<IceDragon> ninj-ed!
* IceDragon curses
<[k-> did i win?
<IceDragon> yep
<[k-> :D
Xiti has joined #ruby
<blackjid> mm, nop I'm running them using a gem named eye.... similar to bluepill or god that is also a gem
<toretore> well that's the same thing
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<IceDragon> [k-: Sorta, we expected Enumerable to have the method though, since the question was, <A124> Is there a way to get number of combinations by not actually having to have the array?
<toretore> some daemon that starts and watches processes
<blackjid> yeap
<[k-> Enumerable is just a module that has helper functions :/
chipotles has joined #ruby
<toretore> blackjid: in which case you don't want to depend on having the environment set up befor eyou can run it
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> array has higher order methods
blackmesa has quit [Ping timeout: 244 seconds]
jtdowney has joined #ruby
<toretore> blackjid: since you already have rbenv installed; find the ruby executable and run it directly
<toretore> blackjid: /path/to/rbenv/versions/foo/bin/ruby args here
<A124> IceDragon, ruboto, The point was if there is way to do Math.combinations(k,n) and get number, not using an array.
<jhass> A124: don't think so, go to wikipedia and pick the right formula
<blackjid> toretore oo, and bypassing the rbenv init...
<ponga> using sequel gives me hash inside an array, how to convert this into just a hash? ==> [{:origin_eng=>"Fun", :raw=>"ridik", :noun=>"ridiko", :adj=>"ridika", :adv=>"ridike"}]
<toretore> blackjid: yes
scripore has quit [Quit: This computer has gone to sleep]
moeabdol has quit [Quit: WeeChat 1.1.1]
<A124> jhass Hmm... feel that is dumb.. as if you call it on enumerable it does it without creating all the combinations actually.
<IceDragon> ponga: just take the first element from the array?
<havenwood> ponga: first
<shevy> adaedra that is right, you speak german?
pengin has joined #ruby
<ponga> oh damn
<shevy> adaedra well, more "paper bin" perhaps, or trashbin though
<ponga> arr[0] works
PhantomSpank has quit [Read error: Connection reset by peer]
<shevy> arr.first would too!
scripore has joined #ruby
<ponga> shevy: what's that different from [0]
<shevy> should be the same
PhantomSpank has joined #ruby
* ponga is embarrased
<shevy> on my keyboard, [] is harder to type though
andikr has quit [Remote host closed the connection]
<IceDragon> shevy: "first" is 2 characters extra D8<
<shevy> ponga can you type with those korean or japanese thingies?
<havenwood> blackjid: So you run a Ruby gem init thingy with rbenv and it hijacks PATH and then won't go back to system? Pretty sure I saw an rbenv issue on the githubs like that at some point. I'm more of an expert of switching folk from rbenv to chruby. :P
chipotles has quit [Client Quit]
<shevy> IceDragon yeah, it's longer in amount of characters
allcentury has joined #ruby
<toretore> "version switching" is useless on a server
<IceDragon> >> [1, 2, 3].each.first
<ruboto> IceDragon # => 1 (https://eval.in/321729)
<IceDragon> ponga: ^ #first is from Enumerable
scripore has quit [Client Quit]
tcrypt has joined #ruby
<blackjid> havenwood I have thought of that, but our workflow relly on the rbenv-vars plugin to load pero project env variables. I would need to go into a greater change to be able to do that.
tomphp has quit [Ping timeout: 250 seconds]
<umgrosscol> havenwood: rbenv just adds a bunch of shims to the path.
Dakuan has quit [Remote host closed the connection]
<[k-> #last is not implemented on Enumerable tho
The_Phoenix has quit [Quit: Leaving.]
<umgrosscol> havenwood: Then when you call ruby, the shim delegates to whatever version you had set.
sinkensa_ has quit [Remote host closed the connection]
<IceDragon> [k-: Its because a collection can be infinite
<[k-> :o
Matachines has joined #ruby
<shevy> chuck norris can count that collection
<shevy> twice
<umgrosscol> blackjid: Per project env variables? why not just use a config file?
<havenwood> umgrosscol: Which causes a bug in this case where the rbenv env var setting system Ruby isn't respected.
<ponga> shevy: you mean im fluent in writing them?
Matachines has quit [Max SendQ exceeded]
<ponga> of course
<IceDragon> [k-: All methods in enumerable are based around #each, if your each is just a loop { yield something }; you'd never find the end unless you broke it
piotrj has quit [Remote host closed the connection]
<IceDragon> broke == break
<[k-> chuck norris counted that collection infinite times before shevy said twice
Matachines has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<IceDragon> shevy, [k-: He's chuck norris what did you expect!?
<IceDragon> 3;
<umgrosscol> havenwood: which env var? RBENV_VERSION?
<ponga> shevy: you need help in KOR/JAP ?
<havenwood> umgrosscol: yup
<shevy> ponga nah, just curious how it works
joe_meade has quit [Remote host closed the connection]
<ponga> ah
<blackjid> umgrosscol i think it's easier, just access those variables with ENV[] insteat having to load the file first, the variables are also availble since the begining of the execution of the application
<ponga> shevy: im on mac
<umgrosscol> havenwood: if that's set, it should override the .ruby-version local file.
<ponga> so the keyset is universal
tjohnson has joined #ruby
<shevy> aha
philip1 is now known as phutchins
ramfjord has quit [Ping timeout: 256 seconds]
<ponga> and shevy for Jap/Kor since long days ago, layout is equal to English ones
<ponga> those funny layouts existed in like 90's only
<ponga> perhaps 80's
<toretore> blackjid: you can set the env vars in the unit file or whatever you have for the process daemon
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> umgrosscol: Hence the problem when you shell out from Ruby, set it, and it doesn't actually use system Ruby.
wallerdev has joined #ruby
skyjumper has joined #ruby
<umgrosscol> havenwood: You can only set env vars for the current process and children. Since shelling out starts a child process, it can't set the parent's env variables.
PhantomSpank has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Quit: Leaving]
<umgrosscol> havenwood: that's a child process issue. not an rbenv issue.
<havenwood> umgrosscol: not for the parent, the child
<havenwood> umgrosscol: no
<skyjumper> general code structure question...
PhantomSpank has joined #ruby
<blackjid> toretore yes yo are right, I could do that... now that you mention it, I'm already doing that, maybe I could give chruby a try .. :)
ADot has joined #ruby
<skyjumper> is there a consensus on multiple endpoints vs multiple levels of if/else and indentations in a method?
<havenwood> umgrosscol: nobody is talking about the parent process doing anything. look at his issue above.
<umgrosscol> havenwood: So you shell out, set the env variable, then invoke ruby?
<havenwood> umgrosscol: yes
zdman135 has joined #ruby
<toretore> blackjid: chruby isn't going to be any different; it's the way you're executing the ruby binary that needs to change
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zdman135> is there an easy way to automatically populate a hash?
lkba_ has quit [Ping timeout: 265 seconds]
<toretore> blackjid: as in: use the full path
Hijiri has quit [Quit: WeeChat 1.0.1]
<havenwood> toretore: I don't see why `chruby exec` wouldn't work?
<toretore> zdman135: with what?
<toretore> havenwood: how would it know where to find the binary?
<skyjumper> thought i remember Linus saying more than X indentations in a function was unacceptable (X=2 maybe?)
<skyjumper> but then lots of people say multiple endpoints are a huge no-no
<shevy> ponga oh I see
<umgrosscol> havenwood: and that's not working for you? rbenv the ignores the RBENV_VERSION?
<IceDragon> skyjumper: I usually stick to "If you can't explain your method without using AND, then change it"
<havenwood> toretore: it would run the command after sourcing the correct environment variables to run as the desired ruby
<[k-> zdman135: with what?
<IceDragon> skyjumper: going with that line of thinking you usually end up with only about 1 or 2 indents
<[k-> zdman135: you could use defaults
<toretore> havenwood: which doesn't work when you're exec'ing from some init daemon
<[k-> or the Hash[] notation
<toretore> you'll have to do something like /bin/bash -c'source whatever; chruby exec whatever'
<skyjumper> IceDragon: you could also end up with a new method wherever you would have had an indentation
<skyjumper> then code becomes less readable because it's scattered everywhere
<toretore> which is what i'm arguing against
<zdman135> toretore: I have a json of arrays of arrays with hash values inside
<toretore> it depends on external state being set
iotouch has quit [Quit: 离开]
<[k-> an example of what the json is and an example of what you want and an explanation of automatic?
sinkensabe has joined #ruby
<havenwood> toretore: other than sourcing the script so you can run it, chruby-exec should *just work*
<IceDragon> skyjumper: just use your discretion, indent when it makes sense, its not a hard and bulletproof rule :)
lolmaus has joined #ruby
<toretore> havenwood: if you run it from a shell, yes
rdark has quit [Quit: leaving]
<toretore> i'm just saying it shouldn't be necessary
PhantomSpank has quit [Read error: Connection reset by peer]
<skyjumper> yeah, just trying to fine tune my havits
<toretore> it's like having to set state on an object before you can call a method
lordkryss has joined #ruby
PhantomSpank has joined #ruby
lidenskap has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
<toretore> obj.execute #fails; obj.foo = bar; obj.execute #succeeds
<zdman135> sorry back, i had to type out some sample code so you'll understand what I was talking about. So in this sample code snippet: https://gist.github.com/zdman135/23960f995685739a55b8
<zdman135> you will see i am trying to create a hash from the output of an array
PhantomSpank has quit [Read error: Connection reset by peer]
<zdman135> i just don't know what it would be
PhantomSpank has joined #ruby
<havenwood> toretore: it's unfortunate to have to create a wrapper script with init.d sometimes. simplicity has a price on edge cases I suppose.
JDiPierro has joined #ruby
<IceDragon> skyjumper: Just keep in mind, your methods should be easily read, you can easily explain them, and if moved into a new context, it should still be clear in what it does* (that last point, isn't always applicable though ;()
dvlwrk has joined #ruby
<skyjumper> IceDragon: yeah definitely
serivich has joined #ruby
<[k-> while @array[0]['elements'][0]['comments'][0] != nil this might be a non-terminating expr
<havenwood> toretore: but those cases don't seem to be less painful with more complex options, so i'll take it. ;)
<toretore> havenwood: i'd argue that it's not simplicity but complexity
ADot has quit [Quit: Leaving.]
<[k-> what do you mean by name is the key and it equals value?
towski_ has joined #ruby
<zdman135> [k-: yeah that was a typo the last [0] element should be [i]
<toretore> havenwood: and that on a server you will seldom have the need to run ruby in an interactive shell, so there's not much point to having a version switcher to begin with
<[k-> do you mean to say that they are the same?
vickleton has quit [Ping timeout: 248 seconds]
<IceDragon> [k-: it could be an empty string, and that is one hell of a statement...
<shevy> EMPTY STRINGS FOR EMPTY DRAGONS
<[k-> well I didn't come up with it
<havenwood> toretore: Oh, i totally agree if we're talking a production system. Complete agreement.
<IceDragon> shevy.presence #=> OVER9000!!!!!
jottr has joined #ruby
Igorshp has quit [Remote host closed the connection]
<toretore> havenwood: ok then :)
<zdman135> [k-: so the output of that array makes a 'string' and I want to place that into a hash { name => 'string' }
<zdman135> from that output
DerisiveLogic has joined #ruby
Cork has quit [Ping timeout: 264 seconds]
<zdman135> so basically that while loop will iterate through an array grabbing a bunch of strings. and i want to populate a hash automatically
PhantomSpank has quit [Read error: Connection reset by peer]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> zdman135: gist the input data you're reading and explain what it is you want to do with it
<[k-> is name constant?
<zdman135> toretore: sure give me a sec
PhantomSpank has joined #ruby
pdoherty has joined #ruby
<zdman135> [k-: name is constant
momomomomo has quit [Quit: momomomomo]
<havenwood> toretore: i just meant in relation to other ruby switchers, i missed the server bit ;)
<zdman135> [k-: but i will probably do name1 name2 name3 creating it dynamically
zotherstupidguy has quit [Ping timeout: 245 seconds]
<toretore> havenwood: i haven't used chruby but it seems "better" than rvm and rbenv
<toretore> less assumptions
Cork has joined #ruby
elaptics is now known as elaptics_away
kith has joined #ruby
gazay has quit [Quit: gazay]
zotherstupidguy has joined #ruby
<[k-> h = Hash.new { |hash, key| hash["name#{hash.length}"] = key } :o
Limix has quit [Quit: Limix]
<[k-> >> h = Hash.new { |hash, key| hash["name#{hash.length}"] = key }; %w[hi hello bonjour].each { |x| h[x] }
<ruboto> [k- # => ["hi", "hello", "bonjour"] (https://eval.in/321734)
<[k-> >> h = Hash.new { |hash, key| hash["name#{hash.length}"] = key }; %w[hi hello bonjour].each { |x| h[x] }; h
jottr has quit [Ping timeout: 272 seconds]
<ruboto> [k- # => {"name0"=>"hi", "name1"=>"hello", "name2"=>"bonjour"} (https://eval.in/321735)
<ponga> any reason to choose other SQL than sqlite3 ?
<[k-> like this?
<ponga> what does sqlite 3 lack?
scripore has joined #ruby
<GaryOak_> json operators <3 PG
<IceDragon> zdman135: Commented on your gist
psyprus has quit [Ping timeout: 248 seconds]
<zdman135> toretore: here is the json data that i am trying to parse different pieces out of: https://gist.github.com/zdman135/5db58025f540368e0498
noname has quit [Ping timeout: 248 seconds]
<havenwood> ponga: only one writer at a time
fgo has quit [Ping timeout: 240 seconds]
<havenwood> ponga: need to read, great! need to write concurrently, no!
<ponga> havenwood: really? no other user can access and update,insert ?
<ponga> omg
ascarter has joined #ruby
wottam has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
<jhass> ponga: in summary: performance and features
Hounddog has quit [Read error: Connection reset by peer]
<ponga> havenwood: so multiple processes writing single sqlite3 db file is impossible
dumdedum_ has joined #ruby
<ponga> damn
<havenwood> ponga: you'll be having a much better time with PostgreSQL at the time you consider such a thing
<toretore> zdman135: ok, and what ar eyou trying to extract from it?
jenrzzz has joined #ruby
<zdman135> the array[0]['name']
<jhass> ponga: sqlite is great, for what it does and supports. It intentionally supports very little
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<ponga> thank you jhass and havenwood
<ponga> i need to do some postgresql then
SouL_|_ has joined #ruby
<zdman135> array[0]['elements'[0]['name']
<jhass> ponga: because you need concurrent writers or...?
<zdman135> toretore: I have to iterate through the thing grabbing every name and scenario
<ponga> jhass: concurrent writers
lidenskap has quit [Remote host closed the connection]
<toretore> zdman135: explain better
<ponga> many, many processes trying to write in single DB file
<toretore> zdman135: what is the desired end result?
pengin has quit [Remote host closed the connection]
ghr has joined #ruby
<zdman135> toretore: I need a hash, i'll put in the gist comment and repost link what i need
lidenskap has joined #ruby
uri_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
choke has joined #ruby
<toretore> zdman135: explain what you're trying to do, not what you think is the solution
<shevy> ponga I think sqlite3 is much slower for reading in a lot of SQL statements
<shevy> than postgresql
<toretore> as in "i have an array of features, each feature has an array of scenarios and i need to collect all scenario names"
weemsledeux has joined #ruby
decrypt has joined #ruby
<ponga> shevy: everyone seems to love postgresql, so mysql is bad?
<havenwood> shevy: numbers or it didn't happen!
<IceDragon> ponga: postgresql is da future O~O
<jhass> ponga: yes
<jhass> :P
<ponga> i always hear that
<toretore> mysql is fine
<toretore> just like a volvo is fine
<ponga> damn
<toretore> it's not a ferrari, but it's fine
<zdman135> toretore: I need to parse the json and find my test_name and test scenarios rough example: https://gist.github.com/zdman135/5db58025f540368e0498
<GaryOak_> Postgres is tried and true, yet at the same time, the future
kstuart has joined #ruby
<zdman135> toretore: unless there is an easier way in parsing json
<shevy> havenwood I tried 4 days ago with a 90 MB .sql file having one and a half million INSERT INTO statements
PhantomS_ has joined #ruby
decoponyo has joined #ruby
<shevy> after 3 days, it still was not finished
felixjet__ has joined #ruby
Hobogrammer_ has joined #ruby
<toretore> zdman135: the input is an array, but you only want one hash?
thumpba has joined #ruby
<shevy> the very same file, in a cluster at work (ok it's faster, more CPU more RAM), it took 30 minutes
matled- has joined #ruby
PaulCape_ has joined #ruby
<shevy> via postgresql
tercenya has joined #ruby
<zdman135> toretore: yes I want a hash for just that one json array
ebernhardson has joined #ruby
<zdman135> toretore: but I want to be able to build an array of hashes
agarie_ has joined #ruby
Asher2 has joined #ruby
<toretore> what if there are more hashes inside the array?
ItSANg___ has joined #ruby
<toretore> there we go, that's what i wanted to know
<toretore> you have an array of hashes, and you want an array of hashes as the end result
lidenska_ has joined #ruby
<ebernhardson> i'm new to rspec (and ruby) and inherited a test suite. There is a common pattern used, http://pastie.org/10122491, that i think could be done much better so the error message isnt 'expected: true got: false' but i'm not sure how i should rewrite it. What rspec features should i be considering?
mikecmpbll has joined #ruby
<[k-> seems like you just want to change the key names to me...
<zdman135> toretore: yeah, damn i didn't mean for it to get complicated, i thought it should be simple
davedev2_ has joined #ruby
iamninja_ has joined #ruby
andrew-l` has joined #ruby
<zdman135> [k-: some elements in the current json array are unnecessary, i guess i'm just trying to grab what I want and rebuild the thing
<toretore> zdman135: it is simple, as long as you explain properly
horsecow_ has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<shevy> I am a bit confused, someone help explain this please
<[k-> .select
<shevy> File.stat("text.txt").mode.to_s(8) # => "100644"
<shevy> is that number right? I can understand 0644 ... but 10 before that?
horsecow_ has quit [Remote host closed the connection]
<zdman135> [k-: so .select method can help me pick what i want in the current json array?
ahuman_ has joined #ruby
<[k-> yes
<ponga> i got postgres.app for testing out
rvchangue has quit [Ping timeout: 272 seconds]
<zdman135> let me play in irb and try it out
Gnubie__ has joined #ruby
dyce_ has joined #ruby
kedare` has joined #ruby
mleung_ has joined #ruby
<[k-> >> { name: "a", a: "b" }.select { |k, v| k == :name }
neanderslob_ has joined #ruby
<ruboto> [k- # => {:name=>"a"} (https://eval.in/321759)
<[k-> zdman135: ^
<zdman135> [k-: shit this is life changing
<toretore> zdman135: so what you want is: for each element in the array coming from json, pluck out the "name" and "description" attributes?
antgel has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 256 seconds]
PaulePan1er has joined #ruby
argoneus_ has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
DefV_ has joined #ruby
mosez has joined #ruby
<zdman135> toretore: pretty much
dumdedum_ has quit [Quit: foo]
jsaak_ has joined #ruby
tommylom1ykins has joined #ruby
ericwood has joined #ruby
<[k-> [:name, :description].include? k
<zdman135> toretore: and rebuild it into a new array i guess or pass it to an http request
patteh_ has joined #ruby
evident_ has joined #ruby
jblancet1 has joined #ruby
zotherst1pidguy has joined #ruby
pleiosaur has joined #ruby
<toretore> zdman135: ary.map{|h| {name: h['name'], description: h['description']} }
marcellu1 has joined #ruby
<zdman135> thanks i have to give this all a shot
kloeri_ has joined #ruby
`scootaloo has joined #ruby
<zdman135> i was sorta going about this the hard way
<zdman135> i guess
nux443_ has joined #ruby
<[k-> :o such succinct
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zdman135> toretore: so will it automatically iterate through the entire array?
j_mcnally has joined #ruby
<zdman135> cause i was doing a while loop before forcing it to go through each element in the array
<[k-> yes, map is upgraded version of each
<toretore> curl -sg https://gist.githubusercontent.com/zdman135/5db58025f540368e0498/raw/f9093e1c283d38c3c2a95abb44a03a48fc8931dd/gistfile1.txt | ruby -rjson -e'p JSON.parse(STDIN.read).map{|h| {name: h["name"], description: h["description"]} }'
<toretore> [{:name=>"test feature name", :description=>"\nIn order to test\nas a tester\nI want to test"}]
Prira_ has joined #ruby
<zdman135> oh ok
dopie has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<toretore> zdman135: if you're going to be doing this a lot you should be learning ruby basics like iteration
<zdman135> toretore: I am learning ruby basics
horsecow_ has joined #ruby
<[k-> .each, .map, .reduce, ...
<zdman135> toretore: I'm a beginner just trying to do some basic stuff
aef_ has joined #ruby
loadhigh1 has joined #ruby
loadhigh1 has quit [Client Quit]
x1337807x has joined #ruby
elaptics` has joined #ruby
psyprus has joined #ruby
jhass|off has joined #ruby
dhruvasagar has joined #ruby
davidcelis_ has joined #ruby
RandyT_ has joined #ruby
Matadoer_ has joined #ruby
AlHafoudh_ has joined #ruby
kadoppe_ has joined #ruby
lifenoodles_ has joined #ruby
tekk has joined #ruby
sjohnsen has joined #ruby
sindork_ has joined #ruby
tomaw_ has joined #ruby
TheMoonMaster_ has joined #ruby
NightMonkey_ has joined #ruby
akkad_ has joined #ruby
sinkensabe has joined #ruby
<[k-> you'll get it eventually
bakingbread has joined #ruby
mr_rich102 has joined #ruby
philtr_ has joined #ruby
<[k-> i use codewars to look at other people's solutions and learn from them
zotherstupidguy has quit [*.net *.split]
horsecowdog has quit [*.net *.split]
doodlehaus has quit [*.net *.split]
thumpba_ has quit [*.net *.split]
decoponio has quit [*.net *.split]
loadhigh has quit [*.net *.split]
selu has quit [*.net *.split]
argoneus has quit [*.net *.split]
chishiki has quit [*.net *.split]
dumdedum has quit [*.net *.split]
DylanJ has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
Silent__ has quit [*.net *.split]
aef has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
ReK2WiLdS has quit [*.net *.split]
tercenya_ has quit [*.net *.split]
davidcelis has quit [*.net *.split]
DexterLB has quit [*.net *.split]
Matadoer has quit [*.net *.split]
marienz has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
jhass has quit [*.net *.split]
nux443 has quit [*.net *.split]
dhruvasagar_ has quit [*.net *.split]
tekku has quit [*.net *.split]
evident has quit [*.net *.split]
marcellus has quit [*.net *.split]
rgs_ has quit [*.net *.split]
thomas has quit [*.net *.split]
elaptics_away has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
DanKnox has quit [*.net *.split]
mosez_ has quit [*.net *.split]
icedp has quit [*.net *.split]
jerryberry_ has quit [*.net *.split]
jsaak has quit [*.net *.split]
andrew-l has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
brixen has quit [*.net *.split]
jblancett has quit [*.net *.split]
AlHafoudh has quit [*.net *.split]
chiel has quit [*.net *.split]
xybre has quit [*.net *.split]
snapcase has quit [*.net *.split]
sjohnsen- has quit [*.net *.split]
lidenskap has quit [*.net *.split]
PhantomSpank has quit [*.net *.split]
\13k has quit [*.net *.split]
maletor has quit [*.net *.split]
mleung has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
kedare has quit [*.net *.split]
agarie has quit [*.net *.split]
jobewan has quit [*.net *.split]
iamninja has quit [*.net *.split]
kadoppe has quit [*.net *.split]
kloeri has quit [*.net *.split]
dudedudeman has quit [*.net *.split]
Asher has quit [*.net *.split]
neanderslob has quit [*.net *.split]
moted has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
adaedra has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
lifenoodles has quit [*.net *.split]
matled has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
philtr has quit [*.net *.split]
dyce has quit [*.net *.split]
RandyT has quit [*.net *.split]
akkad has quit [*.net *.split]
patteh has quit [*.net *.split]
kstuart_ has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
Prira has quit [*.net *.split]
pleiosau1 has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
luluapple has quit [*.net *.split]
ahuman has quit [*.net *.split]
DefV has quit [*.net *.split]
sweeper has quit [*.net *.split]
sindork has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Senjai has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
tomaw has quit [*.net *.split]
serivich has quit [*.net *.split]
dvlwrk has quit [*.net *.split]
bMalum has quit [*.net *.split]
fryguy91 has quit [*.net *.split]
havenwood has quit [*.net *.split]
umgrosscol has quit [*.net *.split]
alex88 has quit [*.net *.split]
BTRE has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
pygospa has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
IceDragon has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
mcpierce has quit [*.net *.split]
tskogber1 has quit [*.net *.split]
alex88_ has joined #ruby
z3uS has quit [*.net *.split]
CaptainCibai has quit [*.net *.split]
tchebb has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
yokel has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
maloik has quit [*.net *.split]
mleung_ is now known as mleung
jhass|off is now known as jhass
akkad_ is now known as akkad
AlHafoudh_ is now known as AlHafoudh
sinkensabe has quit [Write error: Broken pipe]
matled- is now known as matled
NightMonkey_ is now known as NightMonkey
yokel_ has joined #ruby
sweeper has joined #ruby
Kilo`byte has joined #ruby
dopie has quit [Client Quit]
<shevy> how do you guys feel about designing a class as a datastructure first
loadhigh has joined #ruby
yokel_ is now known as yokel
argoneus_ is now known as argoneus
<[k-> what do you mean by datastructure :o
brixen_ has joined #ruby
umgrosscol has joined #ruby
<shevy> for instance, I am grabbing all relevant entries equivalent to "ls -la" or something like that right now through ruby
JimmyNeutron has joined #ruby
DanKnox_ has joined #ruby
chiel_ has joined #ruby
ReK2GnULinuX has joined #ruby
havenwood has joined #ruby
jonathanwallace has joined #ruby
sanguisdex has joined #ruby
tskogber1 has joined #ruby
IceDragon has joined #ruby
bMalum has joined #ruby
CaptainCibai has joined #ruby
ByronJohnson has joined #ruby
mcpierce has joined #ruby
maloik has joined #ruby
pygospa has joined #ruby
fryguy91 has joined #ruby
Skelz0r has joined #ruby
z3uS has joined #ruby
BTRE has joined #ruby
tchebb has joined #ruby
stonecolddevin has joined #ruby
dvlwrk has joined #ruby
Nirgali42 has joined #ruby
<shevy> and that seems much simpler to start with than my earlier approach, where I went into designing commandline-instructions to that first
ndrei has joined #ruby
ReK2GnULinuX is now known as Guest99467
DanKnox_ is now known as DanKnox
tomaw_ is now known as tomaw
Soda has joined #ruby
alex88_ has quit [Ping timeout: 272 seconds]
Stalkr has joined #ruby
rgs has joined #ruby
<[k-> ORM?
<shevy> hmm
<[k-> Struct?
spyderman4g63 has joined #ruby
pengin has joined #ruby
<IceDragon> [k-: PORO!
xybre has joined #ruby
dumdedum has joined #ruby
jobewan has joined #ruby
Spami has quit [Quit: Leaving]
jerryberry_ has joined #ruby
marienz has joined #ruby
<[k-> Plain Old Ruby Objects?
<IceDragon> yup
chishiki has joined #ruby
<IceDragon> what are we talking about though
<IceDragon> I kinda got net split :(
Senjai has joined #ruby
Sou|cutter has joined #ruby
quimrstorres has quit [Remote host closed the connection]
slash_nick has joined #ruby
<zdman135> toretore: how do i take your example and make everything inside the steps array to .map into a value inside of feature_array?
<zdman135> toretore: with your current example its good it just makes a bunch of arrays but I won't be able to tell what is what
<[k-> 01:47:49 shevy: how do you guys feel about designing a class as a datastructure first
<havenwood> [k-: "ORM".chars.shuffle.join #=> "ROM"
<[k-> 01:49:36 shevy: for instance, I am grabbing all relevant entries equivalent to "ls -la" or something like that right now through ruby
dudedudeman has joined #ruby
Coraline has joined #ruby
<xxneolithicxx> instance variables are case sensitive in ruby right?
Coraline has left #ruby ["Zoom zoom"]
<[k-> yes
frem has joined #ruby
<[k-> all variables are case sensitive
PaulePan1er is now known as PaulePanetr
<havenwood> xxneolithicxx: we're case sensitive to them being lower case ;)
PaulePanetr is now known as PaulePanter
<shevy> [k- yeah right now I am just storing all relevant things in one monster hash
<xxneolithicxx> just wanted to double check so i didnt do something dumb
marr has quit [Ping timeout: 245 seconds]
<havenwood> xxneolithicxx: snake_case, no headlessCamels
<[k-> { { attr: 'reweaeawrw', ... }, { attr: ... }, ... } ?
<xxneolithicxx> but i was probably half way there with a dumb question second guessing myself
Alina-malina has quit [Quit: Leaving]
thatslifeson has quit [Remote host closed the connection]
zotherst1pidguy has quit [Ping timeout: 252 seconds]
<[k-> headlesscamels = all lowercase
<[k-> obv havenwood likes to express things differently
<[k-> first i had heard of it
<havenwood> [k-: headlessCamelCase as opposed to CamelCase
loadhigh has quit [Ping timeout: 264 seconds]
<[k-> that is lowerCamelCase ...
zotherstupidguy has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
Coraline has joined #ruby
Coraline has left #ruby ["Zoom zoom"]
loadhigh has joined #ruby
<shevy> [k- yeah sort of. though I think... I will use the default display of ls
<havenwood> [k-: well, that doesn't sounds like the monstrosity that it is in Ruby, so headlessCamelCase is more appropriate if overly polite for the offense.
<IceDragon> net split, followed by my router tripping
<shevy> -rwxr-xr-x 1 root root 2.4K Apr 30 18:04 main.rb
<IceDragon> -,-; fml
<shevy> drwxr-xr-x 2 root root 4.0K Apr 12 02:32 Modules/
<shevy> hmm I forgot what is the number 1 and 2 there...
ramfjord has joined #ruby
<[k-> You can use a struct to represent the data
<IceDragon> hey shevy, what ya wreking?
<shevy> structs scare me
<[k-> structs are just classes
<[k-> or the other way round ¯\_(ツ)_/¯
<IceDragon> shevy: Your not the only one, Class.new scares the shit out of me as well
thatslifeson has joined #ruby
<shevy> IceDragon I am trying to change some old class
<IceDragon> shevy: Can I see?
<IceDragon> O:
<IceDragon> CAN I
<IceDragon> PLS
<shevy> does Hash have a .to_struct ?
<IceDragon> I PROMISE I WONT BREAKZ IT
<IceDragon> shevy: you can abuse OpenStruct for that :3
RegulationD has quit [Remote host closed the connection]
<shevy> IceDragon no it already is broken right now, that is why I am trying to fix it :)))
<IceDragon> shevy: OpenStruct.new(my_hash) #=> insta
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> aha
<shevy> that seems cool but
<IceDragon> shevy: warning, this doesn't magical convert sub hashes
<[k-> OpenStruct is slower than Struct
<shevy> why is this OpenStruct and not struct
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> [k-: Ask a Struct if it's a Class and ask a Class if it's a Struct.
<[k-> OpenStruct is a library in stdlib
<Senjai> Good day ruby
<[k-> there is StructClass :D
<shevy> :\
<IceDragon> shevy: Because you can add new properties to it at runtime :P
<havenwood> Senjai: g'morn
<shevy> ok so I should use Struct then
<[k-> OpenStruct has more features than Struct tho
<shevy> because it is faster
c_nick has joined #ruby
<IceDragon> >> Struct.class
<ruboto> IceDragon # => Class (https://eval.in/321774)
<shevy> damn
<shevy> Struct.new hash
<shevy> does not work
<IceDragon> >> Struct.kind_of?(Class)
<ruboto> IceDragon # => true (https://eval.in/321775)
<IceDragon> >> Class.kind_of?(Struct)
<ruboto> IceDragon # => false (https://eval.in/321776)
<[k-> point demonstrated
DylanJ has joined #ruby
gmas has joined #ruby
<[k-> look up the docs on Struct, shevy
<zdman135> so one last question, I updated my gist - https://gist.github.com/zdman135/5db58025f540368e0498 I now have 2 elements in my array and not one, how do I do a .map to iterate on the array but keeping the 2 elements apart? I need to iterate through one and then iterate through the 2nd element
<IceDragon> shevy: you could use; s = Struct.new(*hash.keys); hash.each { |key, value| s.send("#{key}=", value) }
<havenwood> shevy: An OpenStruct is fancier than a Hash which is fancier than a Struct which is fancier than a Class which is fancier than a Module which is fancier than an Object which is fancier than a BasicObject.
<havenwood> shevy: Then it's turtles the rest of the way down.
<IceDragon> shevy: ah, actually, you'd need to create an instance of the struct you just made ;3
nobitanobi has quit [Remote host closed the connection]
* [k- gets afk
<IceDragon> shevy: so its actually just: data_klass = Struct.new(*hash.keys); s = data_klass.new(hash)
zotherstupidguy has quit [Ping timeout: 245 seconds]
<Senjai> >> Struct.new.new
<ruboto> Senjai # => wrong number of arguments (0 for 1+) (ArgumentError) ...check link for more (https://eval.in/321777)
<shevy> right
zotherstupidguy has joined #ruby
<shevy> I am sold on OpenStruct then
<Senjai> IceDragon: NO
diegoaguilar has joined #ruby
<Senjai> Virtus is bad
<shevy> I prefer OpenStruct now IceDragon
<IceDragon> Okie :3
<IceDragon> Senjai: Elaborate, or I'm not sold.
psy has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
<havenwood> shevy: Use the least fancy that well suits your purpose. Or just live a little until it's too slow!
nobitano_ has joined #ruby
ascarter has joined #ruby
<Senjai> IceDragon: OccamsRazor, 90% of its benefit (besides defaults) can be done cleanly and concisely with structs. ANd you dont need a DSL to create atttr_methods, nor do we embrace static typing in ruby.
<havenwood> shevy: I say that, but it's not like you want to use a Class when a Hash suffices. Not just a linear order. All these things!
sargas has joined #ruby
McRae has joined #ruby
doertedev has quit [Quit: Lost terminal]
duderonomy has joined #ruby
<c_nick> I am spawning multiple threads and in those i am writing to a SQLite3/MySQL database... there are 56 threads which are spawned at one time and there are upto 20 such iterations.
<c_nick> I keep getting sqlite3error as concurrency becomes an issue. What could be the best way to implement such a mechanism
<IceDragon> Senjai: And what if I want static typing in my ruby hmmm?
<Senjai> IceDragon: Get out of my ruby and go use statically-typed-language-here
<Senjai> :P
<shevy> havenwood you are confusing me a lot today
nobitano_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<IceDragon> Senjai: And I prefer to build my classes from ground up, screw Struct
<havenwood> shevy: Uh oh!
<Senjai> IceDragon: We have a way to do that. class Thing; def a_method; end; end
<Senjai> #themoreyouknow
<IceDragon> Senjai: Struct's don't have formal constant names, so you get screwed over in backtraces when you can't figure which class did what
<shevy> who is the guilty class
<IceDragon> and inheriting from a Struct looks F***ing ugly
atmosx has joined #ruby
<atmosx> hello
<Senjai> IceDragon: Don't use them when you shouldn't use them then :P
<Senjai> I very rarely, VERY rarely use structs instead of proper classes
<IceDragon> Senjai: Which is never!
<Senjai> Like count on one hand rarely
<havenwood> shevy: Write a script to convert a Struct to an OpenStruct or an OpenStruct to a Hash.
<Senjai> You should also never use Virtus models.
<IceDragon> Senjai: I don't, I just layed it out as an alternative 3:
<IceDragon> Senjai: And you can't stop me either, I have my own Virtus models like thing
<havenwood> shevy: Then make it optionally recursive.
scripore has joined #ruby
<IceDragon> havenwood: You can do OpenStruct to hash using #each_pair.to_h
Nimf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> havenwood something is strange today with you
nobitanobi has joined #ruby
mdarby has joined #ruby
<havenwood> IceDragon: Or just: to_h
<IceDragon> havenwood: nah, I thinkk OpenStruct will eat the #to_h
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> or not
* IceDragon bows
<IceDragon> you win this round havenwood
* IceDragon scurries back into his cave
blackmesa has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
naftilos76 has joined #ruby
freerobby has joined #ruby
jlast has joined #ruby
diegoaguilar has joined #ruby
<shevy> damn
PhantomS_ has quit [Read error: Connection reset by peer]
<shevy> you are in the sex cave
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> something strange with havenwood? You mean more than normal? :P
PhantomSpank has joined #ruby
doodlehaus has joined #ruby
<havenwood> All is found out?
* havenwood flees.
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
* [k- is back
Matachines has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
PhantomS_ has quit [Read error: Connection reset by peer]
Matachines has joined #ruby
pdoherty has quit [Quit: Leaving]
PhantomSpank has joined #ruby
A205B064 has joined #ruby
<[k-> Frankly I nvr used OpenStruct before
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
<[k-> also, the lib is 'ostruct'
lkba has joined #ruby
<havenwood> shevy: It's trivial to convert a Hash or Struct to an OpenStruct and also to convert a Struct or OpenStruct to a Hash. So converting a Hash or OpenStruct to a Struct would be the exercise. Or recursively doing each.
<havenwood> shevy: Like Hash#to_struct, for example :) https://gist.github.com/havenwood/6350198
<IceDragon> [k-: I abuse OpenStruct for command line arguments
towski_ has quit [Quit: Leaving...]
Joffily has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoaguilar has quit [Ping timeout: 272 seconds]
<[k-> >> Customer = Struct.new("Customer", :id, :bank_account, :pin, :money); frank = Customer.new(02, "049a-DE33-J2a0-Pn42", 9943, 0)
<ruboto> [k- # => #<struct Struct::Customer id=2, bank_account="049a-DE33-J2a0-Pn42", pin=9943, money=0> (https://eval.in/321785)
Pumukel has joined #ruby
rbennacer has joined #ruby
<[k-> >> Customer = Struct.new("Customer", :id, :bank_account, :pin, :money); frank = Customer.new(02, "049a-DE33-J2a0-Pn42", 9943, 0); frank.money
<ruboto> [k- # => 0 (https://eval.in/321786)
<[k-> there
<[k-> it gives context
<shevy> your code also looks alien havenwood :(
<havenwood> shevy: OpenStruct's use of method_missing is far from performance friendly. But it's easy to use!
<[k-> it uses refinements!
<havenwood> shevy: Shhh. I'm a worldlander like you!
<IceDragon> O: REFINEMENTS
PhantomS_ has quit [Read error: Connection reset by peer]
* IceDragon praises
\13k has joined #ruby
PhantomSpank has joined #ruby
<[k-> havenwood's code
<[k-> look
<Senjai> I shun openstructs everywhere
workmad3 has joined #ruby
<Senjai> #properinterfacesftw
<IceDragon> Senjai.shun!
<Senjai> IceDragon: You got it!
tonyhb has quit [Quit: peace]
fgo has joined #ruby
<[k-> Senjai.shunned!
edwinvdgraaf has joined #ruby
<[k-> oooooooo
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceDragon> const_get("[k-").shun?
diegoaguilar has joined #ruby
<IceDragon> Your name would break the poor interpreter :(
jottr has joined #ruby
<[k-> hehe
<Senjai> His name makes tab completing hard, who wants to type [
<Senjai> really
<Senjai> So I'll just never talk to him
<Senjai> >.> <.<
zdman135 has quit [Remote host closed the connection]
<IceDragon> Senjai.talk_to("[k-").force!
<[k-> no no no, Senjai.talk_to!("[k-")
<Senjai> ArgumentError: "[k-" is not cool enough
dreinull75 has quit [Remote host closed the connection]
<IceDragon> [k-: talk_to would return a Conversation object 3:
<[k-> talk_to! is an action!
<[k-> Senjai.talk("[k-").start!
RegulationD has joined #ruby
<shellfu> You nerds!
dreinull75 has joined #ruby
* shellfu is off to dust action figures
<shellfu> :)
<[k-> have fun sneezing
edwinvdgraaf has quit [Ping timeout: 252 seconds]
<shellfu> pffft swiffer locks in dust!
theotherstupidgu has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
<[k-> such dusty swiffer
diegoaguilar has quit [Ping timeout: 244 seconds]
zotherstupidguy has quit [Read error: Connection reset by peer]
<Senjai> this channel sometimes
<Senjai> I swear
zotherstupidguy has joined #ruby
rvchangue has joined #ruby
theotherstupidgu has joined #ruby
<shevy> :)
<IceDragon> Senjai: Its how we learn and kill time, when our heads are overloaded from work
allcentury has quit [Ping timeout: 256 seconds]
<shevy> down with the pants
<IceDragon> shevy: PULL YOUR PANTS UP
<IceDragon> shevy: This is a G-rated channel!
<shevy> :ascii_representation=>"-rwxr-xr-x"}
<shevy> my class works I think \o/
* IceDragon slaps with the pickaxe book
<Senjai> shevy: gist or it didn't happen
last_staff has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
<IceDragon> I say, it happened, but we will never know for sure...
piotrj has quit [Read error: Connection reset by peer]
Juanchito has quit [Quit: Connection closed for inactivity]
orionstein has quit [Quit: ZNC - http://znc.in]
<ninjs> Every time I try to transition to a node or similar backend I get so frustrated. I'm just spoiled by ruby. haha
<shevy> I am still missing something from "ls -al"
<Senjai> shevy: Question, why not shell out to ls?
orionstein has joined #ruby
<shevy> Senjai we are using ruby!
<ninjs> You can't even call .min/.max on an array of dates like you can in ruby. :O
<Senjai> but why... :( is my question
ghr has joined #ruby
<shevy> I dunno
<IceDragon> shevy: did you just multi-line block with { }
<IceDragon> for shame!
<Senjai> #wheelreinventing :P
<shevy> oh yeah
<shevy> IceDragon my convention is the ruby parser!
<apeiros> pshee, #wheelreinventing… come to #extremewheelreinventing!
<shevy> it's like people who do: def foo bar versus def foo(bar)
<shevy> havenwood is parenless
<IceDragon> ninjs: I know right, ruby just has all these convenient methods, like stuff in Enumerable, which makes working with collections a breeze
<fowl> theres a reason to use parens
<fowl> def foo() end vs def foo; end
reinaldo_ has joined #ruby
<shevy> fowl is back!
<IceDragon> O:
Dreamer3 has quit [Remote host closed the connection]
<IceDragon> Hmm, chicken
<shevy> dragon
<ytti> parenthesis killed my parents, triggered
<ytti> i never use 'em
<shevy> lol
<ninjs> IceDragon: For real. O
* IceDragon drags fowl to the frying pan
<shevy> now that was funny
baroquebobcat has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<ninjs> I'm not sure why people want to use javascript on the server... everyone should just come back to ruby. It's wonderful here
<Papierkorb> I'm not sure why people *want* to use JS in general
<IceDragon> ninjs: "But but, javascript has like a library for everything"
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ninjs> Papierkorb: I can see it only for the cool design stuff in front-end webby stuff
c_nick1 has joined #ruby
<IceDragon> >_>;
piotrj_ has quit [Remote host closed the connection]
<Papierkorb> Fuck I'd rather write a OS kernel in Java than dealing with that crap
<ninjs> IceDragon: not for doing min/max on an array of dates
FernandoBasso has joined #ruby
<IceDragon> ninjs: it probably exists, you just need to sift through the thousands upon thousands of oddly named packages
<ninjs> I was moving along just swimmingly porting a server method from ruby to coffeescript.. until I tried to call .min/.max on an array of dates. And couldn't. And no one had a solution
ergodicsum has quit [Quit: Page closed]
ghr has quit [Ping timeout: 255 seconds]
reinald__ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<IceDragon> ninjs: maybe "underscore" has something
PhantomSpank has joined #ruby
<IceDragon> or whatever the F*** the new one is called
<ninjs> well, the solution was converting each date string to a number then doing Math.min on the numbers, then converting back into dates
<[k-> opal
<IceDragon> eww?
c_nick has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
<Papierkorb> Dates and every language having to do with Java one way or the other is always a mixture which doesn't work
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> (new Date()).toString(); - Some browsers do UTC, others local time. Absolutely fantastic
PhantomSpank has joined #ruby
<ninjs> Right? browsers are the worst application runtime ever
<ninjs> Widely distributed, no version control, no standardrs
Cust0sL1men has joined #ruby
<Papierkorb> well they read the standard, then tweet #yolo and just not follow it
woodruffw_ has joined #ruby
reinaldo_ has quit [Ping timeout: 252 seconds]
Dakuan has joined #ruby
<ninjs> Chrome is the closest thing to a savior we have.. so far I've just told everyone to use chrome for everything I make and it seems to work out
<ninjs> don't even get me started on mobile safari though
freerobby has quit [Quit: Leaving.]
<IceDragon> I keep forgetting browsers other than chrome and firefox exist
<IceDragon> 3;
<[k-> yolo but everybody uses u so your live is * 7bil
<[k-> life*
jtdowney has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0m0 has quit [Ping timeout: 264 seconds]
alex88 has joined #ruby
noname has joined #ruby
jenrzzz has joined #ruby
woodruffw has quit [Ping timeout: 264 seconds]
<skyjumper> what's a good way to raise an exception with 2 different error texts... one for the system/logging, and one for the user?
<cek> tyring to get value of FFI pointer. Having no luck. attach_function :zmq_version, [ :pointer, :pointer, :pointer ], :void
piotrj has joined #ruby
<[k-> logging 2 exceptions
blackmesa has joined #ruby
j_mcnally has joined #ruby
<[k-> one in stderr maybe, another in a dialog
j_mcnally has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
joe_meade has joined #ruby
alex88 has quit [Ping timeout: 245 seconds]
kadoppe_ has quit [Ping timeout: 265 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> >> 10.hours
<ruboto> tejasmanohar # => undefined method `hours' for 10:Fixnum (NoMethodError) ...check link for more (https://eval.in/321792)
<tejasmanohar> oh so can you do 10.hours, 10.minutes etc in normal ruby or is that only in rails?
piotrj has quit [Ping timeout: 244 seconds]
<apeiros> tejasmanohar: `undefined method `hours' for 10:Fixnum` tells you that you can't
<tejasmanohar> apeiros: hm know of any packages that implement these time things in ruby
<tejasmanohar> without rails
Dakuan has quit [Remote host closed the connection]
<havenwood> tejasmanohar: Cherry pick from ActiveSupport or there are other gems.
<apeiros> tejasmanohar: activesupport
<[k-> yucks
<IceDragon> tejasmanohar: probably some time fancy gem, like time-lord
<[k-> such large
<[k-> much bloat
kadoppe has joined #ruby
<tejasmanohar> ah gotcha
tejasmanohar has quit [Client Quit]
allcentury has joined #ruby
<IceDragon> [k-: you forgot to say wow
Dakuan has joined #ruby
Spami has joined #ruby
platzhirsch has quit [Quit: Leaving.]
dblessing has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
<[k-> many wow
<atmosx> this 'volt' framework looks very promising.
NinjaOps has quit [Quit: Konversation terminated!]
<[k-> yes, its gaining popularity
piotrj has joined #ruby
<IceDragon> atmosx: volt, desu?
<[k-> lol he doesnt know
<atmosx> IceDragon: http://voltframework.com
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
<IceDragon> [k-: sorry for not being edgy
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<IceDragon> sinatra gets the job done for me, so P:
<[k-> youtube ruby conference by confreaks
<atmosx> [k-: well, if Opal can keep up, it will become popular. Writing ruby on both back and front-end is refreshing.
<[k-> there is a talk on volt
<atmosx> IceDragon: volt is supposed to be used for real time applications and folks who would like to use ruby instead of JS all over the place.
linduxed has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 256 seconds]
zotherstupidguy has joined #ruby
<IceDragon> atmosx: Oooh, cool, I still serve static pages >_>;;
<atmosx> IceDragon: for what? a blog? :-P
<IceDragon> yep
<IceDragon> jk, I don't have a blog
<atmosx> IceDragon: why not? :-)
SouL_|_ has quit [Ping timeout: 256 seconds]
marr has joined #ruby
<IceDragon> atmosx: I don't have the patience to keep and update a blog
rhllor has joined #ruby
<IceDragon> I'll probably write like 2 pages and then forget about it
<atmosx> IceDragon: I don't write as much as before and most of the times I'm too bored to properly review the text... but truth to be told I'm also out of time lately.
barkerd427 is now known as zz_barkerd427
<IceDragon> see, "ain't nobody got time for dat"
<atmosx> IceDragon: that said, I like to have a blog, but not as it currently is... I love the structure of Gwen's blog: http://www.gwern.net/index
<xxneolithicxx> we can rant for two pages on IRC but not to a blog that doesnt argue back. We should give it AI.
<atmosx> IceDragon: well the content is amazing too, but I've read only a small portion to date.
<IceDragon> neat, I can nab a topic without looking through dates like a madman
phutchins has quit [Ping timeout: 255 seconds]
sargas has quit [Quit: Leaving]
willharrison has joined #ruby
psy has quit [Ping timeout: 272 seconds]
Cust0sL1men has quit [Ping timeout: 272 seconds]
theotherstupidgu has quit [Ping timeout: 264 seconds]
<IceDragon> xxneolithicxx: Except I don't rant that often
<IceDragon> 3x
psy has joined #ruby
Papierkorb_ has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
<xxneolithicxx> i guess thats why you dont blog then :-P
zotherstupidguy has joined #ruby
zz_barkerd427 is now known as barkerd427
<xxneolithicxx> if they arent being used as a personal wiki, its normally just a bunch of rants
bMalum has quit [Ping timeout: 240 seconds]
theotherstupidgu has joined #ruby
<willharrison> any people here from orlando? was trying to see if there is a ruby users group irc channel
bMalum has joined #ruby
thumpba has quit []
<IceDragon> ah, welcome to #ruby O:
iamjarvo has joined #ruby
<IceDragon> xxneolithicxx: Yeah, I'm not smart enough to have a wiki, or rant that often to well... rant :(
Papierkorb has quit [Ping timeout: 256 seconds]
nfk|laptop has joined #ruby
gizmore has joined #ruby
woodruffw_ is now known as woodruffw
Alina-malina has joined #ruby
omosoj has joined #ruby
c_nick1 has left #ruby [#ruby]
chipotle has quit [Quit: cheerio]
ndrei has joined #ruby
theotherstupidgu has quit [Ping timeout: 276 seconds]
<c355E3B> willharrison, ive found a lot of that stuff over meetup.com
piotrj has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 272 seconds]
<willharrison> c355E3B yeah, I found some meetups, but I didn't see any irc channels listed other than one for a LUG
theotherstupidgu has joined #ruby
<c355E3B> ah
ismaelga has quit [Remote host closed the connection]
linduxed has joined #ruby
barkerd427 is now known as zz_barkerd427
Kricir has quit [Remote host closed the connection]
dreinull75 has quit [Remote host closed the connection]
lidenska_ has quit [Remote host closed the connection]
dreinull75 has joined #ruby
yfeldblum has joined #ruby
allcentury has joined #ruby
lidenskap has joined #ruby
last_staff has joined #ruby
ponga has quit [Quit: Leaving...]
pengin has quit [Remote host closed the connection]
ponga has joined #ruby
zz_barkerd427 is now known as barkerd427
kyrylo_ has joined #ruby
ponga has quit [Client Quit]
chipotle has joined #ruby
SouL_|_ has joined #ruby
pengin has joined #ruby
wallerdev_ has joined #ruby
linduxed has quit [Ping timeout: 264 seconds]
hgl has quit [Ping timeout: 256 seconds]
wallerdev has quit [Read error: Connection reset by peer]
wallerdev_ is now known as wallerdev
lidenskap has quit [Ping timeout: 245 seconds]
mdarby has quit [Max SendQ exceeded]
kyrylo has quit [Ping timeout: 265 seconds]
xMopxShell has quit [Ping timeout: 256 seconds]
danshultz has quit [Ping timeout: 256 seconds]
mdarby has joined #ruby
theotherstupidgu has quit [Ping timeout: 244 seconds]
glcx has quit [Ping timeout: 256 seconds]
danshultz_ has joined #ruby
DexterLB has joined #ruby
hgl has joined #ruby
kenndel_ has joined #ruby
luluapple has joined #ruby
Lewix has joined #ruby
xMopxShell has joined #ruby
jeromelanteri has quit [Ping timeout: 245 seconds]
gizmore has quit [Ping timeout: 255 seconds]
synfin has joined #ruby
synfin_ has quit [Ping timeout: 256 seconds]
destructure has quit [Ping timeout: 256 seconds]
philtr_ has quit [Ping timeout: 256 seconds]
choke has quit [Ping timeout: 256 seconds]
edwardly has quit [Ping timeout: 256 seconds]
glcx has joined #ruby
Lewix_ has quit [Ping timeout: 256 seconds]
atomi has quit [Ping timeout: 256 seconds]
mrsolow has quit [Ping timeout: 256 seconds]
Kharma has quit [Ping timeout: 256 seconds]
theotherstupidgu has joined #ruby
thomas has joined #ruby
choke has joined #ruby
ascarter has joined #ruby
destructure has joined #ruby
Guest15 has joined #ruby
philtr has joined #ruby
colorados2 has quit [Read error: Connection reset by peer]
atomi has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
kloeri_ has quit [Read error: Connection reset by peer]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
JoshGlzBrk has joined #ruby
mrsolow has joined #ruby
kloeri has joined #ruby
Kharma has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
kenndel has quit [Ping timeout: 256 seconds]
JoshGlzBrk has quit [Client Quit]
tomphp has joined #ruby
Kruppe has joined #ruby
snapcase has joined #ruby
zzing has joined #ruby
ghr has joined #ruby
Hijiri has joined #ruby
hephaestus_rg has joined #ruby
wallerdev has quit [Quit: wallerdev]
irk has quit [Ping timeout: 255 seconds]
hgl has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 265 seconds]
Guest15 has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has quit [Remote host closed the connection]
hgl has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has joined #ruby
MasterPiece has joined #ruby
jimms has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linduxed has joined #ruby
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Matachines has joined #ruby
balazs_ has joined #ruby
j4nnis has joined #ruby
irk has joined #ruby
mengu has joined #ruby
jeromelanteri has joined #ruby
scripore has joined #ruby
PaulCape_ has quit [Quit: .]
baturay_ has joined #ruby
alex88 has quit [Ping timeout: 252 seconds]
PaulCapestany has joined #ruby
fgo has joined #ruby
slash_nick has quit [Ping timeout: 272 seconds]
<baturay_> hello I am having trouble when I run rspec. the kernal8require.rb cant find debugger. I am follwing the instruction on this git https://github.com/backpackerhh/cs169.1x-saas/tree/master/hw1
balazs_ has quit [Ping timeout: 264 seconds]
<baturay_> any ideas ?
<bricker> baturay_: if you're using ruby 2.x, debugger isn't available. Use pry or byebug or pry-byebug
allcentury has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
naftilos76 has quit [Remote host closed the connection]
endash has quit [Quit: endash]
Dakuan has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<baturay_> bricker, ty
kyrylo_ is now known as kyrylo
PhantomSpank has quit [Read error: Connection reset by peer]
kyrylo is now known as kyrylo__
PhantomSpank has joined #ruby
kyrylo__ is now known as kyrylo
pengin has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Ping timeout: 276 seconds]
theotherstupidgu has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
PhantomSpank has joined #ruby
zotherstupidguy has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dvlwrk has quit [Quit: Leaving]
barkerd427 is now known as zz_barkerd427
theotherstupidgu has joined #ruby
ADot has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
ramfjord has joined #ruby
Cust0sL1men has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
PhantomSpank has joined #ruby
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
bMalum has quit [Quit: bMalum]
FernandoBasso has quit [Ping timeout: 272 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PhantomSpank has quit [Read error: Connection reset by peer]
ponga has joined #ruby
Dakuan has joined #ruby
tjbiddle has joined #ruby
PhantomSpank has joined #ruby
yfeldblum has joined #ruby
jtdowney has joined #ruby
thatslifeson has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
PhantomSpank has joined #ruby
naftilos76 has joined #ruby
diegoaguilar has joined #ruby
dc__ has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwattste has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
jtdowney has quit [Quit: Textual IRC Client: www.textualapp.com]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk|laptop has quit [Quit: yawn]
lidenskap has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
PhantomS_ has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
Lewix has quit [Ping timeout: 244 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has joined #ruby
kyrylo has quit [Remote host closed the connection]
pragmatism has joined #ruby
kyrylo has joined #ruby
scotOSX has joined #ruby
PhantomSpank has joined #ruby
PhantomS_ has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: parting / quiting]
TheNet has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomS_ has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomS_ has quit [Read error: Connection reset by peer]
zotherstupidguy has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
PhantomSpank has joined #ruby
djbkd has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 256 seconds]
pragmatism has quit [Client Quit]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
theotherstupidgu has joined #ruby
hiyosi has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
workmad3 has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
horsecow_ has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
decoponyo has quit [Quit: Leaving...]
gaganjyot has quit [Quit: Leaving]
PhantomSpank has joined #ruby
theotherstupidgu has quit [Ping timeout: 255 seconds]
zotherstupidguy has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
ndrei has quit [Remote host closed the connection]
nahtnam has quit [Quit: Connection closed for inactivity]
Eiam_ has joined #ruby
dopie has joined #ruby
DerisiveLogic has joined #ruby
ndrei has joined #ruby
allcentury has joined #ruby
thatslifeson has joined #ruby
Rollabunna has quit [Remote host closed the connection]
PhantomSpank has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
ebernhardson is now known as ebernhardson|lch
PhantomSpank has joined #ruby
djbkd has joined #ruby
revoohc has quit [Quit: revoohc]
ADot has quit [Quit: Leaving.]
ghr has joined #ruby
Jackneill has quit [Ping timeout: 252 seconds]
cek has left #ruby [#ruby]
Rapier- has quit [Quit: (null)]
ramfjord has joined #ruby
rhllor has quit [Quit: rhllor]
Papierkorb_ has quit [Quit: Konversation terminated!]
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
kyrylo_ has joined #ruby
x1337807x has joined #ruby
Papierkorb has joined #ruby
kyrylo has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 255 seconds]
zotherstupidguy has joined #ruby
theotherstupidgu has joined #ruby
jwang has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
weemsledeux has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lordkryss has quit [Quit: Connection closed for inactivity]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
zotherstupidguy has quit [Ping timeout: 256 seconds]
ebernhardson|lch has quit [Ping timeout: 265 seconds]
willharrison has joined #ruby
zotherstupidguy has joined #ruby
Matachines has joined #ruby
bakingbread is now known as icedp
konsolebox has joined #ruby
McRae has quit [Ping timeout: 252 seconds]
theotherstupidgu has quit [Ping timeout: 272 seconds]
slash_nick has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
reinald__ has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
workmad3 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
theotherstupidgu has joined #ruby
baweaver has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
princesspeach3 has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<princesspeach3> hi! can someone in the rails channel invite me :)
<pipework> princesspeach3: register with nickserv
<pipework> #RubyOnRails
Brozo has joined #ruby
sanguisdex has quit [Quit: Leaving.]
icarus has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
dvlwrk has joined #ruby
arescorpio has joined #ruby
icarus has quit [Client Quit]
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
icarus has joined #ruby
momomomomo has joined #ruby
tjbiddle has quit [Ping timeout: 265 seconds]
scotOSX has quit [Quit: WeeChat 1.1.1]
glosoli has joined #ruby
glosoli has left #ruby ["Textual IRC Client: www.textualapp.com"]
vickleton has joined #ruby
willharrison has joined #ruby
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
discypher has joined #ruby
blackmesa has joined #ruby
naftilos76 has quit [Remote host closed the connection]
EagleDelta has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omosoj has quit [Ping timeout: 256 seconds]
omosoj has joined #ruby
adac has joined #ruby
GaryOak_ has joined #ruby
greenbagels has joined #ruby
Rollabunna has quit [Remote host closed the connection]
dreinull75 has left #ruby ["undefined"]
haidahaha has joined #ruby
kblake has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
ponga has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
crimeircd has joined #ruby
iamninja_ has quit [Quit: WeeChat 1.1.1]
zeroXten has left #ruby [#ruby]
kblake has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has joined #ruby
ponga has quit [Read error: No route to host]
workmad3 has quit [Ping timeout: 244 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[k- has quit [Quit: Lingo: www.lingoirc.com]
jenrzzz has quit [Ping timeout: 240 seconds]
jimms has quit [Client Quit]
sinkensabe has joined #ruby
baweaver has joined #ruby
ponga has quit [Read error: No route to host]
ch3f has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
endash has joined #ruby
ponga has joined #ruby
jlast has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
art-solopov has joined #ruby
alex88 has joined #ruby
ponga has quit [Read error: No route to host]
workmad3 has joined #ruby
ponga has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
TheMoonMaster_ is now known as TheMoonMaster
ismaelga has joined #ruby
mrdmi has joined #ruby
alex88 has joined #ruby
ponga has quit [Read error: No route to host]
redlegion has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
ponga has joined #ruby
Zamyatin has joined #ruby
ponga has quit [Read error: No route to host]
bluOxigen has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
ponga has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
OrbitalKitten has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Cust0sL1men has quit [Ping timeout: 272 seconds]
ponga has quit [Read error: No route to host]
Zamyatin has joined #ruby
dling has quit []
doodlehaus has quit [Remote host closed the connection]
ponga has joined #ruby
Hijiri has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
Zamyatin has quit [Max SendQ exceeded]
kblake has quit [Remote host closed the connection]
Zamyatin has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
zz_barkerd427 is now known as barkerd427
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
haidahaha has quit [Quit: haidahaha]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
allcentury has joined #ruby
McRae has joined #ruby
OtterCoder has joined #ruby
ponga has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ponga has joined #ruby
gfawcettpq has joined #ruby
sent1nel has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
jenrzzz has joined #ruby
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Read error: No route to host]
zotherstupidguy has quit [Ping timeout: 244 seconds]
theotherstupidgu has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
ponga has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
diegoaguilar has quit [Remote host closed the connection]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theotherstupidgu has joined #ruby
ponga has quit [Read error: Connection reset by peer]
jottr has quit [Quit: WeeChat 1.1.1]
ponga has joined #ruby
jottr has joined #ruby
chipotle has quit [Quit: cheerio]
redlegion has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
workmad3 has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
redlegion has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
iamninja has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
ponga has quit [Read error: No route to host]
gregf has joined #ruby
charliesome has joined #ruby
ponga has joined #ruby
sevvie has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
ebernhardson|lch has joined #ruby
panga has quit [Read error: No route to host]
scripore has quit [Quit: This computer has gone to sleep]
<mwlang> I’m loading data from an external provider’s feed. They provide descriptions of products marked up with HTML tags. I need to keep the tags, but remove styling classes and other non-essential styling markers like MARGIN=1.0 BORDER=1, etc. What’s the best way to go about this?
ponga has joined #ruby
<mwlang> I’m thinking Nokogiri, but perhaps there’s already a gem dedicated to this?
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
<mwlang> here’s an example: <p style="MARGIN: 0in 0in 0pt" class="MsoNormal"> should be reduced to <p>
charliesome has quit [Ping timeout: 256 seconds]
Dakuan has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
umgrosscol has quit [Quit: Quit]
<apeiros> mwlang: I doubt there's a gem doing that already. but should be fairly trivial with nokogiri.
ponga has joined #ruby
<GaryOak_> mwlang: you could also just strip all WORD="STUFFS" between <>
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> GaryOak_: regexp it away?
<apeiros> GaryOak_: don't. process. html. with. regex. bad idea.
fryguy91 has quit [Quit: Leaving.]
<GaryOak_> hmmm the crowd says no
ponga has quit [Read error: No route to host]
freerobby has quit [Quit: Leaving.]
<mwlang> apeiros: I was just thinking same thing…too many edge cases that nokogiri probably already handles.
<GaryOak_> Yeah on second thought, you end up having to check if stuff is in between the tags
jerius has quit [Quit: /quit]
ponga has joined #ruby
<apeiros> mwlang: with nokogiri, all you need is a method which removes all attributes you don't want, + traverse all nodes & apply that method
redlegion has quit [Quit: Fuck my life]
<apeiros> nokogiri already has a method to traverse all nodes
j_mcnally has joined #ruby
<mwlang> who the heck is Jon Skeet?
baturay_ has quit [Ping timeout: 256 seconds]
panga has joined #ruby
davedev24_ has quit []
paulcsmith has quit [Quit: Be back later ...]
panga has quit [Read error: No route to host]
airdisa has joined #ruby
Fingel has joined #ruby
redlegion has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
<GaryOak_> MS dev
<GaryOak_> He's the highest score person on StackOverflow
<mwlang> Funny… “Moderator's Note: The post looks exactly as it is supposed to look - there are no problems with its content. Please do not flag it for our attention.”
michael_mbp has quit [Excess Flood]
panga has quit [Read error: No route to host]
Hijiri has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
ponga has joined #ruby
SouL_|_ has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
ponga has quit [Read error: No route to host]
Matachines has joined #ruby
ponga has joined #ruby
lidenskap has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
slash_nick has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
panga has quit [Read error: No route to host]
badhatter has joined #ruby
badhatter has joined #ruby
ponga has joined #ruby
scripore has joined #ruby
omosoj is now known as sohrab
ponga has quit [Read error: No route to host]
coderhs has joined #ruby
<GaryOak_> mwlang: all that spooky unicode must have been spooking people
lidenskap has joined #ruby
<mwlang> GaryOak_: and sarcasm is often lost in translation. :-p
TheNet has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
dc__ has joined #ruby
ponga has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Quit: enebo]
ramfjord has joined #ruby
mistergibson has quit [Read error: Connection reset by peer]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
sent1nel has joined #ruby
<GaryOak_> Is there any currently still supported Web Scraping Engine in Ruby?
x1337807_ has joined #ruby
ebernhardson|lch is now known as ebernhardson
edwinvdgraaf has joined #ruby
<apeiros> GaryOak_: ruby-toolbox.com is good for such questions
<apeiros> I'd assume mechanize is still maintained
hutch78 has quit [Quit: hutch78]
ponga has quit [Read error: No route to host]
granthatcher_ has joined #ruby
<GaryOak_> I'm using Scrapy (Python) which is working well, but it's Python
ponga has joined #ruby
Stalkr has quit [Quit: Leaving...]
mistergibson has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
ponga has quit [Read error: No route to host]
alex88 has quit [Remote host closed the connection]
ponga has joined #ruby
agarie_ has quit [Ping timeout: 264 seconds]
nobitanobi has quit []
nobitanobi has joined #ruby
failshell has quit []
ponga has quit [Read error: No route to host]
McRae has quit [Ping timeout: 264 seconds]
dopie has joined #ruby
ponga has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
OtterCoder has quit [Remote host closed the connection]
OtterCoder has joined #ruby
ponga has joined #ruby
sohrab has quit [Quit: leaving]
rkazak has joined #ruby
grzywacz has joined #ruby
Oka has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
DerisiveLogic has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
panga has quit [Read error: No route to host]
scripore has quit [Quit: This computer has gone to sleep]
DerisiveLogic has joined #ruby
Matachines has joined #ruby
ponga has joined #ruby
<bricker> GaryOak_: what do you need to do, exactly? Nokogiri is great for scraping pages.
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<GaryOak_> It's a little larger scale than that, but I'm the only one working on it so I'm in the crazy programmer vacuumm
theotherstupidgu has joined #ruby
ponga has quit [Read error: No route to host]
iamjarvo has joined #ruby
ponga has joined #ruby
Hijiri has joined #ruby
rkazak has quit [Ping timeout: 272 seconds]
Igorshp has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
kyrylo_ is now known as kyrylo
Miron has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
ebernhardson has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
crimeircd has left #ruby [#ruby]
<mwlang> well, I started writing the nokogiri walker/sanitizer and stopped and googled some more…this time I find the “sanitize” gem. Some quick testing of this and it looks like it’s gonna do the job.
<mwlang> it’ll even plug unclosed tags in with the missing closing tags as it sanitizes.
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
diegoviola has joined #ruby
<mwlang> https://github.com/rgrove/sanitize is the gem…
<GaryOak_> Nice
pwattste has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Miron has joined #ruby
roolo has joined #ruby
ponga has quit [Read error: No route to host]
thatslifeson has quit [Remote host closed the connection]
ponga has joined #ruby
qwertme has joined #ruby
pwattste has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
<mwlang> not sure I care about it turning &reg; into \u00AE (as well as other named entities), but that might be configurable.
wldcordeiro has quit [Ping timeout: 256 seconds]
ponga has quit [Read error: No route to host]
kblake has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
panga has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
ponga has joined #ruby
kblake has quit [Ping timeout: 250 seconds]
<hephaestus_rg> hello there
ponga has quit [Read error: No route to host]
<hephaestus_rg> i'd like to spawn a ruby server (thin for example) from inside another ruby script. it seems like i could do it with `back ticks` but how can i make sure the server lives and dies by the parent scripot
<hephaestus_rg> *script
shellfu is now known as shellfu_afk
sandstrom has joined #ruby
griffindy has joined #ruby
ponga has joined #ruby
juanpablo_ has quit [Quit: (null)]
wallerdev has quit [Quit: wallerdev]
thatslifeson has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
adac has quit [Ping timeout: 276 seconds]
ponga has quit [Read error: No route to host]
jarboot has joined #ruby
ponga has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ninjs> wow Volt does look really cool. Me likey. It's like a front-end js framework that you can write in beautiful, simple ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
casadei_ has quit [Remote host closed the connection]
crdpink has quit [Quit: q term]
spyderman4g63 has quit []
zotherstupidguy has quit [Ping timeout: 244 seconds]
sohrab has joined #ruby
zotherstupidguy has joined #ruby
ponga has quit [Read error: No route to host]
ghr has joined #ruby
icebourg has quit []
ponga has joined #ruby
pengin has quit [Remote host closed the connection]
crdpink has joined #ruby
OtterCoder has quit [Read error: Connection reset by peer]
ponga has quit [Read error: No route to host]
juanpablo__ has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
ponga has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
ponga has joined #ruby
juanpablo__ has joined #ruby
edwinvdgraaf has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Read error: Connection reset by peer]
yoni_ has joined #ruby
ponga has joined #ruby
joe_meade has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ponga has quit [Read error: No route to host]
equinox_ has quit []
ponga has joined #ruby
InceptION has joined #ruby
<InceptION> do you have to be gay to like ruby?
DerisiveLogic has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
juanpablo__ has quit [Ping timeout: 240 seconds]
DerisiveLogic has joined #ruby
ponga has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdg_ has joined #ruby
thatslifeson has quit [Remote host closed the connection]
moeabdol has joined #ruby
Matachines has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
ponga has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
spider-mario has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
ponga has joined #ruby
griffindy has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
griffindy has quit [Client Quit]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Read error: Connection reset by peer]
<gmas> InceptION: yes
ascarter has joined #ruby
ponga has quit [Read error: No route to host]
OrbitalKitten has quit [Client Quit]
sevvie has quit [Quit: leaving]
baweaver has joined #ruby
Musashi007 has joined #ruby
ponga has joined #ruby
<jhass> gmas: why do you feed :(
dfinninger has joined #ruby
<gmas> jhass: :( guilty
<pipework> jhass: Because trolls have to eat too.
<jhass> only trolls say that
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Read error: No route to host]
griffindy has joined #ruby
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has joined #ruby
<pipework> jhass: No one should go hungry.
<pipework> Do you disagree?
Channel6 has joined #ruby
<Brozo> hunger is strength
Hijiri has joined #ruby
<jhass> pipework: hungry for what?
bricker has joined #ruby
<Brozo> hungry for apples?
ponga has quit [Read error: Connection reset by peer]
<pipework> jhass: food.
<pipework> What else do you feed anything? Are you some kind of monster?
c355E3B has quit [Quit: Connection closed for inactivity]
<jhass> you didn't know yet?
j_mcnally has joined #ruby
scripore has joined #ruby
<pipework> Soylent?
Asher2 has quit [Quit: Leaving.]
<jhass> can Soylent really be considered food? probably not
ponga has joined #ruby
Asher has joined #ruby
<Brozo> soylent is food
mengu has quit [Remote host closed the connection]
<pipework> jhass: I think so if you count things that are edible, digestible, and contain nutritional value.
JDiPierro has joined #ruby
<jhass> reminds me, I'm hungry
<jhass> mmh
ponga has quit [Read error: No route to host]
<Brozo> lentils are great
[narcan] has joined #ruby
ponga has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
roolo has quit [Remote host closed the connection]
Pupeno has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
alex88 has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
Ropeney has joined #ruby
ponga has quit [Read error: No route to host]
x1337807x has joined #ruby
ponga has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
JDiPierro has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
ponga has joined #ruby
kblake has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Read error: No route to host]
alex88 has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
Pupeno has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
nswx has joined #ruby
<nswx> is it possible to backup ruby gems (rsync them somehow?)
ponga has joined #ruby
Pupeno has joined #ruby
<pipework> sure, they're just archive files.
jobewan has quit [Quit: Leaving]
ponga has quit [Read error: No route to host]
<nswx> pipework: but "gem list" does not list them after the transfer
qwertme has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
<pipework> nswx: so they'd need to be in your gem path, right?
<nswx> pipework: and how does it know which version should be used, if there are several of them?
PhantomSpank has joined #ruby
ponga has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nswx> pipework: yes, they're in my gem path
<pipework> nswx: I think it's either the earliest in the path or the latest. I haven't perused that bit of code, honestly.
<nswx> pipework: /usr/lib/ruby/gems/1.8/gems/ (CentOS5)
kblake has quit [Ping timeout: 272 seconds]
<nswx> pipework: but after rsync gem list does not show them
phutchins has joined #ruby
ponga has quit [Read error: No route to host]
swgillespie has joined #ruby
wallerdev has joined #ruby
Guest24 has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
pwattste has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nswx> ah, I see in docs:
<nswx> The -I argument adds your unpacked rake to the ruby $LOAD_PATH which prevents RubyGems from loading the gem version (or the default version). The -S argument finds rake in the shell’s $PATH so you don’t have to type out the full path.
<nswx> that might be related
ponga has quit [Read error: No route to host]
Pupeno has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
pwattste has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
charliesome has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
mrmargolis has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
zotherstupidguy has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
ponga has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
charliesome_ has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
ponga has quit [Read error: No route to host]
endash has quit [Quit: endash]
ponga has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
ismaelga has quit [Remote host closed the connection]
<vikaton> >> ["h","i"].reverse
<ruboto> vikaton # => ["i", "h"] (https://eval.in/321918)
RegulationD has joined #ruby
DerisiveLogic has joined #ruby
jack_rabbit has joined #ruby
ponga has quit [Read error: No route to host]
dopie has quit [Quit: This computer has gone to sleep]
ponga has joined #ruby
lele has joined #ruby
RegulationD has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
charliesome has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
zotherstupidguy has joined #ruby
hiyosi has joined #ruby
ismaelga has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nswx has quit [Quit: Page closed]
ponga has quit [Read error: No route to host]
iotouch has joined #ruby
ponga has joined #ruby
nii236 has joined #ruby
ponga has quit [Read error: Connection reset by peer]
dkphenom has joined #ruby
ponga has joined #ruby
baweaver has joined #ruby
ghr has joined #ruby
ponga has quit [Read error: No route to host]
kofione has joined #ruby
ponga has joined #ruby
fgo has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
ponga has quit [Read error: No route to host]
art-solopov has quit [Quit: Konversation terminated!]
iotouch has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
iotouch has joined #ruby
kofione has quit [Client Quit]
ponga has quit [Read error: No route to host]
ponga has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
juanpablo__ has joined #ruby
ponga has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
ponga has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
juanpablo__ has quit [Ping timeout: 240 seconds]
panga has joined #ruby
lrcezimbra has joined #ruby
MatthewsFace has joined #ruby
McRae has joined #ruby
dopie has joined #ruby
panga has quit [Read error: Connection reset by peer]
Hijiri has quit [Quit: WeeChat 1.0.1]
DerisiveLogic has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
ponga has joined #ruby
quazimodo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vickleton has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
ponga has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
DEA7TH has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
panga has joined #ruby
kyrylo has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panga has quit [Read error: No route to host]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Read error: No route to host]
princesspeach3 has quit [Remote host closed the connection]
blackgoat has quit [Quit: WeeChat 0.3.8]
allcentury has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
allcentury has joined #ruby
icarus has quit [Remote host closed the connection]
Sawbones has joined #ruby
ponga has quit [Read error: No route to host]
ponga has joined #ruby
<dorei> any unix expert here?
pwattste has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #ruby
<pipework> dorei: Just ask your question?
<dorei> why does system("stty -echo; tput u7; read -d R x; stty echo; echo ${x#??}") work fine, while the same thing in backticks just stucks?
ponga has quit [Read error: Connection reset by peer]
scripore has joined #ruby
sevenseacat has quit [Ping timeout: 272 seconds]
ponga has joined #ruby