apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || 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/ruby/
Palmer11 has quit [Quit: Palmer11]
ZergCoder has joined #ruby
ICantCook has left #ruby ["Leaving"]
creakybones has quit [Ping timeout: 272 seconds]
juanpaucar has joined #ruby
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
bogdanteleaga has joined #ruby
gustavn has quit [Read error: Connection reset by peer]
__chris has joined #ruby
casadei has quit [Remote host closed the connection]
tuelz has quit [Quit: WeeChat 1.1.1]
pwattstbd has joined #ruby
__chris has quit [Client Quit]
rubie has joined #ruby
sevenseacat has joined #ruby
DoubleMalt has joined #ruby
doublemalt_ has quit [Ping timeout: 264 seconds]
speakingcode has quit [Ping timeout: 246 seconds]
dorei has quit []
e1nh4nd3r has joined #ruby
dseitz has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
keen____________ has joined #ruby
keen___________ has quit [Ping timeout: 264 seconds]
bruno-_ has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
growlove has joined #ruby
xxneolithicxx has left #ruby [#ruby]
xxneolithicxx has joined #ruby
yh__ has quit [Ping timeout: 276 seconds]
mrmargolis has joined #ruby
davedev24_ has quit []
yh__ has joined #ruby
[1]master has joined #ruby
thiagovsk has joined #ruby
marr has quit []
[1]master is now known as master
vikaton has joined #ruby
mase-chatter has joined #ruby
uhsf has joined #ruby
fabrice31 has joined #ruby
tjbiddle has joined #ruby
iwishiwerearobot has joined #ruby
ZergCoder has quit [Remote host closed the connection]
ZergCoder has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<uhsf> I'm trying to solve a problem since a few hours. cannot load such file -- bundler/setup (LoadError). Using ruby 2.2.2, passenger and nginx. Please help.
djbkd has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Musashi007 has joined #ruby
<uhsf> the error page says RUBY_VERSION = 2.2.2 and RubyGems paths = ["~/.gem/ruby/2.2.0", "/usr/lib/ruby/gems/2.2.0"]
BTRE has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 272 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
<uhsf> RubyGems paths seems wrong. How to change it to ~/.gem/ruby/2.2.2?
<sevenseacat> its not wrong, thats the api version
<uhsf> sevenseacat: how to solve: cannot load such file -- bundler/setup (LoadError)?
<sevenseacat> install bundler?
yh__ has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
CHVNX has joined #ruby
yh__ has joined #ruby
Aswebb_ has joined #ruby
Azure has quit [Excess Flood]
<uhsf> sevenseacat: I have bundler installed in ~/.gem/ruby/2.2.2/gems/bundler-1.9.9 why passenger can't load it?
<sevenseacat> hmm
GriffinHeart has joined #ruby
growlove has quit [Remote host closed the connection]
Azure has joined #ruby
Dakuan has joined #ruby
shuber_ has quit [Ping timeout: 264 seconds]
<uhsf> sevenseacat: when using passenger directly in app directory it works fine.
<uhsf> sevenseacat: when using nginx it doesn't work
master has left #ruby [#ruby]
wildroman2 has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
<sevenseacat> i dont know, sorry mate.
Yzguy has quit [Quit: I'm sleeping, go away.]
rodfersou has quit [Remote host closed the connection]
Aswebb_ has quit [Ping timeout: 272 seconds]
Yzguy has joined #ruby
powersurge has joined #ruby
<shevy> uhsf I just installed bundler via gem
<shevy> in irb, I did this:
<shevy> require 'bundler/setup'
<shevy> and it works
<shevy> so you (a) either do not have it installed, or (b) have it installed somewhere where by default it can't be found
<shevy> I did not try user-install though
havenwood has joined #ruby
<powersurge> so in python if you have a tuple like ('foo', 'bar') you can do 'tuple unpacking' which is baz, foobar = ('foo', 'bar'). I know you can do similar in ruby with arrays but for the life of me I can't remember what ruby calls it
<powersurge> anyone able to jog my memory?
<shevy> but from my experience, user-installed gems work just as the normal system-installed gems too
<powersurge> not having success trying to google it
BTRE has joined #ruby
Matthews_ has joined #ruby
<shevy> I am not sure what this is
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
speakingcode has joined #ruby
<shevy> tuple unpack?
Dakuan has quit [Ping timeout: 276 seconds]
<powersurge> it's a pythonism that I was using to describe the behavior that ruby does
<powersurge> but in ruby
<powersurge> imagine this foo, bar = ['foo', 'bar']
<shevy> do you mean foo, var = *bla ?
<powersurge> foo # 'foo' and bar # 'bar'
<powersurge> yea that's ultimately the same behavior shevy
<shevy> >> foo, bar = *['foo', 'bar']; bar
<ruboto> shevy # => "bar" (https://eval.in/369787)
<powersurge> looking for the term for it in ruby because I wnated to know a little more about it, specifically if holes are allowed
<shevy> yeah googling for * is hard
<shevy> you may have more luck via symbol-hound for such weird method names
<powersurge> >> foo, bar = ['foo', 'bar']; bar
<ruboto> powersurge # => "bar" (https://eval.in/369789)
<powersurge> ^ looking for more detail on that behavior rather than the splat operator
<shevy> aha
<shevy> parallel assignment?
<powersurge> there's deffo a name for it, and it's on the tip of my tongue
<powersurge> maybe!
<powersurge> the term on my tongue is something like 'array decompression' or 'array deconstruction' or something...
<powersurge> I'll see if parallel assignment scratches my itch
<powersurge> ty
<shevy> well, if you mean to decompose an array then the * is the way to go
car has joined #ruby
MatthewsFace has quit [Ping timeout: 245 seconds]
<shevy> >> array = [1,2,3,4]; foo, *bar = array; bar
<ruboto> shevy # => [2, 3, 4] (https://eval.in/369790)
phutchins has quit [Ping timeout: 258 seconds]
<powersurge> the array I'll be decomposing/compressing/w/e will be known to be a pair
<powersurge> and if it's not a pair I don't mind the stuff after the first two elements becoming 'lost'
wildroman2 has joined #ruby
mrmargolis has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
<gambl0re> guys...how do i make a website like espn. what front/back end frameworks should i look into?
<sevenseacat> gl with that
<gambl0re> thanks..
<gambl0re> any suggesions?
<powersurge> that's a pretty broad question. so broad in fact that there's not really a correct answer gambl0re
<powersurge> what do you know?
<gambl0re> ht
<gambl0re> html/css
<shevy> gambl0re build with .cgi!
<powersurge> mmm
<powersurge> you've got quite a way to go, I'm afraid
<shevy> you can do it
<gambl0re> thats why im asking which technologies i need to use so i can learn it
<gambl0re> or a site like cnn..
<powersurge> imo the next steps would be to read some introductory tutorials to ruby, php, & python and then make a call on which one fits the way you think best
<powersurge> all of these technologies are more or less equivalent at the end of the day, and it really boils down to preference
MatthewsFace has joined #ruby
_seanc_ has joined #ruby
<powersurge> from there you can start looking at the specific platform/framework and narrow your focus
cirn0 has quit [Remote host closed the connection]
<powersurge> there are more general web focused channels that can help you as you pick and learn a backend technology like #web, #webdevs & #webtech
<gambl0re> do you recommend bootstrap or foundation? im thinking of rails or angular for backend
<powersurge> for you I don't recommend anything at that level yet
<powersurge> it doesn't sound like you have the foundational knowledge yet
<gambl0re> i have it!
<ebonics> bootstrap is old
mase-chatter has quit [Quit: Leaving]
<powersurge> I'd recommend learning a backend technology where the technology is one of: ruby, php, or python and then learning js to complement your existing html & css
<gambl0re> bootstrop is not old?...new version just got released. get with the program.
<powersurge> html + css are both declarative programming languages and are a world apart from imperative languages
<ebonics> no one takes bootstrap seriously anymore
<ebonics> foundation replaced it
<gambl0re> i already did codecademy ruby already.
<powersurge> mmm
<ebonics> personally i dont bother with either of them
<powersurge> if you feel that you like ruby then the next step, imo would be to play with sinatra and learn ruby in a web context
<powersurge> sinatra does very little for you and will teach you about how http works
<ebonics> just slap in normalize and write your own grid with sass
<gambl0re> foundation is more widely used than bootstrap?
<ebonics> no bootstrap is because its popular among noobs
<powersurge> once you get a handle on that you can move up to rails which is the defacto standard in ruby
Matthews_ has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Remote host closed the connection]
<ebonics> foundation is better though and more widely used among actual frontend devs
<powersurge> alternative full stack frameworks exist though, if you are curious
<powersurge> bootstrap is still crazy popular and pretty widespread
<powersurge> I find foundation ot be very buggy
<ebonics> uwot
<powersurge> although I prefer it for how... composable it is, I should say
<gambl0re> bootstrap includes responsive design.
<powersurge> the most useful thing in either is the grid system which you don't really need nowadays with flexbox imo
uhsf has quit [Read error: No route to host]
<gambl0re> thats why its popular..
<powersurge> foundation does as well
<ebonics> gambl0re, you'll find out soon how little that means
<powersurge> the biggest thing bootstrap has going for it is inertia
<ebonics> depending on bootstrap for responsiveness is garbo
<gambl0re> company's need responsive design you know.
<powersurge> loads of themes and blog posts and all kinds of stuff
<ebonics> yeah, you do that yourself
<ebonics> bootstrap etc limits your freedom
someword has quit [Quit: Leaving.]
<gambl0re> yo man, it's pretty complicated to handcode a responsive site
That1Guy has joined #ruby
multiscan has joined #ruby
<powersurge> yea, bootstrap & foundation are both starting points. the more complex and unique your design goes the more you'll drop from the toolkit
<gambl0re> thats why theres frameworks
<ebonics> no its actually not
<powersurge> check out flexbox and media queries gambl0re
<ebonics> ^
<powersurge> it's much simpler than it has been
<ebonics> and sass
chris349 has quit [Ping timeout: 255 seconds]
<powersurge> which is a big reason why you see fewer dedicated grid systems
someword has joined #ruby
<ebonics> using frameworks is old meta
<powersurge> heh 'old meta'
<ebonics> and the only ones sttill using them generally are people who are dependent on them
FernandoBasso has quit [Quit: leaving]
<powersurge> competitive gamer identified!
<ebonics> lol
GriffinHeart has quit [Remote host closed the connection]
<duderonomy> why is recommended to do sinatra before rails?
uhsf has joined #ruby
<powersurge> rails has a load of magic and it can be frustrating without a base understanding of http imo
<powersurge> like driving on the highway before you drive on the street imo
<sevenseacat> i wouldnt say its recommended
GriffinHeart has joined #ruby
<powersurge> ya, it's my recommendation :>
<powersurge> which you can take with a grain of salt
<duderonomy> yeah, I spent a lot of time re-reading route tables; still don't "know it"
<powersurge> mmm
<sevenseacat> if you already have a lot of web MVC experience, I dont see the benefit in using sinatra first as a stepping-stone for rails
<powersurge> I agree
_seanc_ has quit [Quit: _seanc_]
Matthews_ has joined #ruby
<ebonics> how does rails compare to like laravel
<powersurge> but if you're starting from scratch, imo, learn ruby -> learn sinatra -> learn rails
<ebonics> ive never used rails
<uhsf> Can someone please take a look at this https://24.37.137.250/store and tell me how to fix it?
<powersurge> you'll find a fair amount of familiarity
<powersurge> laravel borrowed a ton from rails
<ebonics> rly
<powersurge> yea
<powersurge> the routing system, similarities in the orm
GriffinHeart has quit [Remote host closed the connection]
<sevenseacat> most php frameworks borrowed a boatload from rails
<powersurge> resourceful routing
<ebonics> the ORM is based on doctrine
<gambl0re> i like to go 0-100 real quick...
<ebonics> and the routing system is based on every MVC ever
<gambl0re> i dont like taking baby steps.
<gambl0re> i like to jump right in.
<sevenseacat> true, most web frameworks have similar sort of routing
Feyn has joined #ruby
* sevenseacat was happy to discover that when looking at phoenix framework for elixir
<powersurge> you'll be surprised how much is familiar as you learn, I'l bet ebonics
<powersurge> bah, I'm supposed to be working
tubuliferous has joined #ruby
<havenwood> sevenseacat: pattern matching \o/
<powersurge> got sucked in
deric_skibotn has quit [Ping timeout: 255 seconds]
<ebonics> im sure its similar
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
MatthewsFace has quit [Ping timeout: 244 seconds]
<gambl0re> the hardest part of rails is the database model....f*cking confusing when you have more than one db and they to connect with each other.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Read error: No route to host]
<ebonics> that's super easy with laravel
<gambl0re> how so?
psy_ has joined #ruby
<ebonics> it's like
<gambl0re> is laravel mvc?
ddarkpassenger has joined #ruby
<ebonics> $db1 = $eloquent->use("db1");
wildroman2 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<ebonics> $db2 = $eloquent->use("db2");
<ebonics> yes it is
Musashi007 has joined #ruby
<gambl0re> but rails is the defacto........
<gambl0re> company's use rails..
arescorpio has joined #ruby
<ebonics> laravel was the most contributed to github repo in 2012 or 2013 or something
<ebonics> ppl use laravel m8
<ebonics> plus in actual EE people use java/spring, not rails lol
<gambl0re> are you aussie?..
<ebonics> nope
<gambl0re> where?..
<ebonics> canadia
<gambl0re> me too..
<gambl0re> where?
<vifino> ĸ
_seanc_ has joined #ruby
<ebonics> the only place in canada worth living in
<gambl0re> toronto?
<ebonics> ^
<gambl0re> im from scarborough man..
<ebonics> nice
<gambl0re> where you from
<ebonics> canadia
<gambl0re> which area?
tubuliferous has quit [Ping timeout: 250 seconds]
<gambl0re> you're not from toronto..
<ebonics> t'ronno
jpfuentes2 has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<gambl0re> we dont use the word m8...unless your an expat
<gambl0re> you're
<ebonics> i'm from the internet
GriffinHeart has joined #ruby
<gambl0re> ok.
<ebonics> i don't conform to the hip toronto lingo
Hijiri has quit [Ping timeout: 276 seconds]
rkazak has left #ruby [#ruby]
<gambl0re> whats hip toronto lingo?
<ebonics> you tell me
<ebonics> whatever you use in place of m8 since it's clear there is a regimented approach to language where youre from
Hijiri has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
pengin has joined #ruby
speakingcode has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has joined #ruby
niftylettuce has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
<bootstrappm> yeah we use laravel alongside rails. one for consumer product, other for admin interface
car has quit [Quit: Leaving]
bootstrappm has quit [Quit: bootstrappm]
<powersurge> rails is defacto in ruby, sure gambl0re
ZergCoder has left #ruby [#ruby]
<powersurge> but every language has their preferred frameworks
multiscan has quit [Read error: Connection reset by peer]
<powersurge> python has django, php has... a few, heh
saadq has joined #ruby
tkuchiki has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
multiscan has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
mattwildig has joined #ruby
<gambl0re> i want to learn frameworks that will help me get a job...
vikaton has quit []
bronson has joined #ruby
<gambl0re> laravel is probably nice to know but i dont think company's use it as much as rails which will put me a disadvantage.
kinduff has joined #ruby
<kinduff> Good morning good people
yh__ has quit [Ping timeout: 244 seconds]
<powersurge> laravel is the little brother of another framework called symfony2, they use a lot fo the same libs under the hood
pengin has quit [Remote host closed the connection]
<powersurge> between the two it's probably more popular overall than rails is
<gambl0re> symfony2 is more popular than rails?
<powersurge> not to talk you off of rails, of course :>
pengin has joined #ruby
<kinduff> gambl0re: highly doubt it
Channel6 has joined #ruby
someword has quit [Quit: Leaving.]
<powersurge> php is much more popular than ruby and symfony2 is the current darling of the php world
<kinduff> lets avoid talking about php again :V
<powersurge> fair
That1Guy has joined #ruby
<powersurge> tbh gambl0re it sounds like you've got a bit of tunnel vision going on. I'd encourage you to focus on what you like rather than what will get you employed immediately
<sevenseacat> +1
<powersurge> jumping straight into rails without any prior web or ruby experience is a recipe for frustration
<sevenseacat> +100
bronson has quit [Ping timeout: 264 seconds]
c355E3B has quit [Quit: Connection closed for inactivity]
<kinduff> +1000 both coments from powersurge
uhsf has quit [Quit: leaving]
pengin has quit [Ping timeout: 252 seconds]
<powersurge> are _ holes idiomatic in ruby? if you're unpacking an array and don't care about the first var, for example
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
saadq has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> powersurge: I think so
<powersurge> cool, ty
DerisiveLogic has joined #ruby
<gambl0re> ok fine...do you suggest i learn sinatra first??
That1Guy has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<gambl0re> i mean lavarel?
<powersurge> if you stay with ruby I suggest learning sinatra and then rails
juanpaucar has joined #ruby
<powersurge> but my base advice is to play with the major players in the web space (ruby, python, php) and find one which fits your head the best and go from there
Dakuan has joined #ruby
<powersurge> the advice will be similar in any of the three languages though. learn a micro framework and then a fullstack framework
<sevenseacat> my advice to someone just starting web dev would probably be 'start with flat html'
<powersurge> he said he's got some base html/css experience
nettoweb has joined #ruby
<powersurge> but yes, I agree :>
<sevenseacat> ah okay
<sevenseacat> missed that part
* Radar remembers banning gambl0re
That1Guy has quit [Client Quit]
<shevy> lol
<powersurge> I can't remember what the popular php micro framework is
<powersurge> going to drive me crazy if I don't figure it out
That1Guy has joined #ruby
<gambl0re> im only learning ruby because everybody says ruby makes people happy or something like that...
<gambl0re> cakephp?
<powersurge> cakephp is pretty big and bloated, deffo not micro, heh
<powersurge> but yea, the convo is deffo going to be off topic here
<sevenseacat> my advice would also be 'if you're here trying to learn just do you can get a job, leave now'
That1Guy has quit [Client Quit]
<sevenseacat> *just so
<gambl0re> why
<powersurge> there are general web channesl like #web, #webdevs, #webtech that will help you pick a language and give advice to get better at it
<powersurge> well he may find out he likes it sevenseacat
<gambl0re> those are zombie channels. dead.
<powersurge> #web deffo isn't dead
<sevenseacat> if he liked it, he would have been interested to try it without the pressure of OMG NEED JOB
<powersurge> and I idle in #webtech a lot, we're mostly active during the weekdays though
<powersurge> fair
Agoldfish has quit [Quit: G'Bye]
<powersurge> #web currently has 367 users in it
segfalt has joined #ruby
<powersurge> not sure what you'd define as 'lively' if that's dead :>
<Radar> popcorn
<sevenseacat> but thats my opinion. i could rhapsodize for days about that kind of stuff. maybe i should write a blog post about ot.
<sevenseacat> it
juanpaucar has quit [Ping timeout: 265 seconds]
Dakuan has quit [Ping timeout: 264 seconds]
<powersurge> imo I think passion being a requirement for developing is a little oversold. especially the github as a resume bit that's making the rounds
<powersurge> that one in particular implies that you have to work for free on your own time to get a job if your existing job isn't open source friendly
<sevenseacat> we're talking about web development, not sit-in-an-office-and-play-with-ten-year-old-java
<powersurge> but ya I do think you have to like it at least a little, heh
<sevenseacat> that can be done by zombies
<powersurge> if you just clock in for your 8hrs then ultimately you'll be left behind
JoshGlzBrk has joined #ruby
<powersurge> doing whatever the equivalent of COBOL is 5 yrs from now
Musashi007 has joined #ruby
xcesariox has joined #ruby
<sevenseacat> web development is a fast moving field - if you dont have a keen interest (and sometimes even if you do) you'll be left behind
That1Guy has joined #ruby
nso95 has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy> java zombies
<sevenseacat> import javax.zombie.braaaaaaains;
MatthewsFace has joined #ruby
wildroman2 has joined #ruby
<ebonics> m8
<ebonics> are you trying to say java is oldmeta
<sevenseacat> no idea what 'oldmeta' means so
Hijiri has quit [Ping timeout: 276 seconds]
That1Guy has quit [Client Quit]
huddy has quit [Quit: Connection closed for inactivity]
<ebonics> it's a term applied to games when certain characters or strategies get phased out of the "meta" in favour of new ones
<sevenseacat> and what is 'the meta'?
Hijiri has joined #ruby
<ebonics> metagame
<powersurge> yea
<sevenseacat> I'd consider myself a gamer and I still have no idea what you're talking about.
<powersurge> meta is a greek word. I forget exactly what it means but metagame essentially means 'the game within the game'
Matthews_ has quit [Ping timeout: 256 seconds]
<powersurge> so, like, (opening myself up here) in competitive pokemon only the top 20-30 pokemon are *truly* viable
<shevy> COMPETITIVE POKEMON
<powersurge> that's the OU meta because you can only really play with those pokes
zreisman has joined #ruby
<powersurge> it's the game-within-the-game because there's a de facto restricted ruleset
<sevenseacat> yep now i get it
<shevy> yeah yeah - some things are overpowered, others underpowered
<sevenseacat> viable builds, etc.
<ebonics> you not knowing what oldmeta is is sort of old meta
<ebonics> #justsaying
maetthew has quit [Quit: ZNC - http://znc.in]
n008f4g_ has quit [Ping timeout: 256 seconds]
<powersurge> competitive pokemon is p. boss btw
<powersurge> highly recommend it
<shevy> please
<powersurge> come at me bro
<shevy> competitive
<powersurge> I'm actually a little rusty, I haven't adapted well to the ORAS games coming out and I've been really sucked into monster hunter lately
<powersurge> not sure what the off topic rules are here
<shevy> POKEMON
<powersurge> you'd be surprised shevy
<powersurge> it's a very deep and compelling game when you get into the nitty gritty details
<sevenseacat> powersurge: if there's no active ruby discussion, then anything is fair game imo.
<shevy> powersurge can't be too off-topic, we spoke about zombies a minute before
<powersurge> gotcha
<powersurge> yea, I figured late night so it'd be cool
<sevenseacat> as long as discussions dont stop people from discussing programming or getting help.
<powersurge> more relaxed late at night
<ebonics> anyone know shit about posix
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<powersurge> I know... enough, I guess
<ebonics> liek why the usb i just formatted is read only and after i chmod it it goes back to readonly
<powersurge> mm, beyond me, heh
<shevy> posix was written by RMS and others right
<miah> lol
kobain has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<ebonics> this is scurry
<miah> my guess is udev
<ebonics> i'm backing up stuff and this usb is trolling me
<shevy> lol
<shevy> ebonics I felt like that a minute ago too
<ebonics> i got the file on it
<shevy> mplayer would not play audio on the commandline; videos in firefox worked fine, audio. I suspected my old nemesis, pulseaudio & alsa
<ebonics> through.. methods
<ebonics> now when i try to eject it it says its busy
<ebonics> like m8 u wot
<ebonics> lol pulseaudio D:
freerobby has joined #ruby
<ebonics> oh
<ebonics> LMAO
<shevy> well I just got all fixed
<ebonics> it's cause i had gparted open
<shevy> and I kicked pulseaudio out too
<powersurge> heh
_seanc_ has quit [Quit: _seanc_]
havenwood has joined #ruby
<powersurge> shevy: competitive pokemon, yo http://replay.pokemonshowdown.com/ou-168507628
<ebonics> i think it's funny when people say you corrupt the filesystem on usbs permanently
<ebonics> if you pull them out
<ebonics> like they never thought to use gparted on it
growlove has joined #ruby
<shevy> I had some bad luck lately
<shevy> with USB hdds
<ebonics> it does feel like luck sometimes
<shevy> since then I try to be a well-behaving person; always properly umount before unplugging
idafyaid has quit [Quit: idafyaid]
<shevy> I had like 3 of my external hdds die in the last ~14 months or so :(
<ebonics> how
<ebonics> im actually terrified of using usbs for backups
<kinduff> I want to scrap out all those pokemon gifs
Yzguy has joined #ruby
<powersurge> they've been dumped
<powersurge> ...somewhere, heh
<ebonics> ihave to like take it out, mount it again, check its not corrupt, then keep doing it
<kinduff> they're pretty cool
<powersurge> the pokemon showdown code is open source nodejs
<ebonics> because each time i do it im scared i corrupted i
<ebonics> t
<powersurge> if nothing else I'm sure you can find them there
<shevy> ebonics dunno. they make weird sounds when I try to connect them, and dmesg is full of some corrupted file descriptor bla; one does not even power on at all anymore
<powersurge> if you think that's cool check out this graph I made in pandas kinduff http://i.imgur.com/EQY6nCQ.png
<ebonics> how is it legal to make pokemon games?
<ebonics> dont those games get taken down or anything
<powersurge> I took the data from veekun's open source dump of the pkmn data and graphed the type distribution of pokemon subdivided by the generation that it was introduced in
<powersurge> it only simulates the battles ebonics
<powersurge> since they don't make any money it's considered fair use
<ebonics> i wonder if you could just like
<powersurge> if they built out the whole game it'd be shutdown but as it is it's just the battle mechanics
<ebonics> make one that's 100% p2p
<powersurge> that's what pokemon showdown is, really
starless has joined #ruby
<powersurge> you put your pokemon in, set their ivs/evs/movesets and play online
<kinduff> powersurge very very nice
<ebonics> are there any games that do that?
irobevjodu has joined #ruby
<ebonics> like bitcoin protocol meets gaming
<ebonics> or would it be too slow
<kinduff> bitcoin protocol?
<kinduff> bitcoin://
<ebonics> ?
<ebonics> what protocol does bitcoin use
<powersurge> oh, I misread what you said
<powersurge> you said p2p but I read pvp
<ebonics> yeah nvm i knew one of us was the idiot
Yzguy has quit [Ping timeout: 240 seconds]
<ebonics> not me tho
<ebonics> @ kinduff
jpfuentes2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<kinduff> ebonics protocol != network
<ebonics> semantics and shit
A205B064 has quit [Ping timeout: 240 seconds]
<kinduff> r u even reading m8
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics> kinduff, how do you think bitcoin works?
<ebonics> does it use smtp?
<ebonics> or does it use a custom protocol?
<kinduff> meh
xcesariox has joined #ruby
<kinduff> what are you trying to archive, ebonics
<ebonics> just random backup stuff
<ebonics> im formatting in a minute
<shevy> countdown started
<ebonics> upgrading dat ubuntu
<ebonics> going bleeding edge m8
maknz has joined #ruby
fabrice31 has joined #ruby
iwishiwerearobot has joined #ruby
konsolebox has joined #ruby
<ebonics> havenwood, i went on a rant earlier about building my own rubiess
<ebonics> i would be a hypocrite
mrmargolis has joined #ruby
darkf has joined #ruby
<havenwood> ebonics: build away!
<ebonics> havenwood, i have problemsss with mruby
<ebonics> im gonna use v8 instead
<havenwood> ebonics: how are those binary options?
<ebonics> someone should work on that damn regex library
<havenwood> ebonics: use stable versions
<ebonics> havenwood, i compiled the pcre plugin into it. it passed tests
<ebonics> then i run it and any ruby code that uses regex just segfault
<ebonics> with no error messages
<havenwood> ebonics: with mruby-1.1.0?
<ebonics> i spent like a few hours on it too, its hopeless
<ebonics> no the new package
<havenwood> ebonics: the not stable bleeding edge master?
fabrice31 has quit [Ping timeout: 256 seconds]
gusrub has quit [Quit: Leaving]
oo_ has joined #ruby
<ebonics> havenwood, i only tried using the nightlies because there's some issue with go-mruby with the pcre plugin. it's probably my fault but i followed the build instructions and it didnt work out of the box
<ebonics> so i just rm -rf'd and tried with the nightlies
<havenwood> ebonics: mm
iwishiwerearobot has quit [Ping timeout: 272 seconds]
mattwildig has quit []
willharrison has joined #ruby
kinduff has quit [Ping timeout: 252 seconds]
saadq has joined #ruby
<maknz> I have a question about modules and namespacing. Consider https://gist.github.com/maknz/1d3c80d1b05b5316b075 -- where B is extending, is there a way to specify that class 'relatively' and cleaner, rather than having to repeat the parent module name? Note the 2nd level Bar module and the 3rd level Bar module under Baz, which makes Bar ambiguous
willharrison has quit [Client Quit]
willharrison has joined #ruby
<ebonics> at first glance and my armchair beginner ruby opinion, that looks like bad design
<ebonics> but i'm actually a shitter so take it with a grain of salt
iamdoo2 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maknz> I want to re-use the bar name, so it's something like SomeNamespace::Errors, and SomeNamespace::SomethingElse::Errors -- which is elegant I feel, but maybe it's not how ruby namespacing was intended
<ebonics> i was ranting about how garbo ruby namespaces are before, so yeah
Joufflu has joined #ruby
Aswebb_ has joined #ruby
<ebonics> maknz, i feel like defining ::Errors isnt clean though
<ebonics> in each namespace
<ebonics> that's hardly code reuse
bronson has joined #ruby
<ebonics> SomeNamespace::SomeNamespaceError
<maknz> Something::Errors would be general errors across the library, Something::Bar::Errors would be specific errors for stuff inside Bar.
<ebonics> SomeNamespaceError < GenericError
<maknz> Repeats the class name though :(
<ebonics> like my MRuby namespace would have
<ebonics> MRuby::SegfaultError
alvaro_o has joined #ruby
<ebonics> and my PCRE namespace would have MRuby::PCRE::DoesntWorkError
<maknz> right sure.. keep the errors just flat like the classes
<maknz> I kinda liked being able to put them in a module to group them
lessless has joined #ruby
<ebonics> that's not modular
<ebonics> why couple them if you don't have to
<shevy> one namespace to rule them all
<maknz> Not sure I see the coupling?
<shevy> and in ebonics' cellar, bind them and spank them
<ebonics> yes
<ebonics> do that
<shevy> haha
<ebonics> maknz, it's not that they're strictly coupled through dependency
<ebonics> but they're coupled by having to share the same namespace
Aswebb_ has quit [Ping timeout: 256 seconds]
<shevy> is there a difference between java namespaces and ruby namespaces?
<ebonics> lol
<ebonics> yes
<ebonics> java doesn't have namespaces per se
<ebonics> and encapsulation/privatization is incredibly idiomatic in java
tjbiddle has quit [Quit: tjbiddle]
bronson has quit [Ping timeout: 272 seconds]
<ebonics> so it doesn't need them
<ebonics> honestly i have no idea why people hate on java, it's an awesome language
<ebonics> verbose, but awesome
<powersurge> the verbosity is the biggest reason
<powersurge> and the ecosystem kind of sucks imo
<ebonics> use scala then
<powersurge> although new java is better than old java
<powersurge> I intend to, friend :>
<ebonics> what ecosystem
<maknz> I would have thought Foo::Errors and Foo::Bar::Errors woudn't be any different than Foo::Errors and Foo::Bar::NotErrrors? I'm a bit :S on Ruby's modules though
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<powersurge> stuff like struts and hibernate and all that crap
<powersurge> newere java like play and dropwizard looks much more reasonable though
<ebonics> that stuff is only for EE
<ebonics> any EE stuff is bound to be stale
<powersurge> I hear good things about springboot too but I haven't tried it first hand
<powersurge> a big problem with java is it grew up side by side with xml and there's a load of cross polination
<ebonics> i don't see how
<ebonics> unless you mean ant
<shevy> maknz you scope twice via :: there so they shouldn't be in the same namespace
<ebonics> people don't use ant anymore though
<powersurge> ant, the application server standard with java... the name escapes me
<shevy> module Foo; module Errors versus module Foo; module Bar; module Errors
<powersurge> the stuff that jboss & tomcat and stuff use
<ebonics> uh
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
<powersurge> servlets I think
<powersurge> the web.xml and all that junk
<ebonics> are you sure it's not tomcat
<powersurge> and even maven has a pom.xml
<ebonics> people mostly use gradle now
<powersurge> pretty hard to say something like that in java imo
<powersurge> change is slow to trickle down
<powersurge> most *new* java uses gradle, sure
<maknz> but the more-deeply-nested Errors shouldn't have any relation to the higher Errors, I would have thought? Or does the fact they're named the same, regardless of nesting, relate them somehow?
<ebonics> no
<ebonics> like
<ebonics> even jdk uses gradle
<ebonics> spring uses gradle
<ebonics> etc
<powersurge> mmm
<powersurge> my experience is at least a year out of date
shuber_ has joined #ruby
<powersurge> so it's entirely possible that the java I was looking forward to then is standard now
<powersurge> the java ecosystem I was looking forward to*
<ebonics> it still has some work to go to "modernize" it, but it's sort of the nice thing about java
<ebonics> iin that you know you're not super far behind when you have to use it again
<ebonics> and all your old stuff is going to run the same
<powersurge> yea, that's a big selling point for java
<powersurge> which is why companies build so much on it
<ebonics> they have strict policies on backwards compatibility
<powersurge> btu it's a double edged sword imo
<powersurge> the language accumulates cruft
nettoweb has joined #ruby
<ebonics> i don't really agree
jokester has quit [Quit: pwned by badguy]
<ebonics> that's just a popular opinion that i think is baseless
bronson has joined #ruby
<shevy> I always have to download something from oracle
<ebonics> why ;o
<powersurge> I'm obv out of my depth because it's been a while since I've done java dev for work
<shevy> either it is the jre or it is that jdk
<ebonics> you can get openjdk and openjre
<powersurge> but my experience in java was pretty painful due to the libs we were using
<powersurge> I had to use a soap client, for instance, and it required dumping a whole 50-ish megabytes of generated code
<ebonics> java reminds me of like, centos of programming haha
<ebonics> just super duper solid
<powersurge> which I had to modify to support credentials and junk
<shevy> isn't that PHP
<powersurge> left a horrible taste in my mouth
<powersurge> I'd say enterprise PHP has a lot in common with java dev, tbh
<ebonics> i didn't know enterprise php existed
<powersurge> the devs at work who do PHP every day tell me that symfony2 is pretty much a PHP port of... struts, I believe
<ebonics> oh right, symfony
<ebonics> yeah
<ebonics> i prefer laravel
<powersurge> spring I meant to say
<powersurge> I misspoke
shuber_ has quit [Ping timeout: 258 seconds]
Dakuan has joined #ruby
<powersurge> I don't really get enterprise php tbh
<powersurge> it feels a lot like java so why not just make the leap and reap the advantages of the jvm
jokester has joined #ruby
<ebonics> i think the benefit of php is that it's a lot easier to find developers
<powersurge> you're emulating everything except the static typing and the speed which are the biggest things that matter
<ebonics> and also it's faster to code with
nettoweb has quit [Client Quit]
<ebonics> but i think php in general is far inferior to java
<powersurge> it's easy to get scrubs & hacks in php sure
<powersurge> but I'm sure there are more professional java programmers than php programmers
<ebonics> of course
maknz has quit [Quit: Textual IRC Client: www.textualapp.com]
<ebonics> java is highly idiomatic
bronson has quit [Ping timeout: 272 seconds]
<ebonics> java was my first language and i'm glad it was
<powersurge> I'm going to be revisiting java soon
<powersurge> planning on conquering android in the next year :>
<ebonics> hehe
<ebonics> you'd be better off with c++
<powersurge> I just recently switched to RoR
<powersurge> on android?
<ebonics> yeah
<powersurge> ndk is second class afaik
<ebonics> but portable
<powersurge> meh
<ebonics> write for ndk and it ships to ios easily
JoshGlzBrk has joined #ruby
<powersurge> I'm not too concerned with that
<powersurge> I find taking shortcuts like that don't pay large enough dividends
<shevy> <ebonics> honestly i have no idea why people hate on java, it's an awesome language
<shevy> <ebonics> you'd be better off with c++
<powersurge> 'shortcuts'
* shevy ponders ...
<ebonics> better off with c++ for mobile dev
<ebonics> because it's cross platform whereas ios doesnt officially support java
dopie has joined #ruby
<ebonics> just apple things
Akagi201_ has joined #ruby
<powersurge> does apple officially support c++?
<powersurge> and in addition to that, you'd have to rewrite all the ui layers anyhow
<ebonics> that isnt a valid questio
<ebonics> n
Dakuan has quit [Ping timeout: 265 seconds]
<ebonics> c++ compiles to machine codee
yqt has quit [Ping timeout: 265 seconds]
<powersurge> sure it's valid. you have to be able to touch the ui apis in either platform
<ebonics> usually how it's done is you write the entire engine in c++, as much as possible
oo_ has quit [Remote host closed the connection]
<ebonics> then you write glue code for every platform you want to target
<powersurge> if you're writing something totally custom and forgo the ui altogether, I could see your point
Akagi201 has quit [Ping timeout: 240 seconds]
<powersurge> but that only really seems beneficial in something like a game perhaps
<ebonics> the glue code being obj c for ios
<powersurge> not really useful in business applications, imo
<ebonics> and java for 4ndr01d
<ebonics> super useful for business applications
<ebonics> target all the things!
<ebonics> okay i need to format
<ebonics> bai
ebonics has quit [Quit: Leaving]
<powersurge> yeesh
<powersurge> I just fundamentally disagree with all that, heh
dopie has quit [Client Quit]
<shevy> oh man
<shevy> ebonics already was using like 4 languages
<shevy> <ebonics> the glue code being obj c for ios
<shevy> so now he was at... java, C++ and obj c
<shevy> not bad
jpfuentes2 has joined #ruby
jpfuentes2 has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
braincrash has quit [Quit: bye bye]
Akagi201 has joined #ruby
Akagi201_ has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
tubuliferous has joined #ruby
nettoweb has quit [Client Quit]
_seanc_ has joined #ruby
braincrash has joined #ruby
bruno- has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 245 seconds]
mrmargolis has quit [Remote host closed the connection]
polyrob_ has quit [Ping timeout: 255 seconds]
starless has quit [Quit: Leaving]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 256 seconds]
pusewicz has quit [Ping timeout: 265 seconds]
harleypig has quit [Ping timeout: 252 seconds]
adambeynon has quit [Ping timeout: 252 seconds]
polyrob has joined #ruby
polyrob has quit [Changing host]
polyrob has joined #ruby
hellschreiber has quit [Ping timeout: 256 seconds]
nso95 has quit [Read error: Connection reset by peer]
pusewicz has joined #ruby
harleypig has joined #ruby
adambeynon has joined #ruby
hellschreiber has joined #ruby
freerobby has quit [Quit: Leaving.]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
lessless has quit [Ping timeout: 258 seconds]
raphagodoi has joined #ruby
charliesome has quit [Quit: zzz]
saadq has quit [Remote host closed the connection]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
raphagodoi has quit [Client Quit]
dfockler has joined #ruby
lessless has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
lessless has quit [Client Quit]
dfockler has quit [Ping timeout: 246 seconds]
lidenskap has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
jarray52 has joined #ruby
gmas has joined #ruby
lidenskap has quit [Ping timeout: 272 seconds]
juanpaucar has joined #ruby
Coldblackice has quit [Ping timeout: 252 seconds]
Joufflu_ has joined #ruby
Joufflu_ has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 272 seconds]
crdpink2 has joined #ruby
zreisman_ has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
towski_ has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
zreisman has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
_seanc_ has quit [Quit: _seanc_]
_seanc_ has joined #ruby
scooby1961 has joined #ruby
powersurge has quit [Ping timeout: 276 seconds]
Dakuan has joined #ruby
saadq has joined #ruby
shuber_ has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 250 seconds]
Parker0 has joined #ruby
Dakuan has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ziprar has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
ebonics has joined #ruby
<ebonics> i broke the shit out of unity
<ebonics> not even mad
djbkd has joined #ruby
ebonics has quit [Remote host closed the connection]
lidenskap has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Deele has joined #ruby
multiscan has quit [Read error: Connection reset by peer]
multiscan has joined #ruby
ebonics has joined #ruby
ebonics has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
ebonics has joined #ruby
krz has joined #ruby
<xxneolithicxx> anyone know if any gems that install cli bin tools? i need to compare my gem to another that includes bin's to figure out why its not adding my gem's bin files into the ruby's bin dir like it does for nokogiri
iwishiwerearobot has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
turtil has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
mary5030 has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
A205B064 has joined #ruby
iwishiwerearobot has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
mary5030 has joined #ruby
freggles has joined #ruby
lidenskap has joined #ruby
oo_ has joined #ruby
Aswebb_ has joined #ruby
bronson has joined #ruby
lidenskap has quit [Remote host closed the connection]
MasterPiece`` has joined #ruby
lidenskap has joined #ruby
Aswebb_ has quit [Ping timeout: 272 seconds]
MasterPiece has quit [Ping timeout: 244 seconds]
lidenskap has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ramfjord has joined #ruby
longfeet has quit [Read error: Connection reset by peer]
MasterPiece`` has quit [Changing host]
MasterPiece`` has joined #ruby
MasterPiece`` has quit [Quit: Leaving]
ebonics has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has quit [Ping timeout: 265 seconds]
Vert- has joined #ruby
<Vert-> Yo guys
Joufflu has joined #ruby
<sevenseacat> Vert-: we're not all guys here.
<Vert-> I'm having the weirdest glitch - when I cast "blablabla \n blablabla", the output literally said "blablabla \n blablabla"
<Vert-> IT does not interpret it and give me a newline
<Aeyrix> wat
<sevenseacat> because you wrapped your string in single quotes, not double.
<Vert-> Nope, using double quotes
<sevenseacat> show us?
<Vert-> Just a sec, for some reason I can't copy it into memory
codecop has joined #ruby
ndrei has joined #ruby
<ruboto> Vert-, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/319eff53f4ff9003788d
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Vert-> The offending line is the string being returned.
<sevenseacat> and what does it return?
shuber_ has joined #ruby
<sevenseacat> and where/how does it output wrongly?
<Radar> steps to reproduce plzkthx
arescorpio has quit [Remote host closed the connection]
<Vert-> If gives me -> "found 31925 bits set to 1\nfound 31715 bits set to 0"
<sevenseacat> where?
<Vert-> When I call this function
<Vert-> In IRB
<sevenseacat> so you're not actually printing the string
<al2o3-cr> Vert-: return doesn't interpret new lines
<Vert-> I see.
<Vert-> Any other way to wedge a newline into the string without interpreting it then?
<sevenseacat> print it out
ndrei has quit [Ping timeout: 265 seconds]
<Vert-> I really kinda want to put a newline in the string
<Vert-> Cause the method is going to paste a "nil" in the console afterwards
Jarboe has quit []
<sevenseacat> did you try putting a newline in the string, not a \n char
<Vert-> Instead I'd rather the output value be the.. output value
<Vert-> You mean like actually hitting enter in the middle of the string?
<sevenseacat> yes.
Dakuan has joined #ruby
<Aeyrix> sevenseacat: Would a heredoc work?
jpfuentes2 has quit [Remote host closed the connection]
<Vert-> Didn't seem like the ideal solution
* sevenseacat shrugs
<Vert-> Surely there must be a way to reference a newline character?
<sevenseacat> you've been given two solutions
jpfuentes2 has joined #ruby
<Aeyrix> Wait why don't you just print it out?
<Aeyrix> I'd venture that's *the* solution.
shuber_ has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
tubuliferous has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
<Vert-> Aeyrix, any way to avoid the return value printing nil in the console if I do that though?
_seanc_ has quit [Quit: _seanc_]
Ox0dea has joined #ruby
<Vert-> Cause I was doing this at first
Axy has quit [Ping timeout: 258 seconds]
<Aeyrix> You could stop running it through the interactive ruby interpreter and run it as an actual script?
<Vert-> Not part of the parameters of this exercise
<Vert-> It /has/ to run through IRB
<Aeyrix> Absolutelydisgusting.gif
<Vert-> So I'm trying to get the output to match up to the request.
<Aeyrix> Try p then return '', perhaps.
<Vert-> I'm not quite following.
Timba-as has joined #ruby
<Vert-> You figure there might be a way to interpret the \n /before/ inserting it though?
<Ox0dea> Vert-: Presumably the bit twiddling you're doing is also required by the exercise?
<Aeyrix> Line 23, change 'return' to literal 'p'
<Vert-> #{"\n"} for example?
_seanc_ has joined #ruby
<Aeyrix> Line 24, add "return ''".
<Vert-> Oh OH
<Aeyrix> Would theoretically remove 'nil', but I could just be making shit up.
<Vert-> I get you now
<Vert-> Let me try it out, thanks though
Musashi007 has joined #ruby
ndrei has joined #ruby
workmad3 has joined #ruby
<Vert-> Well IRB does print it properly now, but returns the following after the output | => ""
<Vert-> But fuck it.
<Vert-> They can deal with it
xcesariox has joined #ruby
Dakuan has quit [Ping timeout: 272 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
<Vert-> I've sunk enough time into the second request to do a test for a gig I'm feeling meh about.
<sevenseacat> this was for a job application? cool.
niftylettuce has quit [Quit: Connection closed for inactivity]
<Vert-> Yeah, they wanted this and what amounts to a prototyped simplistic banking application
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Musashi007 has quit [Client Quit]
ndrei has quit [Ping timeout: 250 seconds]
<Vert-> I actually did this two years ago when this agent referred them to me and made them lots of crazy promises while I had zero interest.
<Vert-> I decided to save his ass but he turned out to be a complete idiot, go figure right?
<Ox0dea> ...
workmad3 has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
<Vert-> Now it turned out 2 years later the position was still open and they were willing to concede to a freelance consultant
<sevenseacat> Vert-: would you like a bigger shovel?
<Vert-> Shovel?
<sevenseacat> to either keep shovelling shit or dig yourself a bigger hole
<sevenseacat> not fussed which. both are kind of entertaining.
<Aeyrix> u wat
<Vert-> I'm doing either one?
* Aeyrix has no idea what's going on.
<Ox0dea> Vert-: I suspect sevenseacat finds the quality of your Ruby code at odds with your having landed a Ruby "gig".
<sevenseacat> I just dont think it's wise to enter a channel full of people you don't know, to start slandering a potential employer
<Ox0dea> Or that.
<Vert-> I don't care.
<Aeyrix> Wouldn't it be libel, given that IRC is a textual medium?
<Vert-> The agent I'm referring to didn't last much longer than 6 months.
<sevenseacat> Aeyrix: I'm not sure.
<Vert-> He works in finance now
mary5030 has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
<Aeyrix> Vert-: To answer your question, you could patch the interpreter.
<Aeyrix> Best way and would probably get you marks for creativity.
lkba has joined #ruby
* Ox0dea is considering submitting a patch to add Numeric#[](Range).
<Vert-> I gotta bail guys, thanks for the assist.
<sevenseacat> Vert-: good luck.
Vert- has quit []
rrichardsr3 has joined #ruby
growlove has quit [Remote host closed the connection]
ndrei has joined #ruby
Channel6 has quit [Quit: Leaving]
saadq has quit [Remote host closed the connection]
<pontiki> time for bed
* baweaver reads up
* baweaver sighs
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
* baweaver makes program into a one liner for amusement
creakybones has joined #ruby
creakybones has joined #ruby
tagrudev has joined #ruby
<Ox0dea> baweaver: Shall we golf?
psy_ has quit [Ping timeout: 244 seconds]
zreisman_ has quit [Remote host closed the connection]
<sevenseacat> i didnt actually read the code too closely.
<baweaver> leave it in the comments section of aforementioned gist? :D
ndrei has quit [Remote host closed the connection]
<sevenseacat> I'm really confused about the first file-reading part though
arietis has joined #ruby
ndrei has joined #ruby
ohaibbq has joined #ruby
hanmac1 has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
towski_ has joined #ruby
<baweaver> Ox0dea: Do we want to count the string print?
<Ox0dea> baweaver: Nah, just return a "tuple" containing the number of zeroes and ones.
aganov has joined #ruby
<baweaver> 98
<baweaver> working on shortening a bit more
inndy has joined #ruby
inndy has left #ruby [#ruby]
<Ox0dea> baweaver: #to_s doesn't pad.
juanpaucar has joined #ruby
<baweaver> drat
<baweaver> hm
<baweaver> how much pad for a char was it again?
<baweaver> I think it was 16, but way rusty there
<Ox0dea> 8.
jarray52 has left #ruby [#ruby]
sepp2k has joined #ruby
<Ox0dea> baweaver: I got 66.
<Ox0dea> It's gross, though.
<baweaver> you'll win this one then
<baweaver> I can't get far below 90
simpyll has quit [Ping timeout: 250 seconds]
juanpaucar has quit [Ping timeout: 240 seconds]
<Ox0dea> `.join.count` feels so verbose here.
<baweaver> 116 :/
<Ox0dea> How'd that happen?
Joufflu has quit [Read error: Connection reset by peer]
<baweaver> You've probably got this one
<baweaver> rjust
* baweaver is also not familiar with bit mechanics
<Ox0dea> I've posted mine, if that helps.
<Ox0dea> There are any number of clever bit twiddle approaches, but I highly doubt any of them would be shorter than just using % string formatting.
<Ox0dea> Then again...
* baweaver goes hunting for his copy of Hacker's Delight
ndrei has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<baweaver> I wonder if you can open a file as binary in ruby
_seanc_ has joined #ruby
<Ox0dea> baweaver: Nah, there's #binread, but that's mostly for subverting the automatic CR/LF conversions.
<Ox0dea> 59.
<baweaver> Worth a shot
<Ox0dea> 55.
<Ox0dea> ^_^
<sevenseacat> hax
hsps_ has joined #ruby
simpyll has joined #ruby
* baweaver bows
<Ox0dea> I suppose I'll stop there.
ramfjord has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> Ox0dea: Lot of time in C, or how does one get into such bit twiddling?
coderhs has quit [Ping timeout: 258 seconds]
<Ox0dea> My final approach doesn't really twiddle any bits; it does use Numeric#[] to *access* the bits, though.
arietis has quit [Quit: Leaving.]
<Ox0dea> You really can't go wrong reading Hacker's Delight to get better with bitwise arithmetic, but writing C now and again certainly doesn't hurt either.
<baweaver> DevOps by trade, so I rarely touch lower level
<baweaver> Though I do like hacking about a bit from time to time
towski_ has quit [Remote host closed the connection]
<Ox0dea> To be sure, working at the higher levels is generally more enjoyable, but I can't help heeding the "call of the void" now and again.
<baweaver> Last time I heeded it I ended up learning Haskell
<Ox0dea> That is quite a ways from low-level, I should think.
<Ox0dea> But I believe I took your point nonetheless.
<baweaver> Yeah, functional programming is about as far from low level as you can get
<Ox0dea> And yet it's all the lambda calculus at the bottom.
<Ox0dea> There's a strange circularity there.
<baweaver> Granted, but most of the point of it was focus on the problem instead of the machine
<Ox0dea> Right, declarative programming, in essence.
<Ox0dea> "What, now how."
<Ox0dea> *not
<baweaver> Logic programming is a bit of a trip too
<Ox0dea> I've still not been able to convince myself to take that particular plunge.
<baweaver> It's interesting if for no other reasons than finding a new way to think
<baweaver> sevenseacat knows Prolog way better than I do though
Timba-as has quit [Quit: Be back later ...]
<sevenseacat> o.o I haven't looked at prolog in like ten years
<baweaver> (*read: she took a class on it and I didn't)
<sevenseacat> I took *one* class on it
<Aeyrix> Lol fucking prolog
<Ox0dea> sevenseacat: How about Clojure's core.logic?
<Aeyrix> I actually took a class in Prolog too.
* baweaver ducks
<sevenseacat> I know nothing about clojure
<sevenseacat> am looking at elixir for shits and giggles
<Aeyrix> The class introduced itself with 2001: A Space Odyssey.
<baweaver> Aeyrix: How can you possibly go wrong from there?
<Aeyrix> baweaver: It didn't. :>
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<baweaver> Have you seen that Georgia Tech speech yet?
<Aeyrix> Link?
<baweaver> is epic
ScriptGeek1 has joined #ruby
<Aeyrix> @ Work. Will watch at home.
Dakuan has joined #ruby
<Aeyrix> Oh wait, no internet...
ScriptGeek1 has left #ruby [#ruby]
<Aeyrix> I uh, wow that's a bit of a bind.
<baweaver> Aeyrix: depends on your moral compass and if your security expertise expands to wireless
<Aeyrix> I have considered it.
<Aeyrix> And it does. ;)
<baweaver> I have a few 5+ mile antennas
ScriptGeek has quit [Disconnected by services]
<baweaver> for reasons
<Aeyrix> tbh if I did, you know, do that, I don't even think the people would notice.
_seanc_ has quit [Quit: _seanc_]
<Aeyrix> I am a pretty light internet user. I don't even torrent.
<baweaver> Used to work at a Wireless ISP as the only programmer
<baweaver> got a lot of time to have fun with high powered antennas and automation
swgillespie has joined #ruby
sinkensabe has joined #ruby
Dakuan has quit [Ping timeout: 245 seconds]
* zotherstupidguy morning everyone
MatthewsFace has quit [Remote host closed the connection]
Timba-as has joined #ruby
ohaibbq has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
saadq has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
scooby1961 has left #ruby [#ruby]
bruno- has joined #ruby
ohaibbq has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
<Ox0dea> zotherstupidguy: Unlikely.
irobevjodu has quit [Ping timeout: 272 seconds]
konsolebox has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Aswebb_ has joined #ruby
arup_r has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Timba-as has quit [Remote host closed the connection]
lidenskap has joined #ruby
freggles has quit []
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
Aswebb_ has quit [Ping timeout: 240 seconds]
<ex0ns> Hi ! I've an issue with a Weechat script written in Ruby, nobody in #weechat was able to help me so I'll try here (I really have no idea of what it could be). I want to load the Sequel gem into my script, but when I load the script in Weechat I get the following error : "module_eval': cannot load such file -- sequel (LoadError)"
riotjones has joined #ruby
AlphaAtom has joined #ruby
<Radar> ex0ns: Try "gem install sequel" first
lidenskap has quit [Ping timeout: 265 seconds]
<ex0ns> Radar: I've done it and my script works when I load it in IRB
<Radar> ex0ns: then I don't know what could be going wrong.
<ex0ns> One strange point is that when I require rubygems
<ex0ns> I have the following error [200~ uninitialized constant Encoding::UTF_7 (NameError)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcesariox has quit [Remote host closed the connection]
<Ox0dea> Which versions of Ruby and WeeChat are you using?
<ex0ns> ruby 2.2.0
<ex0ns> Weechat 1.2
yardenbar has joined #ruby
unshadow has joined #ruby
<Ox0dea> ex0ns: I suspect using an older version of Ruby would magically solve your problem. :/
<ex0ns> I read that on Stackoverflow
<Ox0dea> Did you try it?
<ex0ns> I will try but I would love to understand why
ixti has quit [Read error: Connection reset by peer]
<Ox0dea> It's very likely to do with WeeChat's plugin system mucking about with $LOAD_PATH.
ScriptGeek has joined #ruby
<ex0ns> Ok i'm installing ruby 1.9 to see
arup_r has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
multiscan has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
<ex0ns> Ox0dea: thank you for your help
<ex0ns> if it works I might try to look deeper why it's not working
<Ox0dea> ex0ns: Did downgrading do the trick?
<Ox0dea> Ah, then thanks aren't in order just yet. :P
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arturaz has joined #ruby
Rickmasta has joined #ruby
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
conanza has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conanza has quit [Client Quit]
Affix has quit [Quit: Affix - https://affix.me]
Xiti has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
tubuliferous has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has joined #ruby
<yardenbar> Hi, I'm new to ruby so little guidance is needed. I'm trying to use https://github.com/siebertm/parse-cron to determine next cron execution time, can someone help? the example doesn't show how to read the 'crontab -l' content
tubuliferous has quit [Ping timeout: 246 seconds]
Brozo has joined #ruby
shuber_ has joined #ruby
fabrice31 has joined #ruby
ta has joined #ruby
ScriptGeek has quit [Ping timeout: 240 seconds]
Muhannad has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
tyfighter has quit [Quit: tyfighter]
shuber_ has quit [Ping timeout: 272 seconds]
surs has joined #ruby
sigurding has joined #ruby
iwishiwerearobot has joined #ruby
michael_mbp has quit [Excess Flood]
gauke has joined #ruby
michael_mbp has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
doodleha_ has joined #ruby
ta has quit [Remote host closed the connection]
zacts has joined #ruby
Hounddog has joined #ruby
<zacts> b haskell
doodleha_ has quit [Read error: Connection reset by peer]
ohaibbq has quit [Remote host closed the connection]
saadq has quit [Remote host closed the connection]
Guest24 is now known as lele_
saadq has joined #ruby
<Aeyrix> yardenbar: It says in the README that this is not a scheduler. It's not reading crontab -l.
<Aeyrix> It's making a fake crontab with the arguments you give, and then telling you when the next occurrence would be if that was in your crontab.
<yardenbar> I don't need to schedule crons
<yardenbar> I only need to determine the next run
<Aeyrix> My point was it's not reading your crontab at all.
<Aeyrix> It's just parsing the syntax.
doodleha_ has joined #ruby
<yardenbar> So I'll manually parse the 'crontab -l' time config and pass it to the gem
<yardenbar> 10x Aeyrix
<Aeyrix> If... if you want.
msgodf has joined #ruby
<Aeyrix> Is there any reason you're parsing crontab with Ruby and not just parsing it manually?
<sevenseacat> and people wonder why we drink.
<Aeyrix> Hah.
doodleha_ has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 250 seconds]
Ilyes512 has joined #ruby
asmodlol has joined #ruby
doodleha_ has joined #ruby
edwinvdgraaf has joined #ruby
arietis has joined #ruby
roshanavand has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
doodleha_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
kwd has joined #ruby
dumdedum has joined #ruby
prillian5 has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
saadq has quit [Remote host closed the connection]
doodleha_ has quit [Ping timeout: 272 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> im trying to setup an app that just redirects all my traffic on one domain to another
<tejasmanohar> like .io -> .com
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> use a proxy server
<tejasmanohar> but redirect even the query parameters, url directories, etc.
<tejasmanohar> hm lemme look apeiros
<apeiros> or do a DNS redirect
ScriptGeek has joined #ruby
juanpaucar has joined #ruby
<tejasmanohar> apeiros: i tried CloudFlare page rules but it seemed to not redirect my ? parameters
<apeiros> I don't know what cloudflare page rules are
<tejasmanohar> rules for URL forwarding in the CloudFlare panel
<tejasmanohar> but yeah np
User458764 has quit [Ping timeout: 264 seconds]
<sevenseacat> definitely something to do at the server config level, eg. with a server alias if using apache
<Aeyrix> wtf just use a CNAME record.
<sevenseacat> or even higher like that.
baweaver has quit [Remote host closed the connection]
<sevenseacat> though having the same content available at two separate URLs is silly in terms of SEO (if you believe in that)
ramfjord has joined #ruby
ta has joined #ruby
User458764 has joined #ruby
MatthewsFace has joined #ruby
ta has quit [Remote host closed the connection]
ScriptGeek has left #ruby [#ruby]
juanpaucar has quit [Ping timeout: 256 seconds]
rubie has quit [Remote host closed the connection]
stoffus has joined #ruby
<tejasmanohar> sevenseacat: redirect, not mask... so "same content" won't be available at two URLs i guess
<sevenseacat> ah true.
<sevenseacat> my bad.
<tejasmanohar> no problem
doodleha_ has joined #ruby
<Aeyrix> tejasmanohar: nginx or?
Ox0dea has left #ruby ["WeeChat 1.2-rc1"]
<Aeyrix> server { server_name your.first.address; listen 80 default; rewrite 301 $scheme://your.other.address.com/$uri; }
<Aeyrix> newlines between semicolons though
doodleha_ has quit [Read error: Connection reset by peer]
<tejasmanohar> Ah yeah
<tejasmanohar> Let me look. Right now, I'm using Heroku w/ two domains pointed to the 1 app... but now that we bought .com I'm going to move .io to another app to redirect everything to the .com.
lidenskap has joined #ruby
user121212 has joined #ruby
Hirzu has joined #ruby
tesuji has joined #ruby
<tejasmanohar> Aeyrix: about your comment earlier, i don't think CNAME can do http redirects...?
<tejasmanohar> were you also thinking masking, not redirection?
dumdedum has quit [Ping timeout: 245 seconds]
<user121212> Hello, I have image url and I want save it into the disk, Can I save the file without specifying the file name?
alex88 has joined #ruby
hanmac has joined #ruby
<tejasmanohar> oh looks like I can just do this instead if i dont have Nginx, Aeyrix https://github.com/kenmickles/heroku-redirect/blob/master/web.js
<tejasmanohar> do you see any downsides to redirection through an app like this vs nginx conf?
<apeiros> user121212: since files always require a filename - no. you must specify a name.
doodleha_ has joined #ruby
bronson has joined #ruby
Hirzu_ has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
multiscan has joined #ruby
multiscan has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
yh__ has joined #ruby
<apeiros> web.js… I don't even…
multiscan has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
kp666 has joined #ruby
<apeiros> sevenseacat: I'll take whatever you took.
doodleha_ has quit [Read error: Connection reset by peer]
<sevenseacat> :D
<sevenseacat> its actually some server thing, guessing nodejs
<apeiros> from the code, I'd assume so too
<apeiros> but I'd not use node.js for this for the same reason I wouldn't use ruby either.
<sevenseacat> same.
<sevenseacat> but at least it's not client-side.
<apeiros> yeah, before clicking I actually thought it might be one of those old window.location= thingies
<apeiros> those times…
<sevenseacat> window.location.href = window.location.href.sub('.io', '.com') >_>
<apeiros> replace, no?
<sevenseacat> whatever <_<
<apeiros> :D
mengu has joined #ruby
Juanchito has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
joonty has joined #ruby
Brozo has quit [Quit: Leaving...]
user121212 has quit [Quit: Page closed]
doodleha_ has joined #ruby
livathinos has joined #ruby
A205B064 has quit [Ping timeout: 244 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
doodleha_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Alina-malina has joined #ruby
sevenseacat has joined #ruby
<tejasmanohar> sevenseacat: yeah its node w/ express
<tejasmanohar> apeiros: "but I'd not use node.js for this for the same reason I wouldn't use ruby either." - what is that reason?
doodleha_ has quit [Read error: Connection reset by peer]
<sevenseacat> because it's a server configuration concern
<tejasmanohar> i guess its just overkill for something that could easily be handled withn server config
<tejasmanohar> yeah
<sevenseacat> not an application-level concern
<apeiros> tejasmanohar: cannons to shoot sparrows
<tejasmanohar> eh heroku messes up this picture :P - i could setup something on a linux box i guess
_blizzy_ has quit [Ping timeout: 256 seconds]
Muhannad has quit [Ping timeout: 272 seconds]
<tejasmanohar> agreed
<apeiros> I think the english idiom is: use a sledgehammer to crack nuts
<tejasmanohar> yea
dumdedum has joined #ruby
rdark has joined #ruby
saadq has joined #ruby
anisha has joined #ruby
doodleha_ has joined #ruby
<Aeyrix> Web.js
<Aeyrix> My sides are currently reporting from planet Venus
doodleha_ has quit [Read error: Connection reset by peer]
slackbotgz has joined #ruby
<al2o3-cr> !spider
bakednotfried has joined #ruby
<Aeyrix> You what?
doodleha_ has joined #ruby
<tejasmanohar> ?
<al2o3-cr> i've got to many terminals open :(
<al2o3-cr> and i'm skipping back and forth
shuber_ has joined #ruby
<sevenseacat> yay I made all the code work! ...now I need tofix all the tests
doodleha_ has quit [Read error: Connection reset by peer]
<Aeyrix> That sounds
<Aeyrix> Backwards
<sevenseacat> shh
<Aeyrix> Aren't you meant to do it the other way?
MatthewsFace has quit [Remote host closed the connection]
<Aeyrix> WOW
<sevenseacat> probably
<apeiros> driven tests design
<tejasmanohar> bdd (but i shouldn't be talking :P )
<Aeyrix> Lmao
<tejasmanohar> lol
<sevenseacat> (and by fix i mean delete tests as theyre no longer necessary)
<Aeyrix> O
<tejasmanohar> LOL
dain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> sounds microsoftian
<apeiros> "our tests fail!" - "delete the test and specify the current behavior as intended"
doodleha_ has joined #ruby
dain has joined #ruby
charliesome has quit [Quit: zzz]
<tejasmanohar> sevenseacat: about your comment from earlier, do you think i should serve all my content on either a www subdomain or apex domain and redirect the other but not both?
dain has quit [Client Quit]
<tejasmanohar> (from the SEO perspective)
<Aeyrix> Help
<Aeyrix> Me
<sevenseacat> definitely.
<sevenseacat> pick one and redirect the other to it.
<Aeyrix> Don't use www
<sevenseacat> I'd lean that way also.
bruno- has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros> Aeyrix: but it means WORLD WIDE WEB! everybody loves the www. how'd you know the url is not about ftp!?
TheHodge has joined #ruby
shuber_ has quit [Ping timeout: 272 seconds]
<sevenseacat> :P
ta has joined #ruby
<Aeyrix> Wait
<Aeyrix> I don't even use subdomains for that.
<sevenseacat> must be late in theday, i actually started typing a reply to that.
<Aeyrix> Do you ssh into ssh.domain.com?
<tejasmanohar> sevenseacat: yeah, i don't like the www either
<Aeyrix> Even my IRC network is in the top level.
<apeiros> telnet.domain.com
<apeiros> what's ssh?
<Aeyrix> domain.com
<sevenseacat> even later for Aeyrix who needed the sarcasm tags :P
<Aeyrix> Lol
<Aeyrix> Oi
<Aeyrix> Wait shit
<Aeyrix> You were being sarcadgic
<Aeyrix> ... Sarcastic *
<Aeyrix> Thanks phone.
* hanmac1 votes for <sarcasm> tags in HTML6
chthon has joined #ruby
saadq has quit [Remote host closed the connection]
* adaedra agrees with hanmac1
<Aeyrix> That's <em>
<tejasmanohar> oh... looks like cloudflare does the trick! http://i.imgur.com/h3bfmnh.png
saadq has joined #ruby
* tejasmanohar just realizes he wasted time looking at that nodejs redirect server :\
<tejasmanohar> wow
<sevenseacat> tejasmanohar: success.
<adaedra> nodejs for a redirect ?
<apeiros> but you know, I now wonder why the hell I have smtp./mail./pop3./imap./…
<adaedra> nginx does that itself
<Aeyrix> Cloudflare is radical.
<sevenseacat> adeponte: herokuz0r.
<apeiros> I guess I should question my setup once in a while…
<tejasmanohar> adaedra: heroku :\
<sevenseacat> *adaedra
<Aeyrix> Heroku is lame.
<adaedra> tejasmanohar: ah, ok
<adaedra> sevenseacat: ?
<sevenseacat> i was telling you it was herokuz0r.
<adaedra> oh.
<tejasmanohar> adaedra: sevenseacat tagged the wrong person earlier :P
<Aeyrix> Heroku as a service.
<sevenseacat> and i failed and got the wrong name. sorry adeponte.
<tejasmanohar> Aeyrix lol
<adaedra> what's with all the people with nicks beginning with ad
<Aeyrix> Ae represent.
<tejasmanohar> we should ban it.
<tejasmanohar> jk
<sevenseacat> all of them.
* sevenseacat nods.
bruno- has quit [Ping timeout: 265 seconds]
<tejasmanohar> No "ae" either...
rubie has quit [Remote host closed the connection]
<adaedra> æ
<Aeyrix> Yas
<tejasmanohar> ^ yeah, that's fine adaedra :P
<tejasmanohar> there goes everyones tab completion
<adaedra> too bad nick rules don't accept that
<tejasmanohar> well, that too :P
camilasan has quit [Remote host closed the connection]
<Aeyrix> That's because irc is garbage
camilasan has joined #ruby
yh__ has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
<apeiros> Aeyrix: don't you insult garbage. garbage is useful.
<Aeyrix> Hurr
joonty has quit [Ping timeout: 246 seconds]
<sevenseacat> whats the shortcut for @foo.each { |f| something(f) } again
* sevenseacat lazy
<apeiros> @foo.each(&method(:something)) # fugly IMO
<adaedra> @foo.lazy
<sevenseacat> apeiros: ta
<adaedra> poor ta
segfalt has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
andikr has joined #ruby
jbomo has quit [Ping timeout: 272 seconds]
<tejasmanohar> wheregoes.com is so useful
doodleha_ has joined #ruby
<Aeyrix> Curl
<tejasmanohar> Aeyrix: i dont wanna turn off browser integrity checks on cloudflare :P
<tejasmanohar> even tho theyre stupid, anyone can get around them using like phantomjs to render js
<tejasmanohar> or selenium
<apeiros> "It's a unique utility that lets you … perform competitive intelligence in a way that wasn't possible before." - say what?
<tejasmanohar> ? apeiros
yh__ has joined #ruby
<tejasmanohar> what are we referring to here?
Aswebb_ has quit [Ping timeout: 272 seconds]
<apeiros> tejasmanohar: your url, wheregoes.com
Affix has joined #ruby
<Aeyrix> That site
<tejasmanohar> apeiros: oh lol, i didn't read the description or any of the text there... i just found the tool and it served me well
<tejasmanohar> "It's a unique utility that lets you troubleshoot links and perform competitive intelligence in a way that wasn't possible before."
Affix is now known as Guest85503
<tejasmanohar> competitive intelligence wtf
<apeiros> I guess it's the same as with lyrics
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros> if you enjoy a song, never try to understand the lyrics
<tejasmanohar> "you won't be disappointed"... what is this? an ad?
<tejasmanohar> lol
<tejasmanohar> amen
<Aeyrix> Only $39.99 a month.
edwinvdgraaf has quit [Read error: Connection reset by peer]
<sevenseacat> apeiros: lol
<adaedra> apeiros: there are song I enjoy which I also enjoy the lyrics.
<adaedra> songs
<sevenseacat> 90% of song lyrics are just meaningless
<sevenseacat> i sing along to them all anyway
fedexo has quit [Ping timeout: 265 seconds]
<sevenseacat> sometimes theyre even in english
edwinvdgraaf has joined #ruby
Guest85503 is now known as Affix
doodleha_ has joined #ruby
<apeiros> adaedra: yeah. it happens. but I think my general experience is like 9 out of 10 songs I stop liking once I actually listen to the lyrics.
<sevenseacat> some songs are downright disturbing when you listen to the lyrics
Affix is now known as Guest39165
<adaedra> Lucy in the sky with diamonds ♪
<apeiros> yellow submarine…
<sevenseacat> theres one example i have on the tip of my tongue but i cant remember it
michael_mbp has quit [Excess Flood]
doodleha_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<tejasmanohar> for detecting a mobile browser and displaying a share on email vs a share on SMS link... there's nothing better than user agents, right?
Guest39165 has quit [Changing host]
Guest39165 has joined #ruby
<adaedra> At least you can taste it, sevenseacat
<sevenseacat> tastes like failure.
<adaedra> tejasmanohar: you can also have both links, and hide based on CSS media queries
michael_mbp has joined #ruby
Guest39165 is now known as Affix
<adaedra> but it may be less accurate
<tejasmanohar> adaedra: yeah but i dont like to change _functionality_ based on screen dimensions... only display
<tejasmanohar> yeah
oo_ has joined #ruby
<tejasmanohar> sorry, i'm not really talking about ruby here today am i :P ... but i guess none of us are
<Aeyrix> Nobody needs help right now
doodleha_ has joined #ruby
<tejasmanohar> if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
<tejasmanohar> wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1
<tejasmanohar> u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(
<tejasmanohar> g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v
<tejasmanohar> )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm
<sevenseacat> um
<tejasmanohar> (al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) isMobile = true;
<sevenseacat> !mute tejasmanohar
<adaedra> um
<sevenseacat> did it work?
<adaedra> it seems
<sevenseacat> \o/
<ytti> god hates regexp
<ytti> is how i picket conferences
tejasmanohar has quit [Quit: WeeChat 1.1.1]
<adaedra> rip
<sevenseacat> !unmute tejasmanohar
tejasmanohar has joined #ruby
<sevenseacat> hmm.
<tejasmanohar> sorry about that.
<adaedra> ruboto seems to take its time sometimes.
<Aeyrix> Looks like tejasmanohar needs help.
<Aeyrix> But not of the ruby kind.
<adaedra> tejasmanohar: gist
<tejasmanohar> did __not__ mean to paste that in IRC. yeah Aeyrix different kinda help, sleep
<Aeyrix> :P
doodleha_ has quit [Read error: Connection reset by peer]
<tejasmanohar> adaedra: i didn't even mean to show it to IRC in general :P - that was for the next workspace ugh
<adaedra> UGH
<adaedra> Go to sleep :)
<tejasmanohar> anyhow (/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent) is prob enough :P
<adaedra> BlackBerry still exists?
<tejasmanohar> yeah cut that one too
<Aeyrix> Yeah
Dakuan has joined #ruby
yh__ has quit [Ping timeout: 256 seconds]
doodleha_ has joined #ruby
<tejasmanohar> also saw request.user_agent =~ /Mobile|webOS/ around the web but not sure how much that covers O.o
<adaedra> Well, then begins the loong path of finding all devices and test :/
yeticry has quit [Ping timeout: 255 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
<tejasmanohar> adaedra: or just going with the big regex :P
vivekananda has quit [Ping timeout: 244 seconds]
<adaedra> wouldn't big regex also means reduced performance?
Igorshp has joined #ruby
yeticry has joined #ruby
<Aeyrix> Yes
doodleha_ has joined #ruby
<tejasmanohar> adaedra: yeah
<tejasmanohar> /iPhone|iPod|iPad|Android/ wont by a considerable amount though
<adaedra> mh
<Aeyrix> It wouldn't by any noticeable amount
<adaedra> I thought there was 'iOS' in iOS Safari User-Agent
<tejasmanohar> idk, i gotta check on that
<tejasmanohar> has a _lot_ of upvotes on SO and no huge downvotes in comments so i suppose it'd work but obv i have to check
Takle has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<ljarvis> it catches Mobile.. also, you should use Mobi because that's what opera mobile uses iirc
<pipework> What are you trying to do, exactly?
<adaedra> Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4
<adaedra> What a mess U_U
<Aeyrix> User agents are moronic
saadq has quit [Remote host closed the connection]
<tejasmanohar> pipework: display a link to share via sms if its mobile, display a link to share on email if its not
<tejasmanohar> "mobile" to whatever extent i can get
Mon_Ouie has joined #ruby
<pipework> Why not just display the link always?
<pipework> Some computers can actually send SMS messages.
lidenskap has joined #ruby
ArchRogem has joined #ruby
Rixius has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
spider-mario has quit [Remote host closed the connection]
bronson has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
doodleha_ has joined #ruby
tubuliferous has joined #ruby
lidenskap has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
selu has joined #ruby
SouL_|_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
SouL_|_ has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
withnale_ has joined #ruby
psyprus has joined #ruby
<tejasmanohar> pipework: yeah, could... but i like this 3 icon layout http://i.imgur.com/kTkFeTw.png
peteykun has joined #ruby
<tejasmanohar> (ik thats a terrible reason)
workmad3 has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
saadq has joined #ruby
arietis has quit [Quit: Leaving.]
<tejasmanohar> (additionally, most computers cant and i dont wanna confuse ppl or show them what they dont need most of the time)
creakybones has quit [Ping timeout: 255 seconds]
<adaedra> why does facebook and twitter icons look good when e-mail icon is pixelized?
<pipework> Computers don't want anything.
Mia has joined #ruby
<pipework> tejasmanohar: Apple machines, I hear, can handle SMS, so there's that whole market.
<pipework> Something with their messages app.
tubuliferous has quit [Ping timeout: 264 seconds]
<tejasmanohar> pipework: oh i guess so with the new OS... hm
<adaedra> As long as a iPhone is paired, I'd say
<pipework> I don't know, but I'd not personally bother with detecting user agents.
<tejasmanohar> i dont know if it handles the sms: URIs though.... anyone wanna check?
troulouliou_dev has joined #ruby
<pipework> Make your wobsite just work with many different sizes of viewport and then go home.
fedexo has joined #ruby
<tejasmanohar> SMS URI isnt even publicly supported by Apple sooo i would check their docs but no
<tejasmanohar> pipework: i am home
<adaedra> I'd have on my home computer, but I can't
<pipework> It's a phrase.
<tejasmanohar> but yeah i see where youre coming from
<tejasmanohar> im kidding man
<pipework> You might be able to query the client with JS whether there's any SMS supported protocol associations set up.
<pipework> I prefer detecting features over detecting clients.
Igorshp has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 272 seconds]
<sevenseacat> most people do.
joonty has quit [Quit: joonty]
workmad3 has quit [Ping timeout: 240 seconds]
<pipework> sevenseacat: TBH, I prefer detecting dollars over most things.
<sevenseacat> aw snap.
c0m0 has joined #ruby
swerter has joined #ruby
ki0 has joined #ruby
multiscan has quit [Remote host closed the connection]
platzhirsch has joined #ruby
multiscan has joined #ruby
FernandoBasso has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
startupality has joined #ruby
arietis has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
websoftwarez has joined #ruby
asmodlol has joined #ruby
arup_r has joined #ruby
websoftwarez has quit [Changing host]
websoftwarez has joined #ruby
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
rippa has joined #ruby
ikeike443 has quit [Quit: Leaving...]
ramfjord has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
saadq has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
platzhirsch has joined #ruby
doodleha_ has joined #ruby
mengu has quit [Remote host closed the connection]
simpyll has quit [Quit: simpyll]
Aswebb_ has joined #ruby
gauke has quit [Quit: gauke]
ringarin has joined #ruby
saadq has joined #ruby
doodleha_ has quit [Ping timeout: 240 seconds]
<arup_r> why this regex is not working ?
asmodlol has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
<arup_r> sorry this one -- http://rubular.com/r/TFgoxHlGAM
juanpaucar has joined #ruby
<jhass> arup_r: because neither /colour nor /wheels follows in your example
<adaedra> arup_r: https://www.debuggex.com
<arup_r> well
<polysics> hi!
<jhass> and acutally not even the /
<polysics> regex :)
alexherbo2 has joined #ruby
<_ht> arup_r: wouldn't it be easier to split the string on /
<_ht> And work from there?
<polysics> I have a string like "part num 345-58 x 21" and would like to cap "3455821" in one single expression. Is that even possible?
Igorshp has quit [Remote host closed the connection]
<jhass> arup_r: http://rubular.com/r/F5rEJCw12d should make it a bit clearer
<al2o3-cr> polysics: "part num 345-58 x 21".scan(/\d+/)*''
<jhass> arup_r: what the actual/best solution to your problem is is impossible to tell from the examples you provided
<adaedra> >> "part num 345-58 x 21".scan(/\d+/).join
asmodlol has joined #ruby
<ruboto> adaedra # => "3455821" (https://eval.in/370061)
<polysics> al2o3-cr: nice, thanks
quimrstorres has joined #ruby
selu has quit [Read error: Connection reset by peer]
<arup_r> jhass: its Ok.. I got the hints
selu has joined #ruby
peteykun has quit [Quit: Leaving]
selu has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 265 seconds]
selu has joined #ruby
Igorshp has joined #ruby
timonv has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
doodleha_ has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
lifenoodles has quit [Quit: ZNC - http://znc.in]
doodleha_ has quit [Read error: Connection reset by peer]
<_ht> Does anyone know if there are (long) logs of this channel available someplace?
<al2o3-cr> _ht: check /topic
<_ht> Thanks, that last bit was hidden by the GUI :-(
doodleha_ has joined #ruby
Dakuan has quit []
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
doodleha_ has quit [Read error: Connection reset by peer]
saadq has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 265 seconds]
proxima has joined #ruby
quimrstorres has joined #ruby
<proxima> I have installed shopify_api and shopify_cli too. But still on writing 'shopify' command in terminal this gives error: shopify command is no longer bundled with shopify_api. if you need these tools, install shopify_cli gem. Thanks in advance.
startupality has joined #ruby
<jhass> proxima: what does type -a shopify print?
workmad3 has joined #ruby
<proxima> jhass: you mean to write "-a shopify" in command prompt? I wrote this then it gives: -a is not recognised as internal or external command, operable or batch file.
doodleha_ has joined #ruby
<jhass> no, type is the command
granthatcher has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
poguez_ has quit [Quit: Connection closed for inactivity]
albert_delta has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
<proxima> jhass: the system cannot find the file specified. error occured while processing: -a.the system cannot find the file specified. error occured while processing: shopify
<arup_r> But I trust there is a better regex for that
<arup_r> I am not good in Regex mapping
<arup_r> :/
Igorshp has quit [Read error: Connection reset by peer]
<jhass> proxima: that's for running: type -a shopify ? what's your shell?
Igorshp has joined #ruby
oo_ has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
<proxima> I am writing it in comand prompt. Please specify where i am supposed to write it and what line.
<proxima> jhass: I am new to this.
bronson has joined #ruby
mengu has joined #ruby
<jhass> "command prompt"? so you're on windows?
<proxima> jhass: yes I am on windows.
oo_ has joined #ruby
<jhass> that would've been some important piece of information ;)
<proxima> jhass: ok so what should I do now to solve the issue?
<jhass> mh, I have no clue how to debug $PATH issues on windows
GriffinHeart has quit [Remote host closed the connection]
<jhass> does ruby -S shopify print anything different?
Takle has joined #ruby
GriffinHeart has joined #ruby
<adaedra> what's the issue, jhass proxima ?
krz has joined #ruby
<proxima> jhass: no problem. Thanks. but i tried to make the environment path to be clear in windows but still its giving error. Thanks for your help
<adaedra> proxima: what does `echo %PATH%` outputs?
chinmay_dd has quit []
bronson has quit [Ping timeout: 246 seconds]
mandarinkin has joined #ruby
<proxima> adaedra: It gives big list of c:Program data etc.
<adaedra> proxima: to copy from command prompt, click on program icon, go to Edit > Select, select the output (rectangular select), and press enter, iirc
<proxima> adaedra: This is the exact output C:\Users\wizrocket\Desktop\Hello_World>echo %PATH% C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\Sy stem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\I ntel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64; C:\Program Files\Java\jdk1.8.0_25\bin; C:\Program Files (x86)\Skype\Phone\; C:\ Python27\; C:\Python27\Script
Takle has quit [Ping timeout: 250 seconds]
<adaedra> mmmh, that's weird, I see no reference to Ruby at all
arup_r has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 246 seconds]
<adaedra> How did you install Ruby?
<proxima> adaedra: yes but that should not happen, as while installing I marked the boxes for adding the path to environment. So, what you suggest now?
<sevenseacat> its incomplete, thats likely why
GriffinHeart has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
<adaedra> proxima: are you sure the whole content of output was pasted, as IRC has a message length limit? Try going through gist
Takle has joined #ruby
Igorshp has joined #ruby
iamdoo2 has quit []
<proxima> adaedra: yeah you are right more than half part was not copied here. here is the rest part: C:\Python27\Lib;C: \Python27\DLLs;C:\Python27\Lib\lib-tk;C:\Ruby22-x64\bin;C:\Windows\system32\Wind owsPowerShell\v1.0\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32
<proxima> C:\W indows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\P rogram Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\Ope nCL SDK\3.0\bin\x64; C:\Program Files\Java\jdk1.8.0_25\bin;
<adaedra> Looks more like it
<proxima> ;C:\Program Files (x 86)\Skype\Phone\;C:\Program Files\Java\jdk1.8.0_25\bin;;C:\Python27\;C:\Python27 \Scripts\
<proxima> adaedra: so ruby is here. Now whats the issue. Any further checking parameter?
<adaedra> proxima: gem env, but please, gist it this time rather than pasting it here ;)
startupality has quit [Quit: startupality]
sepp2k has quit [Ping timeout: 264 seconds]
multiscan has quit [Remote host closed the connection]
multiscan has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
<al2o3-cr> Is CGI.h same as CGI.escapeHTML ?
<adaedra> proxima: you alive?
<proxima> adaedra: If you dont mind. Can you tell how to gist instead of copy-paste. i got one method by github, but due to some network error I am not able to access it. So, tell me if any other way of gist is available.
<adaedra> ah
n008f4g_ has joined #ruby
<adaedra> there's other paste system available, I don't remember which currently :x
shuber_ has joined #ruby
<proxima> adaedra: so I hope you do not mind if I again paste the results over here.
<adaedra> I'm sure lot of people will mind, see topic
<adaedra> try with pastie.org
Ropeney has joined #ruby
<adaedra> I think you can redirect output in a file like in linux (gem env > file.txt) if it's easier than copy-paste
<adaedra> But I'm not sure, haven't used Windows console for a while
startupality has joined #ruby
<proxima> adaedra: here it is: http://pastie.org/10207798
joonty has joined #ruby
<adaedra> thanks, let me see
shuber_ has quit [Ping timeout: 255 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
arup_r has joined #ruby
<adaedra> proxima: does the shopify-cli command works?
bogdanteleaga has quit [Ping timeout: 265 seconds]
prillian5 has quit [Ping timeout: 272 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
<proxima> 'shopify_cli' is not recognized as an internal or external command, operable program or batch file.
quimrstorres has quit [Remote host closed the connection]
<adaedra> with a dash
<adaedra> not an underscore
mtakkman has joined #ruby
mikecmpbll has joined #ruby
mengu has joined #ruby
<adaedra> looks like so
<adaedra> isn't that what you want?
AlphaAtom has joined #ruby
<proxima> The error is this: I have installed shopify_api and shopify_cli too. But still on writing 'shopify' command in terminal this gives error: shopify command is no longer bundled with shopify_api. if you need these tools, install shopify_cli gem.
<adaedra> yeah
idakyne has joined #ruby
idakyne has quit [Remote host closed the connection]
<adaedra> it seems that they renamed the command when moving in a separate gem
<adaedra> so you should use shopify-cli in place of shopify
idakyne has joined #ruby
chipotle has joined #ruby
<proxima> adaedra: yes, thanks a lot. :)
<adaedra> yw
fabrice31 has quit [Remote host closed the connection]
prillian5 has joined #ruby
sk321 has joined #ruby
idakyne has quit [Quit: idakyne]
Rickmasta has joined #ruby
DEA7TH has joined #ruby
quimrstorres has joined #ruby
tejasmanohar has quit [Ping timeout: 264 seconds]
wildroman2 has joined #ruby
startupality has quit [Quit: startupality]
arup_r has quit [Ping timeout: 258 seconds]
tubuliferous has joined #ruby
startupality has joined #ruby
vikaton has joined #ruby
startupality has quit [Client Quit]
saadq has joined #ruby
leafybasil has joined #ruby
anaeem1 has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
DLSteve_ has joined #ruby
casadei has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saadq has quit [Ping timeout: 264 seconds]
<proxima> I am getting this(http://pastie.org/10207834) error on running: shopify-cli console test-store-1017.myshopify.com. I am following this documentation https://docs.shopify.com/api/introduction/using-the-api-console
<jhass> sounds like you should create a file called .myshopify.com.yml and you didn't
<adaedra> did you do the add step and did it work without errors?
<proxima> jhass: It was supposed to be created in previous step automatically
fabrice31 has joined #ruby
<proxima> yes I did the shopify-cli add without any error
<jhass> maybe you need to change some argument from the example?
<jhass> do you have any .yml file?
Igorshp has quit [Remote host closed the connection]
<jhass> (run dir to check)
idakyne has joined #ruby
bronson has joined #ruby
sigurding has quit [Quit: sigurding]
idakyne has left #ruby [#ruby]
casadei has quit [Ping timeout: 255 seconds]
krz has quit [Read error: Connection reset by peer]
FernandoBasso has quit [Quit: leaving]
<proxima> I have the required .yml file st location C:\Users\wizrocket\.shopify\shops.
<jhass> what is it called?
<proxima> test-store-1017.yml
oo_ has quit [Remote host closed the connection]
<jhass> then try shopify console using test-store-1017 without appending myshopify.com
<jhass> *shopify-cli
bronson has quit [Ping timeout: 265 seconds]
polysics has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<proxima> (y) worked without "using"
polysics has joined #ruby
krz has joined #ruby
oo_ has joined #ruby
<proxima> jhass: thanks
sk321 has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
Ilyes512 has joined #ruby
gauke has joined #ruby
yh__ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
albert_delta has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
_blizzy_ has joined #ruby
saadq has joined #ruby
yqt has joined #ruby
chinmay_dd has joined #ruby
banister has joined #ruby
last_staff has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtakkman has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
Oka has joined #ruby
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
crowell has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
shuber_ has joined #ruby
juanpaucar has joined #ruby
prillian5 has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
saadq has quit [Remote host closed the connection]
oo_ has joined #ruby
workmad3 has joined #ruby
phale has joined #ruby
zenguy_pc has quit [Ping timeout: 276 seconds]
phale has left #ruby ["Leaving"]
proxima has quit [Ping timeout: 246 seconds]
MatthewsFace has quit [Ping timeout: 265 seconds]
moeSeth_ has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
multiscan has quit [Remote host closed the connection]
psy_ has quit [Max SendQ exceeded]
shuber_ has quit [Ping timeout: 265 seconds]
multiscan has joined #ruby
konsolebox has quit [Quit: Leaving]
polysics has joined #ruby
ringarin has joined #ruby
yh__ has joined #ruby
sigurding has joined #ruby
barkerd427 is now known as zz_barkerd427
rodfersou has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
quimrsto_ has joined #ruby
sepp2k has joined #ruby
sepp2k has quit [Remote host closed the connection]
sepp2k has joined #ruby
quimrstorres has quit [Ping timeout: 245 seconds]
quimrstorres has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
uhsf has joined #ruby
jackcom has joined #ruby
<jackcom> i can do programming laguage, but i don’t know what to do?
quimrsto_ has quit [Ping timeout: 244 seconds]
<zotherstupidguy> thats nice http://ozh.org/contribution/
<jackcom> what is it? zotherstupidguy ?
<adaedra> zotherstupidguy: Mine would be rather gray :x
fabrice31 has quit [Remote host closed the connection]
<adaedra> ah no, it's just the text that is customizable, it's not based on your contributions
fabrice31 has joined #ruby
<adaedra> 2/10, could do better
<uhsf> Can someone please look at this error page https://24.37.137.250/store and help me fix the error?
but3k4 has joined #ruby
<adaedra> looks like it can't find bundler
<adaedra> did you install gem dependencies, and if you did, did you do it in the same user as the webserver runs and in the same ruby environment (i.e. rvm rbenv)
<adaedra> ?
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaffachief has quit [Quit: ZNC - http://znc.in]
Nahra has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<uhsf> gems are installed as user, I will try to install as root
<adaedra> no
<adaedra> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<DLSteve_> hello?
<adaedra> hallå
quimrsto_ has joined #ruby
<DLSteve_> sorry laged out for a sec
<DLSteve_> /usr/lib/ruby/site_ruby/2.2.0/ is user ruby version
<DLSteve_> /home/uhsf/.gem/ruby/2.2.2/ is passenger ruby version
<DLSteve_> so def an environment issue.
<adaedra> seems so
<adaedra> also, you changed nick without telling so, I was confused for a second here.
michael_mbp has joined #ruby
<DLSteve_> changed nick?
<uhsf> I didn't change nick.
quimrstorres has quit [Ping timeout: 256 seconds]
<adaedra> :|
<DLSteve_> I was trying to type "/home/uhsf/.gem/ruby/2.2.2/" but the / ate my input.
<DLSteve_> So I thought I had laged out.
<uhsf> the 2.2.0 and 2.2.2 thing is what I was looking to fix
<DLSteve_> you need to use the 2.2.2 env to install all the gems.
<adaedra> ah
<DLSteve_> your system default is 2.2.0 so that is what is causing the issue.
<adaedra> sorry, thought you were the same person, misread >_<
<DLSteve_> adaedra, np :)
<uhsf> DLSteve_: ruby -v gives ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
<uhsf> everything should be 2.2.2. I don't understand where the 2.2.0 comes from
<DLSteve_> uhsf, for your user. What user account is the server running?
<adaedra> Passenger has a setting to choose ruby version, no?
awkwords has joined #ruby
<uhsf> in nginx.conf I have passenger_ruby /usr/bin/ruby;
<DLSteve_> yah that is the 2.2.0 version
moeSeth_ is now known as moeSeth
<uhsf> how to use the 2.2.2 version?
_blizzy_ has quit [Ping timeout: 265 seconds]
AlphaAtom has joined #ruby
ldnunes has joined #ruby
mellohey has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<DLSteve_> are you using rvm?
bronson has joined #ruby
AlphaAtom has joined #ruby
<uhsf> no
<DLSteve_> how did you install ruby?
AlphaAtom has quit [Max SendQ exceeded]
awkwords has quit [Ping timeout: 265 seconds]
<uhsf> Arch Linux: sudo pacman -S ruby
phreakocious has quit [Ping timeout: 272 seconds]
<adaedra> the second one
<uhsf> you mean 2.2.2?
<uhsf> pacman -Syu updates packages
mengu has quit [Remote host closed the connection]
<adaedra> o_O
Takle has quit [Remote host closed the connection]
<uhsf> I guess it leaves older versions installed
<adaedra> no
senayar has joined #ruby
senayar has joined #ruby
phreakocious has joined #ruby
<ex0ns> unless you installed them from AUR
AlphaAtom has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 1.0.1]
<DLSteve_> try adding "export GEM_HOME=$(ruby -e 'print Gem.user_dir')" to your ~/.bashrc file and redo the bundle install.
BTRE has quit [Quit: Leaving]
<uhsf> DLSteve_: I already have export GEM_HOME="/home/uhsf/.gem/ruby/2.2.2" and PATH="${PATH}:/home/uhsf/.gem/ruby/2.2.2/bin" in my .bashrc
Rickmasta has joined #ruby
jmignault has joined #ruby
jaffachief has joined #ruby
<DLSteve_> uhsf, Yah I'm not sure then. Something I would have to look at.
<adaedra> uhsf: why do you set GEM_HOME?
<uhsf> nginx master process runs as root and worker process runs as nobody. maybe it's the problem?
<DLSteve_> adaedra, to make gems local to the user. The Arch doc recommends that setting as pacman is built in ruby.
<uhsf> adaedra: I used GEM_HOME because I had multiple gem versions at some point but now I cleaned up and only use 2.2.2
dorei has joined #ruby
<adaedra> mh
kp666 has quit [Remote host closed the connection]
kobain has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
serivich has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Ping timeout: 256 seconds]
banister has joined #ruby
nhhagen has joined #ruby
Akagi201 has quit [Remote host closed the connection]
banister has quit [Client Quit]
oo_ has joined #ruby
lolmaus has joined #ruby
uhsf has quit [Read error: No route to host]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
Mia has quit [Read error: No route to host]
davedev24_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
serivichi has joined #ruby
multiscan has quit [Remote host closed the connection]
multisca_ has joined #ruby
shuber_ has joined #ruby
bogdanteleaga has joined #ruby
fabrice31_ has joined #ruby
ArchRogem has joined #ruby
adac has joined #ruby
chinmay_dd is now known as randomDude
fabrice31 has quit [Ping timeout: 252 seconds]
zenguy_pc has joined #ruby
uhsf has joined #ruby
randomDude is now known as chinmay_dd
banister has joined #ruby
shuber_ has quit [Ping timeout: 255 seconds]
krz has joined #ruby
ebonics has joined #ruby
jayeshsolanki has joined #ruby
tjbiddle has joined #ruby
fgo has joined #ruby
Aswebb_ has joined #ruby
zz_barkerd427 is now known as barkerd427
Mia has quit [Read error: Connection reset by peer]
shazaum has joined #ruby
y0da has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
quimrstorres has joined #ruby
joshbamboo1 has joined #ruby
bogdanteleaga has quit [Ping timeout: 258 seconds]
tubuliferous has joined #ruby
quimrsto_ has quit [Ping timeout: 272 seconds]
WildBamboo-Josh has quit [Ping timeout: 255 seconds]
Aswebb_ has quit []
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackcom has left #ruby [#ruby]
chipotle has quit [Quit: cheerio]
tubuliferous has quit [Ping timeout: 255 seconds]
cirn0 has joined #ruby
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh__ has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
IrishGringo has joined #ruby
unshadow has quit [Ping timeout: 256 seconds]
mellohey is now known as mello
crazydiamond has joined #ruby
but3k4 has joined #ruby
pengin has joined #ruby
huddy has joined #ruby
c355E3B has joined #ruby
iamninja has joined #ruby
websoftwarez has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
serivich has quit [Quit: Leaving]
psy_ has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<shevy> adaedra do you do webdev stuff in ruby?
pengin has quit [Remote host closed the connection]
e1nh4nd3r has joined #ruby
griffindy has joined #ruby
sankaber has joined #ruby
pengin has joined #ruby
scripore has joined #ruby
quimrstorres has quit [Remote host closed the connection]
multisca_ has quit [Remote host closed the connection]
nfk has joined #ruby
mengu has quit [Remote host closed the connection]
<adaedra> shevy: yes
Oka has quit [Quit: さようなら]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
juanpaucar has joined #ruby
mengu has joined #ruby
yalue has joined #ruby
chinmay_dd has joined #ruby
Leef_ has joined #ruby
mahtennek has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
pengin has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
lb5tr has left #ruby ["WeeChat 0.4.2"]
multiscan has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
jespada has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
paulcsmith has joined #ruby
psyprus has joined #ruby
lektrik has joined #ruby
anaeem1 has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
paulcsmith has quit [Client Quit]
gluten_hell has joined #ruby
anaeem1_ has joined #ruby
bmurt has joined #ruby
paulcsmith has joined #ruby
Azulinho has joined #ruby
anaeem1_ has quit [Ping timeout: 244 seconds]
Leef_ has quit [Quit: Leaving]
vt102 has joined #ruby
bkxd has joined #ruby
pwattstbd has joined #ruby
ndrei has joined #ruby
Takle has joined #ruby
quimrstorres has joined #ruby
chinmay_dd has quit []
jstanton has quit [Remote host closed the connection]
banister has joined #ruby
senayar has joined #ruby
Takle_ has joined #ruby
Takle has quit [Remote host closed the connection]
polysics_ has joined #ruby
sanguisdex has quit [Quit: Leaving.]
ta has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 256 seconds]
sevenseacat has joined #ruby
lektrik has left #ruby ["Leaving"]
enebo has joined #ruby
dblessing has joined #ruby
sanguisdex has joined #ruby
DerisiveLogic has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
nfk has quit [Quit: yawn]
yqt has quit [Ping timeout: 265 seconds]
thiagovsk has joined #ruby
nettoweb has quit [Client Quit]
Neomex is now known as nexsoftware
nexsoftware is now known as nexsoftvare
krz has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
sgambino has joined #ruby
pwattstbd has quit [Ping timeout: 265 seconds]
mrmargolis has joined #ruby
mary5030 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
mrmargolis has quit [Client Quit]
ndrei has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
al2o3-cr has quit [Quit: the quieter you become, the more you are able to hear]
vivekananda has joined #ruby
al2o3-cr has joined #ruby
mengu has quit []
lavros has joined #ruby
yqt has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
scripore has joined #ruby
tvw has quit []
Xiti has joined #ruby
tvw has joined #ruby
quimrsto_ has joined #ruby
startupality_ has joined #ruby
bluOxigen has quit [Remote host closed the connection]
nfk has joined #ruby
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
quimrstorres has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
scripore has quit [Client Quit]
rom1504 has quit [Ping timeout: 272 seconds]
startupality has quit [Ping timeout: 264 seconds]
startupality_ is now known as startupality
al2o3-cr has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
rom1504 has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
Feyn has quit [Quit: Leaving]
anaeem1_ has joined #ruby
dstarh has joined #ruby
__chris has joined #ruby
kies has joined #ruby
<dudedudeman> ha, i see you guys summoned me while I was away, shevy
Akagi201 has joined #ruby
<adaedra> !summon dudedudeman
<apeiros> summon dudedudeman
<dudedudeman> yarp
<adaedra> narp
<apeiros> harsh. hope that doesn't result in split personality.
<dudedudeman> ha. i hope everyone had a good weekend
jerius has joined #ruby
<dudedudeman> i, made fajitas. #dealwithit
<adaedra> yep
<adaedra> B)
al2o3-cr has joined #ruby
quimrstorres has joined #ruby
[k- has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
lidenskap has quit []
nettoweb has joined #ruby
<dudedudeman> so a guy from our local ruby user group just launched a cool new site/tool
uhsf has quit [Ping timeout: 252 seconds]
<dudedudeman> it looks like it is a searchable base of gems, and then it rates them based on how well they've been maintained and how usable they are, and if they have good docs
That1Guy has joined #ruby
scripore has joined #ruby
quimrsto_ has quit [Ping timeout: 272 seconds]
DLSteve_ has quit [Remote host closed the connection]
<adaedra> looks nice
nettoweb has quit [Client Quit]
<dudedudeman> agreed
hanmac1 has quit [Quit: Leaving.]
<adaedra> would be good to have a comparaison feature
<dudedudeman> since i'm fairly new to the ruby community, i have a hard time trusting gems sometimes, especially if they're something that i don't know much about
<dudedudeman> oooo, that would be neat
<adaedra> a little bit like ruby-toolbox.org does, but with more complete and useful information
<adaedra> s/org/com/
yh__ has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
<dudedudeman> lol
anaeem1 has quit [Ping timeout: 244 seconds]
<dudedudeman> speaking of .org/.com, i had been building a e-commerce site for a buddy of mine, and we go to buy his domain, and come to find out his direct competitor had purchased a good while ago. .org was the only thing available. lol
<dudedudeman> cybersquatting is dumb
<adaedra> it is
<daxroc> Anyone know a pure ruby library to create an ISO image (win/linux/mac) ?
<adaedra> domain hacks are a good thing for that
<dudedudeman> domain hacks?
<adaedra> as you remember the TLD with it
jespada has quit [Read error: Connection reset by peer]
<adaedra> yeah, when you use the tld as part as the address
<adaedra> like dudedudem.an
jespada has joined #ruby
rbennacer has joined #ruby
<dudedudeman> ahhh, yeah i had seen a couple of those. i guess we wanted something for him that was easily just typeable
<adaedra> but heh, obtaining one is much harder.
<jhass> well, those 700 new gtlds help a bit
rbennacer has quit [Remote host closed the connection]
umgrosscol has joined #ruby
rbennacer has joined #ruby
<dudedudeman> hey! jhass said something and i actually understood all of those words!
<adaedra> :)
<jhass> heh
<dudedudeman> that's not a knock btw, you're just much more robust in your knowledge of this IRC's subject matter
<adaedra> jhass: true, it helps a bit.
<adaedra> now, what kind of hack will I be able to do with .paris?
<dudedudeman> sleepin.paris?
<dudedudeman> that could be a cool hotel/travel site
<jhass> taken, I bet
<adaedra> yep
<bkxd> menagein.paris
<adaedra> NXDOMAIN
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
balazs has joined #ruby
horsecowdog has joined #ruby
ixti has joined #ruby
sandelius has joined #ruby
unshadow has joined #ruby
schiz has joined #ruby
fu2ristiq has joined #ruby
northfurr has joined #ruby
fu2ristiq has left #ruby [#ruby]
gambl0re has quit [Ping timeout: 255 seconds]
cirn0 has quit [Remote host closed the connection]
That1Guy has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
krz has joined #ruby
workmad3 has joined #ruby
shuber_ has joined #ruby
volcanix has joined #ruby
lyuben_ has joined #ruby
tubuliferous has joined #ruby
Buck has joined #ruby
multiscan has quit []
<Buck> I'm trying to map an array to an associative array, but failing: h.each_with_index.map { |c,i| {c => i}}
<Buck> that will just give me an array of associative arrays with just one element
<Buck> how can do it correctly?
<jhass> it's called hash in Ruby, general name is map ;)
<jhass> so, what's h?
<apeiros> Buck: use to_h
<Buck> it's a string jhass
<ljarvis> do you actually want the index?
<Buck> yes ljarvis
<apeiros> >> [:a, :b, :c].each_with_index.to_h
<ruboto> apeiros # => {:a=>0, :b=>1, :c=>2} (https://eval.in/370433)
nhhagen has joined #ruby
<Buck> apeiros: that is what I'm looking for, but it doesn't work with strings?
<jhass> note that it'll overwrite duplicates with the last occurrence
<apeiros> >> ["a", "b", "c"].each_with_index.to_h
<ruboto> apeiros # => {"a"=>0, "b"=>1, "c"=>2} (https://eval.in/370434)
<apeiros> ^ um, yes it does?
Zai00 has joined #ruby
<Buck> my bad
<apeiros> otherwise, elaborate "doesn't work"
<Buck> I tried it on the wrong variable
horsecowdog has quit []
<Buck> thank you!
shuber_ has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
Kricir has joined #ruby
dopie has joined #ruby
hmnhf has joined #ruby
dopie has quit [Client Quit]
dopie has joined #ruby
failshell has joined #ruby
someword has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
tagrudev has quit [Remote host closed the connection]
railsraider has joined #ruby
davispuh has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
gusto has quit [Quit: Leaving]
poguez_ has joined #ruby
starship is now known as duracrisis
lxsameer has joined #ruby
IrishGringo has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
ascarter has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
nfk has quit [Quit: yawn]
jespada has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
tjohnson has joined #ruby
asmodlol has joined #ruby
powersurge has joined #ruby
jayeshsolanki has quit [Ping timeout: 264 seconds]
startupality has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
Buck has left #ruby ["Leaving"]
CustosLimen has joined #ruby
startupality has joined #ruby
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
jmignault has joined #ruby
casadei has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<izzol> hmm
someword has quit [Quit: Leaving.]
<izzol> how to handle the STDIN in ruby?
<izzol> I found few examples but now sure which method is the best.
<izzol> One is executing code with -n.
<izzol> I would like to do something like: $test = join( '', <STRING>); (perl:P)
Laptyp has joined #ruby
<Laptyp> hey
<izzol> of course <STDIN>.
Synthbread has quit [Quit: Leaving]
Synthead has joined #ruby
<jhass> izzol: prefer $stdin over STDIN
<jhass> STDIN is a backup for easier resetting of $stdin
<izzol> jhass: STDIN.gets ?
<jhass> no, $stdin.gets
juanpaucar has joined #ruby
<jhass> or plain gets from Kernel which delegates to ARGF.gets which delegates to $stdin.gets
riotjones has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
anisha has quit [Quit: Leaving]
stoffus has quit [Quit: leaving]
dsathe has joined #ruby
freerobby has joined #ruby
postmodern has joined #ruby
Osz has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
sinkensabe has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
juanpaucar has quit [Ping timeout: 255 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> anybody saw the hololens of microsoft, please tell me there is an opensource ver of that in the making!
<powersurge> I think the closest you'll get is google cardboard. which isn't open source and isn't anything like hololens
someword has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<powersurge> so not really afaik
gambl0re has joined #ruby
<mduk> there wasn't for kinect either until someone wrote them. give it time ;)
<powersurge> yea, but the current state of things the answer is no
<jhass> that idea is obvious, there will once the tools/materials become cheap enough
<mduk> that was the state of things with the kinect too until the state changed
<dsathe> Hello folks I have an interesting question. Suppose I have a fairly parallel application running multiple processes , each process runs a bunch of worker threads, using a shared variable (threads only read its value ) so mutex is probably not required (is this assumption valid ?). Now i would want to modify the shared variable without bringing down the process using signal.trap to do the bidding. What would be the implications of this
Osz has left #ruby [#ruby]
<jhass> hat depends a lot on the shared state, how it's used and how it's modified
<jhass> *that
ta has joined #ruby
Azulinho has quit [Quit: Leaving]
<ruboto> dsathe, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/8362270e760e28232f8e
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mduk> moral of the story? give it time :P
<dsathe> its a simple dict in the real use case
<dsathe> the threads lookup values from it
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<jhass> whether the shared state is a Fixnum or a Hash affects a real lot of my questions
senayar has quit [Remote host closed the connection]
Goldfish has joined #ruby
<dsathe> jhass: I really couldn't do that for reasons out of my hand , besides its a part of a large codebase so it would lack context , let me write the example to better illustrate the use case , gimme a bit
moeSeth has quit [Quit: Connection closed for inactivity]
<dsathe> it is a hash
Goldfish is now known as Guest14736
kinduff has joined #ruby
Guest14736 is now known as Agoldfish
<kinduff> good morning
nhhagen has joined #ruby
nexsoftvare is now known as Neomex
tejasmanohar has joined #ruby
<dsathe> this helps you better
<adaedra> use .rb extension in your gist, so we have color
Laptyp has quit [Quit: Leaving]
<jhass> dsathe: if it really is like that, you're safe without locking
nhhagen has quit [Client Quit]
northfurr has quit [Quit: northfurr]
Igorshp has joined #ruby
<jhass> in fact in MRI assigning key/values to the hash in place is safe, but not in say JRuby
<jhass> you can also edit gists ;)
<dsathe> yeah im using forking so on mri
davispuh has quit [Read error: Connection reset by peer]
davispuhh has joined #ruby
<jhass> oh, well, changing it in the parent process won't change it in the child processes
Ilyes512_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dsathe> i maintian a manager process that can modify the lookup for which im guessing signals is a good approach
<dsathe> The key question being what happens to each thread thats already started executing
<dsathe> each thread takes say 1-2 sec to run, IO intensive stuff hence this apporach to begin with
<jhass> assigning to an instance variable is atomic
<dsathe> what value will it see
<jhass> well, that's random
<jhass> depends on whether your signal handler runs before or after the thread read the instance variable
pdoherty has joined #ruby
<dsathe> in a more complex case if the lookup were a Array type and im using some select on it , a signal shows up while the select op is runing what happens in that case ?
<jhass> but that'll be true with locking too
<jhass> well, that's the cases you want to avoid
<dsathe> i know its rarae but that is a race condition as i understand the Array.select is not atomic
<jhass> which is why I asked for your usecase
snockerton has joined #ruby
<jhass> if you iterate, you want to lock (perhaps a read write lock)
<dsathe> haha fair point let me get rid of the other code that I probabluy do not want to expose and give you something more concrete, really appreciate the patience
<jhass> if you do simple lookups through the instance var and just the var a new object instead of changing the existing one, you're as safe as it gets
<jhass> *just assign
<dsathe> hmm yeah that would be good so within the thread i could do foo=@lookup and iter through foo
<jhass> yes, that will protect against cases like if @foo.size > 0; @foo.operation
<jhass> (again, given there's no other thread modifying the object)
Igorshp has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
commondream has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
IrishGringo has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<izzol> jhass: but it's realy slow :(
<jhass> izzol: huh?
anaeem1 has joined #ruby
shuber_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
paulcsmith has joined #ruby
* lupine bumps up against the ruby1.8 limit on regexp sizes
<lupine> hilarious
<lupine> shame it's a production system
<jhass> the only shame is you using 1.8 still, no matter the circumstances :P
<lupine> that's not even the worst thing
<lupine> this is a lenny box
Kruppe has joined #ruby
<lupine> not mine
<jhass> rm -rf / and say ups?
<lupine> (and yes, it is public-facing)
konsolebox has joined #ruby
ArchRogem has quit [Ping timeout: 252 seconds]
<jhass> izzol: try with ruby --disable-gems
<jhass> lupine: oh, then rm -rf / and yell hacked?
<dsathe> vhass & other kind folks https://gist.github.com/dhananjaysathe/9250f66de01b4cacfeca this is exactly the way it is being used , sorry for the vagueness earlier I should have been a lot more clear , i understand its hard to gauge finer nuances with finer implementation details
failshell has quit []
<dsathe> using ruby 2.0.0
<izzol> jhass: better, RealMarc 0m0.021s, but still in perl it's: RealMarc 0m0.004s :(
livathinos has quit []
Igorshp has quit [Ping timeout: 240 seconds]
<jhass> dsathe: okay, if you do the assignment in an atomic step like you've shown and really have no interdependent accesses to @lookup, like shown, then you're safe
shuber_ has quit [Ping timeout: 272 seconds]
<jhass> no amount of locking will make a difference
jpfuentes2 has joined #ruby
<dsathe> jhass the parent process will just dispatch the signals each child will rebuild lookup ;) im aware changes in the parent do not show up in the child . The parent is basically just a "manager" of sorts for a bunch of forked children
Igorshp has joined #ruby
<izzol> So it looks like while() in perl is 2-3x faster then in ruby (somehow) :(
Hijiri has quit [Ping timeout: 265 seconds]
alex88 has quit []
mahtennek has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
ringarin has quit [Quit: Leaving]
rubie has joined #ruby
<dsathe> jhass thank you :)
Macaveli has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
anaeem1 has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
psy_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
HotCoder has joined #ruby
yardenbar has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 250 seconds]
tejasmanohar has quit [Read error: Connection reset by peer]
startupality has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
codeFiend has quit [Quit: codeFiend]
bronson has quit [Ping timeout: 245 seconds]
commondream has quit [Remote host closed the connection]
ziprar has joined #ruby
ziprar has joined #ruby
yfeldblum has joined #ruby
commondream has joined #ruby
vikaton has quit []
startupality has joined #ruby
anaeem1_ has quit [Ping timeout: 272 seconds]
Papierkorb has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
Hounddog has quit [Read error: Connection reset by peer]
speakingcode has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
ItSANgo_ has joined #ruby
barkerd427 is now known as zz_barkerd427
ItSANgo__ has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
davispuhh has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
woodennails has joined #ruby
<jhass> izzol: mmh, in my shell that measures the time of the cat command only
lolmaus_ has joined #ruby
lxsameer has quit [Quit: Leaving]
axilla has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
commondream has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 256 seconds]
commondream has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> izzol: I think it's just bootup time, IO.copy_stream shows the same times
wildroman2 has quit [Remote host closed the connection]
commondream has quit [Ping timeout: 256 seconds]
mrdmi has quit [Ping timeout: 256 seconds]
jpfuentes2 has joined #ruby
susmus has joined #ruby
esplainisix has joined #ruby
Eiam has quit [Ping timeout: 240 seconds]
<esplainisix> Hi all
riotjones has joined #ruby
railsraider has quit [Quit: railsraider]
<jhass> hi
bronson has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
<dsathe> jhass https://gist.github.com/dhananjaysathe/5920e33dfea8ae0de381 this confirms it , even if the array changes outside the value inside the thread is unaffected still works (tested in irb)
jpfuentes2 has joined #ruby
mistermocha has joined #ruby
nvll has quit [Quit: WeeChat 1.1.1]
nvll has joined #ruby
<dsathe> that's interesting so ruby implicitly created a copy of the object when i executed select ?
St1gma has joined #ruby
<jhass> well, yes, it's just a reference update, the select operates on self, not the variable
mrdmi has joined #ruby
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 246 seconds]
<dsathe> so function here behave call by value
<dsathe> TIL
<jhass> no, it's all call by reference
<dsathe> out of curiosity how can i know this ?
<jhass> variables are just references to an object. when you do def foo(a); end; b = :bar; foo(b), you do not pass b to foo, you pass a reference to :bar
<dsathe> oh so the function call operated on the older reference , the new assignment just updated the ref to the variable , so technically the function still has the old ref so it *just works*
<jhass> so while inside foo there are two references to the object :bar, the local a of the scope of the method and the local b of the toplevel scope
<dsathe> is that approximately right ?
<jhass> yes
<dsathe> nice
<dsathe> thank you so much
banister has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
anisha has quit [Quit: Leaving]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imperator has joined #ruby
bronson has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
arietis has quit [Quit: Leaving.]
tubuliferous has joined #ruby
edwinvdgraaf has quit [Ping timeout: 272 seconds]
railsForDaiz has joined #ruby
baroquebobcat has joined #ruby
mrdmi has quit [Ping timeout: 244 seconds]
tubuliferous has quit [Ping timeout: 265 seconds]
kinduff has quit [Quit: Saliendo]
<adaedra> Do you know a gem which could search templates, given a name, in multiple view paths, like sinatra does?
darkf has quit [Quit: Leaving]
MasterPiece has joined #ruby
gluten_hell has quit [Quit: Computer has gone to sleep.]
stef204 has joined #ruby
rodfersou has quit [Quit: leaving]
gluten_hell has joined #ruby
<jhass> Dir[paths.map {|path| "#{path/#{name}.{extensions.join(",")}"}] ?
<jhass> messed up syntax, but eh
<adaedra> yeah, was looking for something not hand-made if it existed
<jhass> just saying that it's hardly more than a line of code
gluten_hell has quit [Client Quit]
MasterPiece has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
MasterPiece has joined #ruby
MasterPiece has quit [Remote host closed the connection]
_seanc_ has joined #ruby
dsathe has quit [Quit: Page closed]
mrdmi has joined #ruby
CHVNX has quit [Ping timeout: 272 seconds]
CHVNX has joined #ruby
<izzol> jhass: you right, when I checked it on some big file (10M) I have almost the same value.
Spami has joined #ruby
Ilyes512 has joined #ruby
Neomex_ has joined #ruby
speakingcode has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Ilyes512 has quit [Client Quit]
startupality has quit [Quit: startupality]
shuber_ has joined #ruby
Neomex has quit [Ping timeout: 256 seconds]
soulcake has quit [Quit: Quack.]
lyuben_ has joined #ruby
soulcake has joined #ruby
<izzol> ehh, I'm trying to figure out how to do something like this in Ruby: $test = join('', <STDIN>);
<izzol> and so far no idea :(
timonv has quit [Ping timeout: 272 seconds]
railsForDaiz has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> explain what it does
<izzol> join in perl basically separate strings of list into a single string
BTRE has joined #ruby
<izzol> the point is, in this example I don't need to use while()
<jhass> perl is so odd
<izzol> I can have whole file in $test.
<jhass> anyway, in ruby it's properly named split
<jhass> there's also various things to read in lines
<jhass> String#lines, IO#foreach, IO#readlines
<izzol> hmm, maybe split("\n") will work.
shuber_ has quit [Ping timeout: 265 seconds]
<jhass> String & IO #each_line
sandelius has joined #ruby
<jhass> use .lines for .split("\n")
adac has quit [Ping timeout: 276 seconds]
jstanton has joined #ruby
<eam> <> in perl is the readline() function
<jhass> or for stdin foreach / readlines
<eam> $test = join('', <STDIN>); is the same as $test = join '', readline(STDIN)
<jhass> so this just reads it as a big chunk?
<eam> and in ruby: test = IO.readlines.join ''
<jhass> $stdin.read
<eam> jhass: yes that's even easier :)
<jhass> and a lot more efficient
<eam> yeah I'm just copying the idiom for ease of translation
rbennacer has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
<eam> izzol: if you're familiar with perl. IO.read is slurp-mode
<izzol> ok
<izzol> :)
<adaedra> :).pl
<eam> the same as $\=undef; print readline(STDIN)
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> did I mention that perl is really odd?
<eam> jhass: ruby is at least just as odd
<adaedra> <jhass> perl is so odd
baweaver has joined #ruby
<jhass> I concur
shuber_ has joined #ruby
<eam> fwiw everything I just mentioned about perl is also present in ruby
shuber_ has quit [Remote host closed the connection]
mrdmi has quit [Ping timeout: 240 seconds]
shuber_ has joined #ruby
<eam> $\, $/ or the general IFS/OFS separators which are shared with bash, awk, nearly everything
<jhass> but not idiomatic
TinkerTyper has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
commondream has joined #ruby
<eam> ruby breaks from idiomatic unix, sure
shuber_ has quit [Remote host closed the connection]
<eam> it's much more uh
<eam> not unixy :)
cirn0 has joined #ruby
<jhass> readable, that's the word
elfuego has joined #ruby
<eam> I wouldn't agree, ruby has all sorts of weird brain damage baked into the i/o layer
<eam> like, \n is hardcoded in a bunch of problematic places
TinkerTyper has joined #ruby
jmignault has joined #ruby
vt102 has quit [Remote host closed the connection]
<eam> we used to call that "unix brain damage" because it made portability an issue
pdoherty has quit [Ping timeout: 258 seconds]
<eam> perl handles modifying IFS/OFS quite well
anaeem1_ has quit [Remote host closed the connection]
vt102 has joined #ruby
blandflakes has joined #ruby
<eam> but you know, it has dollar signs on the variables :)
<ljarvis> none of that refutes the claim that ruby is more readable...
hmnhf has quit [Ping timeout: 250 seconds]
<elfuego> I have a ruby script to generate 20 million row csv file, but I find it takes too long to generate, I am running this on a machine with intel xeon processor which stays at 26 % and 30 gb of ram and ruby only occupies 10 MB of ram. Is there a default cap on ruby memory utilization?
<ljarvis> elfuego: Ruby is slow
<canton7> writing to disk?
<elfuego> canton7: yes
shuber_ has joined #ruby
railsraider has joined #ruby
<elfuego> canton7: disk isn’t maxed out either
<elfuego> canton7: 10 MB/s
<jhass> post your script, maybe there's a low hanging fruit
mrdmi has joined #ruby
<canton7> how many cores?
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<railsraider> hi, im trying to make a logger that will automatically add the class name, module name, and method in it’s in http://pastie.org/10208255
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<railsraider> its always showing the extend method as the method name
<eam> ljarvis: sure it does
davedev2_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
lnr has joined #ruby
<railsraider> please help
lnr has quit [Max SendQ exceeded]
xxneolithicxx has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
davedev24_ has quit [Ping timeout: 256 seconds]
<ljarvis> railsraider: you'll have to parse caller. I think __method__ will always be explicit
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<apeiros> railsraider: Module.nesting always refers to the place in the code it is. like __LINE__ or __FILE__
<railsraider> at the moment i have to this at every method logger.progname = "#{Module.nesting.first.to_s} #{__method__}"
lnr has joined #ruby
cirn0 has quit [Ping timeout: 276 seconds]
<railsraider> im trying not to repeat myself
_seanc_ has joined #ruby
<railsraider> looks to me like the callback for extend should be able to accept the method name somehow
<railsraider> but i can’t figure it out
schiz has left #ruby ["WeeChat 1.2"]
v0n has quit [Quit: WeeChat 1.0.1]
bb010g has quit [Quit: Connection closed for inactivity]
v0n has joined #ruby
tubuliferous has joined #ruby
<railsraider> i tried also using caller_locations(1,1)[0].label
<canton7> elfuego, how many cores do you have?
s2013 has joined #ruby
cirn0 has joined #ruby
<railsraider> but that doesn’t see the correct method it was trigger if the method im in is in private section
<elfuego> canton7: getting that info now
mello is now known as Guest41146
<railsraider> i would love to get any suggestions on how to make a logger that looks like this: I, [2015-05-26T18:37:17.998636 #55331] INFO -- AsCombinedMetrics::Cli::Config load_config: Loading config file (../combinedMetrics.yml)
cirn0 has quit [Remote host closed the connection]
cirn0 has joined #ruby
PaulCape_ has quit [Quit: .]
pengin has joined #ruby
_seanc_ has quit [Client Quit]
<ljarvis> railsraider: https://eval.in/370595
PaulCapestany has joined #ruby
MasterPiece has joined #ruby
deric_skibotn has joined #ruby
_seanc_ has joined #ruby
tubuliferous has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<jhass> elfuego: that runs into the CPU cap here (fully exhausts one core)
<railsraider> thanks ljarvis i’ll give that a try
cirn0 has quit [Remote host closed the connection]
<elfuego> canton7: 4 cores
<ljarvis> caller_locations(0, 2) probably makes more sense
<ljarvis> or caller_locations(2).first
<canton7> elfuego, so it's maxing out a core?
<ljarvis> since you want the second caller location (the first is "extended")
<jhass> elfuego: given you generate uuids, do you have a good source for randomness? what's cat /proc/sys/kernel/random/entropy_avail while it's running?
<adaedra> ah no
lnr has quit [Ping timeout: 255 seconds]
cirn0 has joined #ruby
shuber_ has quit [Remote host closed the connection]
<adaedra> railsraider: I had one (got the wrong thing), let me find it
<railsraider> thanks adaedra im trying to build a gem that will be executable
<elfuego> canton7 the overall cpu is 26% - its a windows server it doesn’t show usage on each core
<jhass> sounds like it's maxing out a core for you then too
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<railsraider> im using thor and aws-sdk for the majority of that
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<adaedra> railsraider: https://github.com/rudionrails/yell is what I used
<canton7> elfuego, sounds like it's maxing out a core. so you're cpu-bound
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
mello__ has joined #ruby
lnr has joined #ruby
<adaedra> not the exact same format, but may be setup
lnr has quit [Max SendQ exceeded]
<railsraider> thanks a lot adaedra i’ll dig into the the code
<railsraider> yep
<jhass> elfuego: how important is the order in which the generated lines end up in the CSV?
vikaton has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
_seanc_ has quit [Client Quit]
juanpaucar has quit [Ping timeout: 250 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
senayar has quit []
<elfuego> canton7: just got to see usage on each core via resource monitor, no core is maxed out
lnr has joined #ruby
<elfuego> jhass: order doesn’t matter
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
cirn0 has quit [Remote host closed the connection]
mello__ is now known as mello
MatthewsFace has quit [Remote host closed the connection]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
oo_ has quit [Quit: Leaving...]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
lnr has joined #ruby
alexherbo2 has joined #ruby
podman has joined #ruby
oo_ has joined #ruby
cirn0 has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
v0n has quit [Quit: WeeChat 1.0.1]
v0n has joined #ruby
_seanc_ has joined #ruby
sigurding has quit [Quit: sigurding]
bronson has joined #ruby
cirn0 has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 265 seconds]
lnr has quit [Ping timeout: 244 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
esplainisix has quit [Remote host closed the connection]
_seanc_ has quit [Client Quit]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
neanderslob has joined #ruby
c0m0 has quit [Ping timeout: 240 seconds]
_seanc_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izzol> ehh, I'm still getting undefined method `join' :(
<izzol> I think I don't understand how to use it :)
<eam> izzol: gist some code
yh__ has quit [Ping timeout: 256 seconds]
callumacrae is now known as nub
towski_ has joined #ruby
kies has quit [Ping timeout: 272 seconds]
chthon has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
wildroman2 has joined #ruby
<izzol> I'm trying different methods ;P
granthatcher has quit []
<eam> izzol: join is a method on an array object
<eam> $stdin.readlines returns an array of strings
<eam> $stdin.readlines.join '' returns a single string
baweaver has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<izzol> hmm, so I need to create an array, put whole file to the array and then use join() ?
<eam> that's how join works, right?
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<izzol> not the one from perl :P
treehug88 has joined #ruby
antgel has joined #ruby
<eam> izzol: yes, that is how perl's join works
<eam> you create an @array of strings, then you join @array, ''
DexterLB has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
<eam> the only difference is in ruby, join is a method on the array object instead of a function that takes the array as a parameter
<eam> array.join vs join array
[k- has quit [Remote host closed the connection]
<izzol> eam: ok, I see the point
Pathfinder has joined #ruby
jerius has quit [Quit: /quit]
emptyflask has joined #ruby
lnr has quit [Ping timeout: 255 seconds]
volcanix has quit [Quit: Page closed]
x1337807x has joined #ruby
nettoweb has joined #ruby
x1337807x has quit [Max SendQ exceeded]
quimrsto_ has joined #ruby
x1337807x has joined #ruby
fabrice31 has joined #ruby
nettoweb has quit [Client Quit]
DexterLB has joined #ruby
jpfuentes2 has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
lolmaus_ has quit [Quit: Konversation terminated!]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
northfurr has joined #ruby
simpyll has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<izzol> ok now it works
fabrice31 has quit [Ping timeout: 245 seconds]
<izzol> but of course I have another problem, as always...
<izzol> ehh :<
twistedpixels is now known as zz_twistedpixels
tyfighter has joined #ruby
northfurr has quit [Client Quit]
Spami has joined #ruby
powersurge has quit [Ping timeout: 276 seconds]
<izzol> I'm using 'mail' gem and my plan was to put to the Mail.read(my_stdin).
djbkd has joined #ruby
<izzol> But now I see it can read only strings/files.
<izzol> So I guess I need to have my stdin somewhere before I will read it by Mail.read :(
<izzol> but it's going to be slow again.
<Synthead> what type of comparison does ruby do in "case" clauses? case Server; when Server; puts "foo"; end doesn't seem to match
towski_ has joined #ruby
<izzol> ok, tomorrow.
zz_twistedpixels is now known as twistedpixels
<Mon_Ouie> Synthead: It uses the '===' method
Aswebb_ has joined #ruby
<Mon_Ouie> Class#=== checks if the rhs is an instance of the lhs (or one of its subclasses)
DexterLB has joined #ruby
<Synthead> Mon_Ouie: hmmm, ok. I'll get this to work. Thanks!
Zai00 has quit [Quit: Zai00]
quimrsto_ has quit [Remote host closed the connection]
HotCoder has quit [Ping timeout: 258 seconds]
simpyll has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
towski_ has quit [Remote host closed the connection]
troyready has joined #ruby
Akagi201 has joined #ruby
_seanc_ has joined #ruby
sigurding has joined #ruby
catcher has joined #ruby
<catcher> What's the best way to test if a hash has a particular list of keys?
scripore has quit [Quit: This computer has gone to sleep]
shuber_ has joined #ruby
towski_ has joined #ruby
scripore has joined #ruby
simpyll has joined #ruby
<jhass> keys.all? {|key| hash.has_key? key }
twistedpixels is now known as zz_twistedpixels
Palmer11 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
Akagi201 has quit [Ping timeout: 265 seconds]
jstanton has quit [Remote host closed the connection]
zz_twistedpixels is now known as twistedpixels
antgel has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
rubie has quit [Remote host closed the connection]
<catcher> jhass, ty
_seanc_ has joined #ruby
wallerdev has joined #ruby
twistedpixels is now known as zz_twistedpixels
_seanc_ has quit [Client Quit]
zz_twistedpixels is now known as twistedpixels
_seanc_ has joined #ruby
_seanc_ has quit [Client Quit]
That1Guy has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
pdoherty has joined #ruby
einarj has quit [Remote host closed the connection]
arietis has joined #ruby
Eiam has joined #ruby
codeFiend has joined #ruby
cirn0 has joined #ruby
arietis has quit [Client Quit]
powersurge has joined #ruby
belak has left #ruby ["WeeChat 1.2"]
Takle_ has quit [Ping timeout: 264 seconds]
cirn0 has quit [Remote host closed the connection]
rubie has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blogjy has joined #ruby
<blogjy> how can I downgrade rails on windows?
withnale_ has quit [Ping timeout: 256 seconds]
<shevy> just like any other software?
<shevy> uninstall the current rails through the software center thingy
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> ah you mean through gems?
simpyll has quit [Ping timeout: 244 seconds]
antgel has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
<shevy> something like
<shevy> gem install rails --version=2.0.3
<xxneolithicxx> are there any tools for converting man pages to RDOC
sandelius has joined #ruby
jerius has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
pengin has quit [Remote host closed the connection]
simpyll has joined #ruby
Pathfinder has quit [Ping timeout: 250 seconds]
That1Guy has joined #ruby
arietis has joined #ruby
zapho54 has joined #ruby
<zapho54> Anyone here use Ruby in an exclusively functional style?
<shevy> not me
hololeap has joined #ruby
mrsolo has joined #ruby
kobain has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
railsraider has quit [Quit: railsraider]
ki0_ has joined #ruby
Rollabunna has quit [Quit: Leaving...]
tyfighter has quit [Quit: tyfighter]
cirn0 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmnhf has joined #ruby
jpfuentes2 has joined #ruby
Pathfinder has joined #ruby
ChoiKyuSang has quit [Ping timeout: 256 seconds]
ki0 has quit [Ping timeout: 265 seconds]
rookie_eecs has joined #ruby
pengin has joined #ruby
thebastl has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
ki0_ has quit [Ping timeout: 264 seconds]
cirn0 has quit [Read error: Connection reset by peer]
cirn0_ has joined #ruby
zapho54 has left #ruby [#ruby]
That1Guy has quit [Read error: Connection reset by peer]
That1Guy has joined #ruby
shadoi has joined #ruby
wildroman2 has quit [Ping timeout: 256 seconds]
lele_ is now known as Guest24
cirn0_ has quit [Remote host closed the connection]
kaleido has joined #ruby
arietis has quit [Quit: Leaving.]
That1Guy has quit [Client Quit]
yqt has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has joined #ruby
nfk has joined #ruby
ziprar has quit [Read error: Connection reset by peer]
hsps__ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
railsraider has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
<St1gma> got a question... does anybody know what compression is being used for a .gem? I got a gem that I need to modify so I have to "unbundle" it.
ChoiKyuSang has joined #ruby
spiderbyte has joined #ruby
thumpba_ has quit [Remote host closed the connection]
hsps_ has quit [Ping timeout: 240 seconds]
lavros has quit [Quit: leaving]
mikecmpbll has joined #ruby
cirn0 has joined #ruby
rindolf has joined #ruby
<rindolf> Hi all.
<havenwood> St1gma: gem unpack gem-name-here
<jhass> St1gma: pretty sure it's standard zip
psy_ has joined #ruby
<havenwood> rindolf: hi
<St1gma> learn something new everyday. I didn't know about gem unpack
<St1gma> thanks havenwood and jhass
<shevy> \o/
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> lib/rubygems/package.rb:require 'zlib'
Igorshp has joined #ruby
<shevy> "Builds a .gem file given a Gem::Specification. A .gem file is a tarball which contains a data.tar.gz and metadata.gz, and possibly signatures."
Parker0 has joined #ruby
<shevy> def gzip_to io # :yields: gz_io
<shevy> gz_io = Zlib::GzipWriter.new io, Zlib::BEST_COMPRESSION
<shevy> hmm
<shevy> how common is that idiom?
<shevy> when 'metadata.gz' then
<shevy> that you use an inlined "then"
commondream has quit [Remote host closed the connection]
<St1gma> it's just a tar
<jhass> not too common luckily
commondream has joined #ruby
<shevy> it confuses me because after the "then" is a newline
<St1gma> then a gz inside
commondream has quit [Remote host closed the connection]
spider-mario has joined #ruby
<shevy> I think apeiros liked those "then" constructs too
commondream has joined #ruby
<jhass> shevy: make a PR that removes then :P
anaeem1 has joined #ruby
<jhass> I'll +1 it
<shevy> well it's ok for one-liners, if you really wanna write terse code perhaps
portiad has joined #ruby
<shevy> but multilines... now that is just weird
<rindolf> havenwood: hi. :-)
djbkd has quit [Remote host closed the connection]
<shevy> require 'rubygems/package/tar_header'
<shevy> St1gma guess there is lots of goodies in there!
<shevy> that one is actually interesting, let me gist it
<shevy> ruby over a C struct :)
jstanton has joined #ruby
Igorshp has quit [Ping timeout: 255 seconds]
bronson has quit [Remote host closed the connection]
<shevy> new :name => fields.shift,
<shevy> never seen a standalone "new" yet
<shevy> I am beginning to understand how havenwood got all his secret extra knowledge
<imperator> shevy, i use then on multi-line if statements
mtakkman has joined #ruby
yh__ has joined #ruby
shuber_ has quit [Remote host closed the connection]
mello has quit [Ping timeout: 255 seconds]
commondream has quit [Remote host closed the connection]
gusrub has joined #ruby
anaeem1 has quit [Remote host closed the connection]
x1337807x has joined #ruby
dseitz has joined #ruby
redbullion has joined #ruby
phreakocious has quit [Ping timeout: 265 seconds]
crazymykl has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
commondream has joined #ruby
crazymykl has joined #ruby
djbkd has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scottstamp has quit [Ping timeout: 265 seconds]
phreakocious has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
irobevjodu has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
cirn0 has quit [Remote host closed the connection]
twistedpixels is now known as zz_twistedpixels
Akagi201 has joined #ruby
irobevjodu has quit [Client Quit]
mello has joined #ruby
scottstamp has joined #ruby
cirn0 has joined #ruby
HotCoder has joined #ruby
sevvie has joined #ruby
platzhirsch has quit [Quit: Leaving.]
zz_twistedpixels is now known as twistedpixels
dfockler has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
mtakkman has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
<miah> i've used 'rubygems/package/tar_header' a ton; i wish ruby had a real native tar library that wasn't awful.
<miah> you still have to do some fudging to detect long paths etc
spiderbyte has quit [Quit: WeeChat 1.1.1]
<miah> minitar has the same problem
idafyaid has joined #ruby
<miah> last i checked
riotjones has joined #ruby
djellemah has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
ndrei has joined #ruby
Parker0 has joined #ruby
sinkensabe has joined #ruby
qwertme has joined #ruby
lordkryss has joined #ruby
rookie_eecs has quit []
riotjones has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
juanpaucar has joined #ruby
<shevy> hmm how to grab 10 random elements of an Array? Should I use .sample 10 times or is there a better way?
cirn0_ has joined #ruby
cirn0 has quit [Read error: Connection reset by peer]
codeFiend has quit [Quit: codeFiend]
imperator2 has joined #ruby
oo_ has quit [Remote host closed the connection]
* xxneolithicxx Universal consensus on optional keywords: I dont always use optional keywords, but when I do, I use them in a way that suits my style (screw yours :-) )
baweaver has quit [Remote host closed the connection]
railsraider has quit [Quit: railsraider]
baweaver has joined #ruby
oo_ has joined #ruby
cirn0_ has quit [Remote host closed the connection]
ravenreborn_ has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
mello has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 245 seconds]
cirn0 has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
simpyll has quit [Ping timeout: 245 seconds]
jpfuentes2 has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
ndrei has joined #ruby
djbkd has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
s2013 has quit [Client Quit]
codeFiend has joined #ruby
baroquebobcat has joined #ruby
hololeap has quit [Ping timeout: 250 seconds]
gusto has joined #ruby
Pathfinder has quit [Ping timeout: 272 seconds]
<rindolf> shevy: hi.
<rindolf> shevy: can the elements repeat?
ndrei has quit [Ping timeout: 246 seconds]
<jhass> shevy: .sample(10) for 10 unique, Array.new(10) { .sample } for 10 with repetition
<shevy> oh cool
<shevy> .sample allows arguments - I don't think I used it with the argument-variant yet :)
MeStesso has joined #ruby
<MeStesso> hi. quick question. anyone knows of a pre-made url shortener server made in Ruby? something that just works out of the box. I found good ones just in PHP (YOURLS), and nothing in other languages. It will be used for internal purposes (same way Microsoft uses aka.ms, for example)
portiad has quit [Quit: Leaving...]
orionstein has quit [Quit: ZNC - http://znc.in]
duderonomy has joined #ruby
orionstein has joined #ruby
<MeStesso> hi. quick question. anyone knows of a pre-made url shortener server made in Ruby? something that just works out of the box. I found good ones just in PHP (YOURLS), and nothing in other languages (PHP doesn't fit our stack). It will be used for internal purposes (same way Microsoft uses aka.ms, for example)
ndrei has joined #ruby
<MeStesso> (sorry wasn’t sure the message was sent)
<shevy> I like how the question becomes bigger and bigger at every iteration :)
wjimenez5271 has joined #ruby
<MeStesso> shevy: sorry
<shevy> I don't know of an URL shortener in ruby myself though possibly the rails guys know such things?
<MeStesso> shevy: ok i’ll see there. thanks
<shevy> in that case you could always try to ask on #rubyonrails - do tell them that you have asked here too though
bronson has joined #ruby
<shevy> otherwise jhass here may be angry :P
<jhass> MeStesso: url shorter is like 50 loc
<MeStesso> jhass: something like YOURLS isn't
<jhass> table, feed id through base36, done
<jhass> >> 12344.to_s(36)
<ruboto> jhass # => "9iw" (https://eval.in/370605)
<MeStesso> but that’s written in PHP and uses MySQL. and i’m not going to add an entire LAMP stack in production just for that
<jhass> >> "9iw".to_i(36)
<ruboto> jhass # => 12344 (https://eval.in/370606)
speakingcode has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
<shevy> in ruby stdlib, class CGI, I see this:
<shevy> CGI.autoload(:HtmlExtension, 'cgi/html')
<shevy> what exactly is it doing?
yqt has joined #ruby
speakingcode has joined #ruby
<jhass> using autoload
<jhass> module CGI; autoload :HtmlExtension, "cgi/html"
cirn0 has quit [Ping timeout: 264 seconds]
ndrei has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> hmm
<jhass> hooks const_missing to load the file
ndrei has joined #ruby
bootstrappm has joined #ruby
Hijiri has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
<blogjy> When I try gem install rails --version=2.0.0 I get ERROR: Could not find a valid gem 'activeresource' (= 2.0.0) in any repository
fabrice31 has quit [Ping timeout: 244 seconds]
<jhass> why that beyond ancient version?
<blogjy> installing rails on windows gave me some error and one answer on stackoverflow said that version is ok as is 2.1.5
<jhass> 2.0.0 - December 6, 2007 (179 KB)
<jhass> I mean... 8 years
<jhass> uh, do you confuse Ruby and Rails?
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
<shevy> aha!
shuber_ has joined #ruby
railsraider has joined #ruby
commondream has quit [Remote host closed the connection]
<shevy> 'Yeah, so I rolled back to 2.0.0. and it worked. You get "DL is deprecated, please use Fiddle" which I found here, Ruby 2.0.0p0 IRB warning: "DL is deprecated, please use Fiddle", is just a warning'
<jhass> yeah, they mean Ruby 2.0
railsraider has quit [Client Quit]
<jhass> not Rails 2.0
MeStesso has quit [Quit: MeStesso]
<blogjy> so much for stackoverflow expertise!
<shevy> attention to detail blogjy :)
<jhass> well, it doesn't have an upvote!
commondream has joined #ruby
<shevy> I should pity-upvote it
wildroman2 has quit [Remote host closed the connection]
d10n-work has joined #ruby
* jhass prepares to down vote
<shevy> haha
<blogjy> actually the answer didn't give that gem install line
wildroman2 has joined #ruby
<blogjy> i guess the answer is saying that if rails gives an error like that then the answer is to downgrade ruby to be 2.0.0?
n008f4g_ has joined #ruby
<jhass> when did nokogiri become a rails dep anyway?
<havenwood> blogjy: Having trouble installing Nokogiri with 2.2 on Win?
<shevy> blogjy well, ideally you could try to use the most recent versions
<jhass> but given there's no newer nokogiri version than 1.6.6.2...
<jhass> btw does anybody have a table with all ruby releases and their release dates?
<shevy> you can see the most recent nokogiri version here blogjy: https://rubygems.org/gems/nokogiri
<shevy> Last version release was 1.6.6.2 - January 23, 2015 java (2.38 MB)
<blogjy> i'm totally new to this. i'm just trying to get the line 'rails s' to work.
<shevy> for me on linux it worked when I did "gem install rails"
<havenwood> blogjy: What version of Ruby are you using?
<shevy> I actually think it works on my windows machine downstairs too
<blogjy> C:\Ruby22-x64\bin\code>ruby -v
<blogjy> ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
<blogjy> C:\Ruby22-x64\bin\code>rails -v
<blogjy> Rails 4.2.1
<shevy> but I am not entirely sure. windows is very confusing
<shevy> \o/
<blogjy> that's how new i am to ruby, just put it on their yesterday
commondream has quit [Ping timeout: 256 seconds]
<shevy> it already works
<shevy> you left 80% of the newcomers on windows in the dust
<blogjy> i'll find the line that fails..
wildroman2 has quit [Ping timeout: 240 seconds]
shadoi has quit [Quit: Leaving.]
<shevy> "autoload works in a similar way to require, but it only loads the file specified when a constant of your choosing is accessed/used for the first time."
<shevy> ok so
baweaver has quit [Remote host closed the connection]
<shevy> when exactly do I need autoload or rather why
<shevy> or can I just require + include manually?
<jhass> it's not include
<jhass> it's just require
<shevy> hmm
edwinvdgraaf has joined #ruby
<jhass> and yeah, never really got the point of autoload, faster load times I guess
cirn0 has joined #ruby
<havenwood> blogjy: Do you have DevKit installed? Guessing that'll be the error. If you haven't already, install the DEVELOPMENT KIT from: http://rubyinstaller.org/downloads/
shuber_ has quit [Remote host closed the connection]
<shevy> but that actually scares me :\
<shevy> "Because require works straight away, the puts method gets executed immediately."
wallerdev has quit [Quit: wallerdev]
<shevy> so I guess, require() is simpler than autoload()
<jhass> it's not equivalent though
graft has joined #ruby
kirun has joined #ruby
chinmay_dd has joined #ruby
<graft> is there some sort of gem cache or something that i might need to flush out?
shuber_ has joined #ruby
<graft> my rails console doesn't seem to be able to find a method on a class in a gem
<blogjy> so i do rails new rtgsf, that works. cd rtgsf. bundle install. that works. then rails s, gives this error http://pastebin.com/raw.php?i=Bhmswt9W "C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogiri.rb:29
<blogjy> :in `require': cannot load such file -- nokogiri/nokogiri (LoadError)..." I do have the development kit installed to c:\dkt and c:\dkt\bin is in the path
<ruboto> blogjy, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<blogjy> alternative to pastebin link https://gist.github.com/anonymous/34ea4e8512f2705e7320
jerius has quit [Quit: /quit]
<graft> like a bundler cache?
<havenwood> blogjy: Check the link I pasted above for getting DevKit.
scripore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 244 seconds]
scripore has joined #ruby
pdoherty has joined #ruby
<havenwood> blogjy: Installing DevKit helps you build C/C++ extensions on Windows for gems that have them like Nokogiri.
<jhass> graft: try bundle exec rails console
<blogjy> I already installed the devkit I already ran this file and extracted it http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
aryaching has quit [Read error: Connection reset by peer]
<blogjy> which comes from that link you mentioned havenwood
scripore has quit [Client Quit]
bartj3 has quit [Ping timeout: 240 seconds]
<havenwood> blogjy: Did you run hte installation scripts?
<blogjy> i ran some command like ruby init dk.rb
<havenwood> blogjy: and also something like?: ruby dk.rb install
turtil has joined #ruby
jerius has joined #ruby
<blogjy> yeah that too, neither gave an error
<blogjy> C:\dkt>ruby dk.rb init and C:\dkt>ruby dk.rb install
<graft> jhass: tried it, no good. if i do my_instance.method(:some_other_method).source_location, it points to a file in my gem tree which clearly contains the method i want, but my_instance.method(:my_method) produces method not defined
<havenwood> blogjy: try?: gem install json --platform=ruby
scripore has joined #ruby
bb010g has joined #ruby
<blogjy> tried that too no error
mello has joined #ruby
<havenwood> blogjy: gem install nokogiri
<imperator2> blogjy, ok, hang on - you're using 64-bit ruby, right?
<blogjy> yeah
<jhass> graft: uh, odd
<imperator2> blogjy, did you install devkit64?
<blogjy> yeah
<imperator2> or devkit?
<blogjy> err
<blogjy> the 64 bit dev kit
<blogjy> not sure about ruby i guess 64 bit
<graft> jhass: yeah, really have no idea what's going on.
<jhass> graft: how sure are you added it to the right class inside the file?
<blogjy> yeah ruby's 64 bit too
<blogjy> C:\Ruby22-x64\
<imperator2> ok
dopie has joined #ruby
<graft> jhass: it's like two lines above the def some_other_method
bronson has quit [Remote host closed the connection]
<imperator2> blogjy, and what happened when you did gem install nokogiri?
<havenwood> blogjy: And does Nokogiri build successfully now?
<jhass> well, if one of those lines is class or module Something ... :P
<graft> jhass: definitely in the same class
spiderbyte has joined #ruby
<graft> there's not even a public/private distinction, they're both just ordinary public methods. one is defined, the other is not.
<graft> both are in the same source_location file
<blogjy> gem install nokogiri gave no error
<blogjy> but rails s still gives that error
<jhass> I'll stress it a bit more... did you save the file? (you don't want to know how often that happened to me...)
cirn0_ has joined #ruby
<havenwood> blogjy: What error does `rails s` give you?
<shevy> jhass reveals the dark secrets
<graft> i'm looking at the file in my .rbenv/versions/2.2.0/lib/gems/blah/blah, i.e., the actual installed gem
cirn0 has quit [Read error: Connection reset by peer]
<havenwood> blogjy: bundle exec rails s
swerter has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
<blogjy> same error "C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogiri.rb:29
<blogjy> :in `require': cannot load such file -- nokogiri/nokogiri (LoadError)"
<havenwood> blogjy: Run: bundle install
mello_ has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
<blogjy> i definitely did that one and i recall it worked but i'll do it again
<jhass> graft: doubt anybody will be able to do anything about it without hands on :/
mello has quit [Ping timeout: 246 seconds]
<graft> works fine in irb, just not in rails console
arup_r has joined #ruby
<blogjy> Bundle complete! 12 Gemfile dependencies, 54 gems now installed.
<blogjy> Use `bundle show [gemname]` to see where a bundled gem is installed.
<graft> there's gotta be some stupid bundler thing going on
<blogjy> bundle install always worked
<blogjy> the error is with rails s
<havenwood> blogjy: Just to sanity check, retry: bundle exec rails s
<imperator2> blogjy, but you can require nokogiri in irb?
<jhass> graft: did you actually check the source_location of the working method in the bundle exec'd console?
<blogjy> bundle exec rails s, gives "C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogiri.rb:29
<blogjy> :in `require': cannot load such file -- nokogiri/nokogiri (LoadError)"
finisherr has joined #ruby
<arup_r> Say I have a method `foo`.. i am calling it inside the method bar lile def bar; foo; end.. Is this called an indirect method access ?
<havenwood> blogjy: Error running?: ruby -rnokogiri -e "Nokogiri"
<blogjy> imperator: I don't know the answer to that question, I only installed ruby yesterday
<imperator2> blogjy, type "irb" in your console
<jhass> arup_r: never heard that term
<havenwood> blogjy: You could find out by typing `irb` then `require 'nokogiri'`.
<jhass> arup_r: where did you get it from?
<arup_r> I am also confused
<imperator2> blogjy, then type: require 'nokogiri'
<blogjy> ruby -rnokogiri -e "Nokogiri" <-- gives, C:/Ruby22-64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
<jhass> arup_r: well, that very clearly defines what it means with that
<arup_r> Yes.. except those 3 ... what I said is called indirect method access also ?
<jhass> arup_r: using methods such as .send, .public_send, .method, .instance_method, .respond_to? to list a few more
<arup_r> I am jjust confused
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> why would it?
<blogjy> C:\Ruby22-x64\bin\code\rtgsf>irb<ENTER>
<blogjy> irb(main):001:0> require 'nokogiri' LoadError: cannot load such file -- nokogiri/nokogiri from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `r
<arup_r> ok
leafybasil has quit [Remote host closed the connection]
bogdanteleaga has joined #ruby
<arup_r> thanks
leafybasil has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
<imperator2> blogjy, oh, wait a minute...i think nokogiri provides precompiled binaries
<imperator2> but it doesn't have one for ruby 2.2 yet
davispuh has quit [Remote host closed the connection]
<imperator2> you can build from source but it requires having libxml & libxslt on your system
workmad3 has joined #ruby
<blogjy> i'm a newb, is that a huge process?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codelurker has joined #ruby
<jhass> about as huge as downgrading to 2.1 I guess
<imperator2> easier to downgrade to ruby 2.1 :)
<graft> probably even easier just to run an ubuntu vm
cirn0 has joined #ruby
<jhass> don't make it too easy, where's the fun!
<apeiros> imperator2: same as imperator?
<imperator2> apeiros, yep, got 2 machines going
<jhass> another person in need of a bnc :P
<apeiros> ah
iamjarvo has joined #ruby
<blogjy> what's the easy way to downgrade to ruby 2.1?
cirn0_ has quit [Read error: Connection reset by peer]
<havenwood> blogjy: Uninstall Ruby 2.2 and install Ruby 2.1.
davedev24_ has joined #ruby
<blogjy> any command to do it? or do i have to go through add/remove programs?
<imperator2> or just download and install the 2.1 installer and set your PATH
<imperator2> i think it comes with an uninstall option on the start menu
<blogjy> ok i'll look at the gui
platzhirsch has joined #ruby
davedev2_ has quit [Ping timeout: 256 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> i have a URL and i want to find a bunch of places around the web that this URL was linked
<tejasmanohar> like http://autolotto.io?ref=01794e9d1e for example
phutchins has quit [Ping timeout: 244 seconds]
<tejasmanohar> but without excluding results that use http://autolotto.io/?ref (notice the "/" before the "?")
<tejasmanohar> if i just google the URL, it pulls up the exact link... 1 result - not results that include the link.
<tejasmanohar> anyone know ideas for this?
PaulCapestany has quit [Quit: .]
_blizzy_ has joined #ruby
banister has quit [Ping timeout: 256 seconds]
shuber_ has quit [Remote host closed the connection]
* jhass searches the Ruby in the question :P
<kaleido> a hadoop cluster thats constantly crunching the contents of every website on the planet?
<kaleido> best of luck with that
<jhass> GA/piwik based referrer analysis might be your best bet I fear
<tejasmanohar> basically backlinks. hm ok jhass youre probably right
baroquebobcat has joined #ruby
PaulCapestany has joined #ruby
<blogjy> judging by the description here http://rubyinstaller.org/downloads/ I should use a 2.1.x 32bit if starting off. As otherwise i have to deal with compatibility problems as 64bit ruby is very new in windows and 2.1.x is stable one they recommend
<tejasmanohar> jhass and yeah theres no ruby in the question, sorry :P - i've just found that sometimes the people can shine some insight into other questions too
<tejasmanohar> (guessing they've faced similar things etc)
creakybones has joined #ruby
Kricir has quit [Remote host closed the connection]
<imperator> blogjy, i'd go with that for simplicity, yes
<havenwood> blogjy: and then the corresponding 32-bit DevKit then
Hijiri has quit [Quit: WeeChat 1.0.1]
cirn0_ has joined #ruby
<blogjy> what should i do to get rid of the rails installation i have?
<blogjy> i've got rid of the ruby one i have
<dudedudeman> This stack overflow does a good job of walking through it
<jhass> I don't know the windows paths, but I'd say good chances that got rid of the rails one too
<dudedudeman> oh.. windows
cirn0 has quit [Read error: Connection reset by peer]
<imperator2> blogjy, how did you install rails?
sigurding has joined #ruby
moretti has joined #ruby
<blogjy> i don't remember exactly i guess i double clicked an exe!
<blogjy> i think that removed it though, removing ruby
davedev2_ has joined #ruby
<imperator2> ok, you can install rails from the command line
davedev24_ has quit [Ping timeout: 258 seconds]
arietis has joined #ruby
jerius has quit [Quit: /quit]
djbkd has quit [Remote host closed the connection]
Jackneill has joined #ruby
Zai00 has joined #ruby
jefus has joined #ruby
konsolebox has quit [Quit: Leaving]
edwinvdgraaf has quit [Remote host closed the connection]
zz_barkerd427 is now known as barkerd427
edwinvdgraaf has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
thebastl has quit [Read error: Connection reset by peer]
jerius has joined #ruby
davedev24_ has joined #ruby
thebastl has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
Palmer11 has quit [Ping timeout: 272 seconds]
Lucky__ has joined #ruby
Akagi201 has joined #ruby
emptyflask has quit [Remote host closed the connection]
<jhass> did make fun of PHP already today? I don't think. So http://www.commitstrip.com/en/2015/05/26/php-7-twice-faster-than-php-5/
tjbiddle has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
sparr is now known as spar
jerius has quit [Quit: /quit]
spar is now known as sparr
wjimenez5271 has quit [Quit: ZNC - http://znc.in]
Akagi201 has quit [Ping timeout: 250 seconds]
robertodecurnex has joined #ruby
<tejasmanohar> do a lot of people here use activerecord or better to keep all activerecord questions to #ror
<tejasmanohar> ?
jenrzzz has joined #ruby
<jhass> I'd say both
<bootstrappm> I can only speak for myself but yes, I use it
<balazs> with Rufus::Scheduler it is not safe to update a hash in different threads, right ?
<tejasmanohar> User.where.not(:referrer_id => nil).group_by_day(:created_at).sum(:referrals_count) is my current query for finding 2nd round referrals. :referrer_id is the user id of the person who referred them
Hijiri has joined #ruby
<tejasmanohar> since user belongs_to :referrer, :class_name => "User", :foreign_key => "referrer_id" has_many :referrals, :class_name => "User", :foreign_key => "referrer_id"
<tejasmanohar> now , im trying to find 3rd round referrals so .where.not(:referrer_id => nil WHERE the referred of THIS referred is also NOT nil
<tejasmanohar> not really sure if this can be done in an activerecord query... any thoughts? do i just need to loop through all the users in a rake task and do some # crunching
mpistone has joined #ruby
<bootstrappm> alright .... for stuff like that I drop down into SQL
<bootstrappm> love me some postgres
<tejasmanohar> and, yeah let me know if that doesn't make much sense- it's kinda a hard question to ask
<tejasmanohar> bootstrappm: and is that possible in 1 SQL joined query or do i need to loop through a bunch of data?
<tejasmanohar> bleh i havent done raw SQL in forever, we'll see how this goes :P bootstrappm
<bootstrappm> hahah I'll re-read your question slower tejasmanohar and see if I can help, one sec
<tejasmanohar> sure thanks
woodennails has joined #ruby
<jhass> ?crosspost tejasmanohar
<ruboto> tejasmanohar, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<tejasmanohar> quick description is i have a query to find referred users who referred other users (2nd round referrals) but now i need to find referred users who referred other users who referred other users --> counts of these kinda referrals
<tejasmanohar> jhass: i did, i cancelled my post there- you see?
<jhass> oh nvm, that question just looked the same :P
<tejasmanohar> 14:41:48 tejasmanohar | moving this to #ruby
<tejasmanohar> from #ror 6
tyfighter has joined #ruby
cirn0 has joined #ruby
<tejasmanohar> *from #ror ^
<tejasmanohar> jhass: np, ive done it before as you know and am trying to avoid that now ;)
cirn0_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
danman has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
cirn0 has quit [Remote host closed the connection]
<tejasmanohar> bootstrappm: btw im also looking here https://github.com/rails/arel
<bootstrappm> ok
shazaum has joined #ruby
ndrei has joined #ruby
thebastl has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
djbkd has joined #ruby
<blogjy> i installed ruby 2.1.6 32bit then did gem install rails, and I got rails 4.2.1 is that compatible?
moted has joined #ruby
cirn0 has joined #ruby
<havenwood> blogjy: yup
<blogjy> thanks
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
jerius has joined #ruby
<arup_r> why the shit is happening.. always empty array ? https://gist.github.com/aruprakshit/d85f336e35ab563121ff
jpfuentes2 has quit [Ping timeout: 265 seconds]
vdamewood has joined #ruby
Deele has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
emptyflask has joined #ruby
thebastl has joined #ruby
codecop has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
gluten_hell has joined #ruby
cirn0_ has joined #ruby
cirn0 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
redbullion has quit [Quit: Leaving]
juanpaucar has joined #ruby
vikaton has quit []
leafybasil has quit [Remote host closed the connection]
<blogjy> C:\rubyblah\a>gem install json --platform=ruby <ENTER> gives error https://gist.github.com/anonymous/25f347e83d1398e12ed4 "ERROR: Error installing json:ERROR: Failed to build gem native extension...."
<al2o3-cr> arup_r: try: table = CSV.read("#{__dir__}/test.txt", headers: true)
bronson has joined #ruby
jpfuentes2 has quit [Ping timeout: 258 seconds]
<arup_r> al2o3-cr: Ok.. but why mine one is not working ?
<bootstrappm> hey tejasmanohar what does referrals_count mean semantically?
<havenwood> arup_r: Because #new doesn't take a path as the first argument like #read.
<bootstrappm> like, what information does it give you?
pragmatism has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<tejasmanohar> bootstrappm: # of referrals uses counter cache
<bootstrappm> and could you put the relationships you pasted in one line into a gist and share it? kind of confusing seeing it in one line
paulcsmith has joined #ruby
<havenwood> blogjy: Forget the json gem. Was just what Nokogiri docs suggest to test but it should be updated to something you'd actually install. Does Nokogiri build?
<bootstrappm> as far as I can tell you CAN get the information you're looking for using AR if you do the join right
byprdct has joined #ruby
<blogjy> even bundle install, in the project directory, doesn't work
<havenwood> blogjy: Error?
<tejasmanohar> yes bootstrappm
<bootstrappm> its not going to read pretty and I'd prefer to do it in SQL but yes, its possible
<tejasmanohar> one sec
Palmer11 has joined #ruby
<blogjy> actually bundle install might work..
<havenwood> arup_r: #new's first arg is data not the path to the file containing the data
<arup_r> humm "This constructor will wrap either a String or IO object passed in data for reading and/or writing.
<arup_r> misread it
<havenwood> arup_r: sees you want #read, so use #read
<havenwood> seems*
<arup_r> humm
<blogjy> nope bundle install doesn't work, tells me about installing jeson.. https://gist.github.com/anonymous/0828c53e490787fc2b98
graft has quit [Quit: Lost terminal]
<blogjy> says "An error occurred while installing json (1.8.2), and Bundler cannot continue.
<blogjy> Make sure that `gem install json -v '1.8.2'` succeeds before bundling."
juanpaucar has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 256 seconds]
gusto has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 258 seconds]
<blogjy> output of gem install json -v '1.8.2' https://gist.github.com/anonymous/43c47230e824751e421a
freerobby has quit [Quit: Leaving.]
<bootstrappm> thanks tejasmanohar
cirn0_ has quit [Remote host closed the connection]
ndrei has joined #ruby
<havenwood> blogjy: Seems you may have the wrong version of DevKit installed for your Ruby?
<tejasmanohar> bootstrappm: but yeah you get my question right? 3rd level referrals
freerobby has joined #ruby
<havenwood> blogjy: ruby dk.rb init --force
<havenwood> blogjy: then reinstall
paulcsmith has quit [Ping timeout: 256 seconds]
<bootstrappm> yeah, I'd phrase it more as "people who have been referred by other people who have been referred" tejasmanohar, makes imagining the logic a bit easier
<havenwood> blogjy: I think you're using your previous DevKit install.
<blogjy> havenwood: oh i think you're right re previous devkit install
<blogjy> i'll remove that devkit
<tejasmanohar> well i already have that
<tejasmanohar> or wait yeah youre right bootstrappm
<bootstrappm> cool
<blogjy> i'll rmdir that devkit.. i think that is how to uninstall that one
<blogjy> as i installed it via extraction i think
Takle has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
chinmay_dd has quit []
swgillespie has joined #ruby
swgillespie has quit [Remote host closed the connection]
<bootstrappm> what DB you using tejasmanohar?
iamjarvo has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
mrmargolis has joined #ruby
edwinvdgraaf has joined #ruby
codecop_ has joined #ruby
Deele has joined #ruby
turtil has quit [Ping timeout: 265 seconds]
<tejasmanohar> bootstrappm: i have "# of referrals by people who were referred" and am trying to get "# of referrals by people who were referred by people who were referred"
<tejasmanohar> postgresql bootstrappm
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has joined #ruby
<bootstrappm> cool tejasmanohar, gonna give you some SQL to try first on the console just to make sure we're getting the data we want
baweaver has joined #ruby
thebastl has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
Igorshp has joined #ruby
tyfighter has quit [Quit: tyfighter]
ndrei has joined #ruby
<tejasmanohar> bootstrappm: ok, hm User.where.not(:referrer_id => nil).group_by_day(:created_at).sum(:referrals_count) is my current query in AR
codecop has quit [Ping timeout: 265 seconds]
<tejasmanohar> if its possible in SQL is it possible in AR or is that not always true bootstrappm ?
ernham has joined #ruby
<tejasmanohar> ^^ and that query (my current one) is "# of referrals by people who were referred" but im trying to go a level deeper in the where: so i can get "# of referrals by people who were referred by people who were referred"
<bootstrappm> yep, completely understand you
<bootstrappm> its usuuually possible in AR, this one definitely is
jerius has quit [Quit: /quit]
<blogjy> THANKS!
Palmer11 has quit [Quit: Palmer11]
<blogjy> rails s now works
<havenwood> blogjy: \o/
<bootstrappm> when its not you can drop down into AR's query builder, which is that Arel thing you were looking at
<bootstrappm> and when even that proves difficult there's a method or two to execute raw SQL
<tejasmanohar> ah
banister has quit [Read error: No route to host]
<tejasmanohar> i see
<tejasmanohar> im looking too, its the embedded "where" thats throwing me off
ndrei has quit [Ping timeout: 240 seconds]
<jhass> you'll need a self join for starters
wildroman2 has joined #ruby
jpfuente_ has joined #ruby
Kricir has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
cirn0 has joined #ruby
<bootstrappm> ^ which means you'll need to alias users as two different 'tables' and use fully qualified identifiers in your where
jpfuentes2 has quit [Read error: Connection reset by peer]
vikaton has joined #ruby
<tejasmanohar> oh bootstrappm hm
<tejasmanohar> bootstrappm: is it better to loop through and do number crunching or is that harder?
<bootstrappm> that'd prob be easier but more inefficient
<bootstrappm> let the database do the work for you though, one sec
sandelius has joined #ruby
<tejasmanohar> ah yeah
<tejasmanohar> seems right
<tejasmanohar> looking at docs on this hm
<tejasmanohar> i mean i am using a self-joining association
<sandelius> I've read that alot of people think that ActionController::Base(Metal) should be a module. I don't get that, a controller is a controller and without ActionController::Base it's not one. What do you think?
MrBeardy has joined #ruby
<sandelius> ApplicationController should be a module
arietis has quit [Quit: Leaving.]
<bootstrappm> tejasmanohar try this in your psql console: SELECT goal.referrals_count, goal.referrer_id, close_referrers.id, close_referrers.referrer_id FROM users AS goal JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id WHERE close_referrers.referrer_id IS NOT NULL;
jpfuente_ has quit [Ping timeout: 258 seconds]
<bootstrappm> sorry in advance for syntax errors etc.
fabrice31 has joined #ruby
<bootstrappm> throw a limit in there if you have a lot of data and you don't want to wait a wihle
<tejasmanohar> bootstrappm: how does the goal stuff work?
<bootstrappm> goal is just a name I gave the table of the people you actually want
<bootstrappm> hence, its the 'goal' of this query
<bootstrappm> that's not like 'a thing', I just called it goal in this specific case
<tejasmanohar> do i need to generate that table or is that done by the query?
jerius has joined #ruby
<bootstrappm> done by the query
cirn0_ has joined #ruby
<bootstrappm> "users AS goal" just means call this table goal
cirn0 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
mello_ has quit [Ping timeout: 276 seconds]
<bootstrappm> I do it because in the join I also use users and call it `close_referrers`
<jhass> User.joins("JOIN users AS referred ON referred.referrer_id = users.id").joins("JOIN users AS second_referred ON second_referred.referrer_id = referred.id").group_by("second_referred.id").count something like that? I'm not good with this
Bermulium has joined #ruby
<tejasmanohar> ah
<Bermulium> So, str = "Some string"; n = str #this will not copy str into n
<jhass> Bermulium: right!
<Bermulium> but rather make it point in the same memory address
<jhass> yes
<Bermulium> jhass, Damn :p
<tejasmanohar> SELECT goal.referrals_count, goal.referrer_id, close_referrers.id, close_referrers.referrer_id FROM users AS goal JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id WHERE close_referrers.referrer_id IS NOT NULL;
<tejasmanohar> ok ill give it a shot
tjbiddle has quit [Ping timeout: 258 seconds]
<bootstrappm> I just tested it on my end tejasmanohar, that works
<Bermulium> jhass, str = "Some string"; n = str; str = str.upcase #this will not affect n, how come?
Takle has quit [Remote host closed the connection]
<bootstrappm> let me know if the data you're seeing makes sense and we'll make it ActiveRecord-y
cirn0_ has quit [Remote host closed the connection]
<tejasmanohar> bootstrappm: can i manually run the SQL raw in activerecord?
edwinvdgraaf has quit [Remote host closed the connection]
<jhass> Bermulium: because .upcase returns a copy, it doesn't modify the receiver
<bootstrappm> you can but that kind of defeats the purpose of using ActiveRecord haha
<havenwood> Bermulium: compare with #upcase!
<tejasmanohar> bootstrappm: oh so `rails dbconsole` ?
<jhass> Bermulium: if you were to leave of the str =, it wouldn't affect str either
fabrice31 has quit [Ping timeout: 272 seconds]
<tejasmanohar> bootstrappm: because ... im using heroku thats where mmost of the good data is ;)
Takle has joined #ruby
kriskropd has joined #ruby
<tejasmanohar> bootstrappm: and i cant run `heroku run rails dbconsole` since there's no psql client on heroku's machine installed
krz has quit [Quit: WeeChat 1.0.1]
<bootstrappm> if you don't mind having non-portable stuff in your app, AKA if you're not planning on changing RDBMS then just encapsulate that sql in a method and go for it
<bootstrappm> wait tejasmanohar there's something cool i remember about connecting to a heroku DB
<Bermulium> Oh okey. So after the = ..., str now points to a different block in memory and all changed made to it won't affect n?
mrmargolis has quit [Remote host closed the connection]
ernham has quit [Quit: Leaving.]
<tejasmanohar> oh maybe in heroku's management console
mrmargolis has joined #ruby
<blogjy> out of interest, since i've forgotten.. can you install rails prior to installing the devkit?
<tejasmanohar> oh i got it bootstrappm it has a uri for me in management console
<bootstrappm> from the folder where you have the app that has the associated DB do this: `heroku pg:psql` tejasmanohar
<bootstrappm> that's not supposed to be a tongue-face, its a : P
<tejasmanohar> yeah
<tejasmanohar> works
<bootstrappm> nice
jpfuentes2 has joined #ruby
ndrei has joined #ruby
<tejasmanohar> so referrals_count is the # of 3rd level referrals ? bootstrappm
<tejasmanohar> doesnt seem right for my data
paulcsmith has joined #ruby
<bootstrappm> add a goal.id as the first column in that select
<bootstrappm> just to make sure yo're not getting duplicate data for some reason
Takle has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
<bootstrappm> or just do SELECT DISTINCT
<tejasmanohar> bootstrappm: whats all the referrals_count => 0 about?
<bootstrappm> tejasmanohar that means your 3rd degree referral isn't referring manyo ther people
<bootstrappm> many other*
<tejasmanohar> ohhh
shazaum has quit [Quit: This computer has gone to sleep]
<tejasmanohar> but the id's list my 3rd degree referrals, right?
<tejasmanohar> bootstrappm:
<bootstrappm> or simply enough time hasn't passed for your viral loop to get that far
<tejasmanohar> that seems right
<tejasmanohar> so this chart is of my third degree referrals, and the id's are the id's of them
<tejasmanohar> and then there's some data about them in the following columns, right bootstrappm ?
ndrei has quit [Remote host closed the connection]
<tejasmanohar> ah i get the query now i think
ndrei has joined #ruby
<tejasmanohar> or am i mistaken? bootstrappm
dopie has joined #ruby
<bootstrappm> correct though in the following columns there's also some info about the person that referred them
<bootstrappm> one sec, i'm making it a bit clearer
tjbiddle has joined #ruby
<tejasmanohar> oh
<tejasmanohar> im just really trying to get the COUNT of the # of third degree referrals bootstrappm
<bootstrappm> SELECT goal.id AS "id of this 3rd degree referrak", goal.referrals_count AS "# of people this person referred", close_referrers.id AS "id of person that referred this person", close_referrers.referrer_id AS "id of 1st person in chain" FROM users AS goal JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id WHERE close_referrers.referrer_id IS NOT NULL;
<bootstrappm> that should make it clearer
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<bootstrappm> then just throw a count in there: SELECT COUNT(goal.id) FROM users AS goal JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id WHERE close_referrers.referrer_id IS NOT NULL;
edwinvdgraaf has joined #ruby
n_blownapart has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Igorshp has quit [Remote host closed the connection]
<tejasmanohar> https://gist.github.com/tejasmanohar/00730fc469c7000d1e50 so this means 638 total 3rd deg referrals bootstrappm
<jhass> NOT NULL?
nfk has quit [Quit: yawn]
anaeem1 has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<tejasmanohar> i think that may be unecessary ? jhass
<bootstrappm> that's right tejasmanohar. Yes jhass he's looking for people where the person that referred them was also referred by somebody. Hence the person that referred them's referrer_id is not null
<bootstrappm> not unecessary I swear hahah
Igorshp has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<tejasmanohar> oh ah yeah
<tejasmanohar> makes sense
<tejasmanohar> since there are ruby "nil" when i did my AR queries earlier
robertodecurnex has quit [Remote host closed the connection]
<tejasmanohar> bootstrappm: so this can be done in AR?
leafybasil has joined #ruby
<bootstrappm> yep, working on that part now
<tejasmanohar> but why not just embed raw SQL in AR? bootstrappm
<tejasmanohar> and then get the value in ruby var and show it
<jhass> but wouldn't that include any level?
<tejasmanohar> or actually nvm its better with AR since i do things like group gem etc
aryaching has joined #ruby
<bootstrappm> oh jhass is right tejasmanohar, this includes 3rd level and above
<jhass> say you have a chain of null -> a -> b -> c -> d, it'll include a -> b, b -> c and c -> d, no?
<bootstrappm> need another join to get 3rd level exclusive
<tejasmanohar> 3rd level and above meaning 3+ (so 4, 5 , 6 etc)
<bootstrappm> yes
<tejasmanohar> thats fine actually
<bootstrappm> and the reason to not get embed SQL in AR is portability and purism
<tejasmanohar> i was just trying to get the picture i can add in exclusions etc later myself once i see the picture
<tejasmanohar> and i think that data is beneficial to me though im no data scientist and i dont know one
<bootstrappm> if you're more comfortable with AR, plan to switch database type, or just generally like ruby over SQL then you shouldn't embed the sql ... if none of those are true go ahead and do it
<jhass> .joins("SQL fragment").where("SQL fragment").count("SQL fragment") will be as good as you get here I think
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tejasmanohar> ah hm
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
Hijiri has quit [Quit: WeeChat 1.0.1]
adamholt has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<bootstrappm> yeah, I agree. If you use the AR associations (@user.referrers or User.all.collect {|u| u.referrers }) your app is gonna be doing more work
wildroman2 has joined #ruby
baweaver has quit [Remote host closed the connection]
<bootstrappm> If your DB isn't huge it doesn't matter much, but just an FYI
paulcsmith has quit [Ping timeout: 256 seconds]
zagaza has joined #ruby
yalue has quit [Read error: Connection reset by peer]
<zagaza> hi guys, where is the gemfile located in windows 8?
<tejasmanohar> ah
<tejasmanohar> bootstrappm: doesnt matter as much
<tejasmanohar> i think AR helps me a lot since i use some ar gems
x1337807x has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
_ht has quit [Quit: Konversation terminated!]
<bootstrappm> zagaza Gemfile exists per repo / app ... not system-wide
gambl0re has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
<tejasmanohar> bootstrappm: when i join the sql fragments is it like
rindolf has quit [Quit: Leaving]
tjbiddle has joined #ruby
bruno- has joined #ruby
<zagaza> bootstrappm oh ok, so for jekyll, I guess jekyll.rb ?
<bootstrappm> tejasmanohar its basically what jhass said: http://guides.rubyonrails.org/active_record_querying.html#joining-tables
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bootstrappm> zagaza jekyll installs as a system-wide binary. do `jekyll new whatever`
<tejasmanohar> User.joins("SELECT COUNT(goal.id) FROM users AS goal").joins("users AS close_referrers ON goal.referrer_id = close_referrers.id").where("close_referrers.referrer_id IS NOT NULL;")
<bootstrappm> then in the whatever folder should be your gemfile
wildroman2 has quit [Ping timeout: 255 seconds]
<tejasmanohar> bootstrappm: what is the method if i just wanna run the SQL query raw?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tejasmanohar> and get the # in ruby var
n_blownapart has quit []
<tejasmanohar> or sry nvm i cant do that i forgot since im using groupdate ruby gem
<zagaza> bootstrappm: do you mean the _config.yml?
dopie has quit [Quit: This computer has gone to sleep]
<tejasmanohar> zagaza: no, he doesn't :)
willharrison has joined #ruby
<bootstrappm> zagaza I've never used jekyll, if in that folder there is no Gemfile ... you might not need a Gemfile?
<tejasmanohar> i've used jekyll
x1337807x has joined #ruby
<zagaza> I need to add this to my gemfile: gem 'wdm', '~> 0.1.0' if Gem.win_platform?
<tejasmanohar> config yml is for jekyll settings
x1337807x has quit [Max SendQ exceeded]
<tejasmanohar> i wrote a jekyll site before zagaza https://github.com/LanceMatch/LanceMatch
<tejasmanohar> i used Gemfile
<tejasmanohar> its not 100% necessary
multi_io has quit [Ping timeout: 255 seconds]
wjimenez5271 has joined #ruby
<tejasmanohar> not required by jekyll, many sites dont use external gems
alvaro_o has quit [Quit: Ex-Chat]
<zagaza> ah cool, so I can just add it there ?
<tejasmanohar> yeah of course
x1337807x has joined #ruby
<zagaza> what's the gemfile.lock?
<tejasmanohar> you can add a gemfile anywhere you want
<tejasmanohar> its generated with all the deps etc
<tejasmanohar> take a peek, pretty self explanatory
<tejasmanohar> specific versioning etc
jpfuentes2 has quit [Ping timeout: 255 seconds]
<tejasmanohar> bootstrappm: do i have the right idea for that active record statement?
Hijiri has joined #ruby
<tejasmanohar> User.joins("SELECT COUNT(goal.id) FROM users AS goal").joins("users AS close_referrers ON goal.referrer_id = close_referrers.id").where("close_referrers.referrer_id IS NOT NULL;")
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
banister has joined #ruby
<bootstrappm> tejasmanohar its closer to something like this: User.joins('users AS close_referrers ON referrer_id = close_referrers.id').where('close_referrers.referrer_id IS NOT NULL').count
multi_io has joined #ruby
ndrei has joined #ruby
goodcodeguy has joined #ruby
DerisiveLogic has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
<zagaza> hmm tejasmanohar, I added gemfile but still getting that error with jekyll: "Please add the following to your Gemfile to avoid polling for changes:
<zagaza> gem 'wdm', '>= 0.1.0' if Gem.win_platform?"
<tejasmanohar> gist your gemfile
<tejasmanohar> and the error and what command ur running to bring up the err
x1337807x has quit [Client Quit]
casadei has quit [Remote host closed the connection]
<tejasmanohar> bootstrappm: is "AS" allowed? rails doesnt seem to like that
__chris has quit [Quit: This computer has gone to sleep]
<bootstrappm> might not be :/
phutchins has joined #ruby
<tejasmanohar> actually hm
<bootstrappm> let me check the AR syntax real quick
<tejasmanohar> PSQL doesnt seem to like it i think
anaeem1 has quit [Remote host closed the connection]
<tejasmanohar> im looking one sec
bmurt has quit []
Igorshp has quit [Remote host closed the connection]
<tejasmanohar> bootstrappm
<tejasmanohar> looking zagaza
<tejasmanohar> never used if Gem.win_platform? zagaza but seems logical. have you run `bundle`
visof has joined #ruby
<visof> hi guys
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GPrime has joined #ruby
rdark has quit [Quit: leaving]
<bootstrappm> my mistake tejasmanohar, include keyword "JOIN" at the beginning of the joins clause
ndrei has quit [Ping timeout: 265 seconds]
<jhass> zagaza: try gem install wdm instead
<zagaza> I tried gem install wdm, but got a bunch of errors
<tejasmanohar> bootstrappm: hm like this ? User.joins('JOIN users AS close_referrers ON referrer_id = close_referrers.id').where('close_referrers.referrer_id IS NOT NULL').count
<bootstrappm> yes
<bootstrappm> alternatively you can try the association syntax tejasmanohar: User.joins(:referrer).where.not(referrer: {referrer_id: nil}) tejasmanohar
tak1n has quit [Ping timeout: 250 seconds]
idafyaid has quit [Read error: Connection reset by peer]
tesuji has quit [Ping timeout: 258 seconds]
jpfuentes2 has joined #ruby
tak1n has joined #ruby
<tejasmanohar> hm
<zagaza> tejasmanohar: bundle install?
tesuji has joined #ruby
GPrime has quit [Read error: Connection reset by peer]
<tejasmanohar> irb(main):001:0> User.joins('JOIN users AS close_referrers ON referrer_id = close_referrers.id').where('close_referrers.referrer_id IS NOT NULL').count
<zagaza> ah ok nvm I needed bundler first
<tejasmanohar> PG::AmbiguousColumn: ERROR: column reference "referrer_id" is ambiguous
<tejasmanohar> hm but im running it on User.
idafyaid has joined #ruby
<tejasmanohar> oh this looks a lot more AR-y, irb(main):003:0> User.joins(:referrer).where.not(referrer: {referrer_id: nil}) PG::UndefinedTable: ERROR: missing FROM-clause entry for table "referrer"
casadei has joined #ruby
<jhass> zagaza: sounds like wdm is incompatible to Ruby 2.2
GPrime has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
<tejasmanohar> oh i think i understand the 2nd err
Igorshp has joined #ruby
asmodlol has quit [Ping timeout: 246 seconds]
<zagaza> jhass ah I see
<zagaza> should I install an older ruby?
<tejasmanohar> User.joins(:referrer).where.not(referrer_id: {referrer_id: nil})
<jhass> zagaza: might be the simplest solution, try 2.1
<tejasmanohar> wait nvm that still fails, its a JOIN hmm
<tejasmanohar> bootstrappm: do you follow this error? kinda weird
<zagaza> how do I uninstall the old? just plain uninstall?
<tejasmanohar> zagaza: consider a version manager like rvm or rbenv
* jhass not a windows user, *shrug*
<jhass> but I guess so
<tejasmanohar> consider not using windows too lolol
<zagaza> I'll try uninstalling :)=
<tejasmanohar> i thought rubyinstaller on windows could do multiple versions
<tejasmanohar> try that
dru` has joined #ruby
<bootstrappm> tejasmanohar one sec
<bootstrappm> tejasmanohar the first error is right, referrer_id there is ambiguous because both users and referrers have it
<bootstrappm> going to need to alias it using .from
<bootstrappm> the second error ...
asmodlol has joined #ruby
<tejasmanohar> o
<zagaza> ok so I installed ruby 2.1
<zagaza> and when I do ruby dk.rb init
Igorshp has quit [Ping timeout: 272 seconds]
<zagaza> I get sh.exe": /c/Ruby22-x64/bin/ruby: No such file or directory
<bootstrappm> is odd, I would assume it'd be able to infer the table name from the class_name you declared in the association
<zagaza> but my ruby folder changed to Ruby21-x64
einarj has joined #ruby
visof has quit [Ping timeout: 272 seconds]
<zagaza> so the question is, how do I change that folder in the init to Ruby21-x64? i am completely new to ruby
startupality has joined #ruby
ldnunes has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
<bootstrappm> tejasmanohar try: User.from('users AS goal').joins('JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id').where('close_referrers.referrer_id IS NOT NULL').count
<zagaza> nvm fixed it
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
umgrosscol has quit [Quit: Quit]
casadei has quit [Remote host closed the connection]
<zagaza> jhass: gem install wdm worked with 2.1, thanks
hololeap has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
mrsolo has quit [Quit: This computer has gone to sleep]
tesuji has quit [Ping timeout: 245 seconds]
last_staff has joined #ruby
Akagi201 has joined #ruby
FernandoBasso has joined #ruby
vickleton has joined #ruby
iamjarvo has joined #ruby
djbkd has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Takle has joined #ruby
Akagi201 has quit [Ping timeout: 272 seconds]
mrmargol_ has joined #ruby
mrsolo has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
turtil has joined #ruby
dopie has joined #ruby
turtil has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrmargolis has quit [Ping timeout: 240 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has quit [Quit: /quit]
<tejasmanohar> bootstrappm: oh had irc notificatoins off, still playing around with this
<tejasmanohar> lemme try that
<tejasmanohar> bootstrappm: is there a difference b/w this query and the one directly in PSQL earlier?
bkxd has joined #ruby
<tejasmanohar> because this returns 640
<tejasmanohar> ah i think this one is just 3rd level and the other is 3rd +? is that correct bootstrappm ?
baweaver has joined #ruby
startupality has quit [Quit: startupality]
valeriansaliou has joined #ruby
workmad3 has joined #ruby
<gambl0re> does anybody here know javascript??
<bootstrappm> no it should return the same tejasmanohar, no difference
<bootstrappm> i do gambl0re but why not ask in ##javascript?
valeriansaliou has quit [Client Quit]
<gambl0re> cause they're fckuing igoring me for some reason..
<gambl0re> my question is probably too basic for them experts..
<jhass> how long did you wait?
<tejasmanohar> ask there now, i joined the channel
<gambl0re> http://jsbin.com/yojatawume/1/edit?js,console ....why isn't it returning 64?
asmodlol has quit [Ping timeout: 255 seconds]
<jhass> ^ nobody answers this
<tejasmanohar> gambl0re: why dont you drop some console.logs in between
startupality has joined #ruby
elfuego has quit [Quit: elfuego]
<jhass> gambl0re: how long did you wait?
tyfighter has joined #ruby
<tejasmanohar> debugging ;)
asmodlol has joined #ruby
Notte has joined #ruby
al2o3-cr has quit [Quit: the quieter you become, the more you are able to hear]
graydot has joined #ruby
jstanton has quit [Ping timeout: 265 seconds]
<gambl0re> long enough...
vt102 has quit [Remote host closed the connection]
<gambl0re> theres plenty of activity in there for people to see my message.
graydot has quit [Client Quit]
ForkingPaths has joined #ruby
<tejasmanohar> gambl0re: how long?
<bootstrappm> then you've prob offended them somehow hahha
ForkingPaths has quit [Max SendQ exceeded]
<bootstrappm> first things first gambl0re your indentation is fucked, fix it
ForkingPaths has joined #ruby
<jhass> please take it to ##javascript, this is #ruby after all
<gambl0re> code is too small to really care about indentation.
ForkingPaths has quit [Max SendQ exceeded]
<tejasmanohar> bootstrappm: this is where im at rn https://gist.github.com/tejasmanohar/b032f0973312aa3ada13. i could group by day earlier with my old query User.where.not(:referrer_id => nil).group_by_day(:created_at).count
DoubleMalt has joined #ruby
<tejasmanohar> gambl0re, your attitude prob pissed them off
<tejasmanohar> i wish ##javascript had logs so i could check how long you waited :P
<tejasmanohar> (but only ##node.js does)
ForkingPaths has joined #ruby
codecop_ has quit [Remote host closed the connection]
graydot has joined #ruby
<jhass> that's why I don't find any? :(
edwinvdgraaf has joined #ruby
graydot has quit [Client Quit]
<bootstrappm> gambl0re if you don't care about your indentation i don't care about helping you
jpfuentes2 has joined #ruby
<tejasmanohar> bootstrappm: do you know how i can debug this one? id love to p some stuff, but not seeming to do the trick. running this in rails c btw
<tejasmanohar> questioning why the group by date works after the where earlier and not now
paulcsmith has joined #ruby
<bootstrappm> tejasmanohar since created_at can be in goal or in close_referrers you have to specify which one you're referring to
<tejasmanohar> is it not returning activerecord objects or something?
<tejasmanohar> oh hm
<bootstrappm> replace created_at with goal.created_at
<DoubleMalt> hey people, is there a rails channel on freenode?
<gambl0re> damn...its like 10 lines of code. i'm asking those who want to help to help. if you dont want to help then fine.
<tejasmanohar> DoubleMalt: /join #RubyOnRails
<bootstrappm> DoubleMalt its #ror i believe
<tejasmanohar> *that redirects, yeah
<bootstrappm> oh, that
<c355E3B> gambl0re: check your return
<DoubleMalt> thx
<tejasmanohar> bootstrappm: but goal is not an available variable at that point in the query is it ?
edwinvdgraaf has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 265 seconds]
<tejasmanohar> group_by_day(goal.created_at)
<bootstrappm> gambl0re: it matters because my your indentation it looks like you believe var result = 1 only executes in the case of the if, which isn't the case
<jhass> I'm serious, take it to ##javascript
<bootstrappm> tejasmanohar: make it a string
<tejasmanohar> ah
<tejasmanohar> ahh ok that makes sense
<tejasmanohar> gambl0re: just use a freaking js beautifier
edwinvdgraaf has joined #ruby
<jhass> do I have to start kicking people?
<tejasmanohar> and ask in ##javascript and wait lol, its such an active channel
startupality has quit [Quit: startupality]
swgillespie has joined #ruby
pandaant has quit [Remote host closed the connection]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Vitor has joined #ruby
paulcsmith has quit [Ping timeout: 265 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tejasmanohar> how could <%= line_chart
<tejasmanohar> User.from('users AS goal').joins('JOIN users AS close_referrers ON goal.referrer_id = close_referrers.id').where('close_referrers.referrer_id IS NOT NULL').group_by_day('goal.created_at').count %> be
<tejasmanohar> be considered 1..2 arguments?
Hijiri has quit [Quit: WeeChat 1.0.1]
juanpaucar has joined #ruby
<tejasmanohar> oh wait nvm i had a linebreak oops editor
bkxd has quit [Ping timeout: 244 seconds]
<bootstrappm> also don't use queries in your views, bad form. put it in a helper method or something
<bootstrappm> figured out the association syntax tejasmanohar: User.joins(:referrer).where.not(referrers_users: {referrer_id: nil})
rodfersou has joined #ruby
<bootstrappm> don't ask why the table name AR gives the association is 'referrers_users' because I don't know ... but it does work
<workmad3> bootstrappm: habtm join table
<workmad3> bootstrappm: which has the convention of using both table names in lexical order
<bootstrappm> ^ thanks :)
enebo has quit [Quit: enebo]
juanpaucar has quit [Ping timeout: 252 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
jpfuentes2 has joined #ruby
<shevy> we need to make ruby more kickass
rodfersou has quit [Client Quit]
tejasmanohar has quit [Ping timeout: 258 seconds]
decoponio has quit [Quit: Leaving...]
<bootstrappm> shevy how do we do that_
nettoweb has joined #ruby
<bootstrappm> ?
Vitor has quit [Ping timeout: 264 seconds]
<shevy> hmmm
imperator has quit [Quit: Leaving]
<jhass> yeah, ruboto is already written in ruby, and it does most definitely kick asses
<shevy> we need to improve the quality of the gems
<shevy> old and abandoned projects should be picked up by people - see when _why left and others took over shoes
<bootstrappm> yeah, I remember that ... were all his projects picked up?
<shevy> not sure actually
<shevy> I think it was somewhere collected in some umbrella project
wallerdev has joined #ruby
<bootstrappm> I'm down to help, I've been devoting a lot of my free time to developing publicly as I'll be leaving my company soon, been wanting to get my public presence up
mrmargol_ has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
<bootstrappm> any gems in particular yo have in mind shevy?
baweaver has quit [Remote host closed the connection]
<shevy> quite amazing how many of his projects have been taken over :)
<shevy> bootstrappm well
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I am looking at an old project here
marr has joined #ruby
<shevy> dunno how useful it is... from 2005 or 2006 is the last changelog entry
<shevy> but it's just an example, I am sure there are many others like that
platzhirsch has quit [Quit: Leaving.]
rbennacer has quit [Ping timeout: 255 seconds]
<shevy> ok so ... _why's projects seem to be covered hehe... I think only one has not found a new maintainer
Hijiri has joined #ruby
<shevy> uhm
<shevy> what is this:
<shevy> I can't tell whether he was joking or serious
<bootstrappm> looks like a web page tester
snockerton has quit [Quit: Leaving.]
<shevy> this one was cool: https://github.com/Sophrinix/sandbox
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
<shevy> do we have a sandbox for ruby?
<bootstrappm> that .io stuff is not ruby ... though I'm sure you caught that hahah
<bootstrappm> whats a sandbox shevy?
<bootstrappm> ah just saw the link
elfuego has joined #ruby
<shevy> well
<shevy> I remember I once asked _why for the source to it :)
serivichi has joined #ruby
<shevy> I think he did the initial variant of tryRuby with it
<shevy> irb on the web
jenrzzz has quit [Ping timeout: 264 seconds]
<bootstrappm> ahh nice
freerobby has quit [Quit: Leaving.]
iamjarvo has joined #ruby
momomomomo has joined #ruby
<bootstrappm> whoa, what his become of his old domain!? http://whytheluckystiff.net/about/
blogjy has quit []
<bootstrappm> one of the great internet tragedies
catcher has quit [Quit: Leaving]
poguez_ has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
baweaver has joined #ruby
tyfighter has quit [Quit: tyfighter]
<shevy> no idea
<shevy> some mysteries in life can never be figured out
mary5030 has quit [Ping timeout: 265 seconds]
einarj has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx> hello
einarj has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
<bootstrappm> hello there xxneolithicxx
<xxneolithicxx> hideho rubyist!
<xxneolithicxx> :-)
<bootstrappm> you got me curious shevy, started googling how people decide which projects to contribute too
<bootstrappm> to*
<jhass> the answer "looks fun, lacks this thing I can do"
<xxneolithicxx> anything that makes me better at my job or I find interesting and know how to solve problems for
Zai00 has quit [Quit: Zai00]
casadei has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
Notte has quit [Remote host closed the connection]
startupality has joined #ruby
<shevy> bootstrappm I guess one way is for projects that are popular
fabrice31 has quit [Ping timeout: 272 seconds]
<bootstrappm> I think there's different kinds. There are people that run into a bug and pull request / fix it and then there are people that are involved with the other committers and follow the progress of a project ... and one doesn't necessarily lead into the other
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Aeyrix> Morning y'all
codelurker has quit [Quit: Leaving]
momomomomo has quit [Ping timeout: 256 seconds]
<bootstrappm> there's this: https://www.openhub.net/ but most of the projects on the homepage need some lower level knowledge
casadei has quit [Ping timeout: 245 seconds]
<bootstrappm> there's this: http://www.codetriage.com/ ... I see a lot of Python
<bootstrappm> morning Aeyrix
momomomomo has joined #ruby
swgillespie has joined #ruby
<Coraline> Also CodeMontage (OSS projects for social good)
<Coraline> And openhatch
<xxneolithicxx> I was looking at the metrics on that openhub yesterday, was quite interesting and wonder how accurate it is
mary5030 has joined #ruby
<xxneolithicxx> the trending data seems to show people dropping/moving away from C/C++ for Python
concave has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arietis has joined #ruby
<eam> xxneolithicxx: I think most of the C/C++ is toward java
rodfersou has joined #ruby
<eam> python serves a fairly different problem space
<eam> (as does ruby)
<xxneolithicxx> shoot me pls, ill take C++ over Java any day
rodfersou has quit [Client Quit]
arietis has quit [Client Quit]
<eam> well, yes
<xxneolithicxx> it does but i think Python's rise is probably more due to lower barrier to entry than most the others and increased use in OS (Linux) space
<shevy> well
<shevy> people combine a high level language with a low level language
<xxneolithicxx> like that hot mess of embedding python in java that i seen somewhere the other day
<shevy> look at the old days of the C hackers using perl
<shevy> hehe
<jhass> well, pretty sure java is considered a high level language
<shevy> well that's an improvement still xxneolithicxx
<eam> keep in mind, everything is growing in absolute terms
<shevy> more python, less java
<eam> it's not like C++ use is shrinking
<eam> heck, there's probably more FORTRAN written today than at any point in history
<xxneolithicxx> I know, i really think if C++ was backed with community repos for deploying libs like ruby/python/perl it would bring more people back to it
<bootstrappm> I really hope that's not true O_O, what industry uses FORTRAN a lot?
<shevy> people still use FORTRAN?
<eam> xxneolithicxx: what do you think distros are? :)
imperator2 has quit [Quit: Valete!]
<xxneolithicxx> lol
<eam> shevy: yeah, it still dominates for fast math
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> xxneolithicxx: seriously though, that's what rpm is
<xxneolithicxx> but its OS independent is what i mean in the same way that gem/pip are
<xxneolithicxx> *not
<eam> no it's not?
<eam> you can run rpm on windows, freebsd, osx
kirun has quit [Quit: Client exiting]
<eam> there are deb distros for all those platforms as well
<xxneolithicxx> rpm on Windows?
<eam> sure
<eam> rpm and deb run on more platforms than gem does
al2o3-cr has joined #ruby
<Aeyrix> Is it as garbage as C++ itself?
<xxneolithicxx> using cygwin
<xxneolithicxx> that doesnt count as windows support
concave has quit [Read error: Connection reset by peer]
<eam> xxneolithicxx: you can build it native
<eam> rpm is a very generic spec
<xxneolithicxx> but who the hell will...
<eam> well, sure, but who the hell runs ruby on windows (and the answer to both: a few crazy folks)
<xxneolithicxx> just because u can doesnt mean its actually useful
<xxneolithicxx> lol
<Aeyrix> I have a pretty good set-up on Windows
<xxneolithicxx> i stopped trying to develop on Windows when I got on Linux and noticed how easy it was to set stuff up
<Aeyrix> Works with everything, strips windows newlines for my unix stuff.
<Aeyrix> Never had an issue
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
<Aeyrix> The potential frustration in it though is probably why ruby isn't taught at universities versus python
<Aeyrix> Python has that stupid ide
willharrison has joined #ruby
<xxneolithicxx> I think natural readability for a new coder is much better with Python as well
<eam> there's also more industry support behind python
<Aeyrix> No end statements for blocks passes pisses me off
<Aeyrix> Fuck this phone
<eam> python and ruby both target the jvm though, so really there's no issue of platform support
<Aeyrix> I'm never buying a HTC again.
<eam> (and I do say that tongue in cheek)
<shevy> ok wait
<shevy> Aeyrix what ide?
tjbiddle has quit [Quit: tjbiddle]
<Aeyrix> I forget what it's called.
<xxneolithicxx> idle?
<Aeyrix> Yeah
<xxneolithicxx> that is not an IDE lol
speakingcode has quit [Ping timeout: 252 seconds]
<shevy> "IDLE (Integrated DeveLopment Environment) is an integrated development environment for Python"
<shevy> I want squeak for ruby
<Aeyrix> Yeah that's an idea of
<Aeyrix> Fuck
<Aeyrix> This
<Aeyrix> Phone
<Radar> Aeyrix: I think Ruby isn't taught at universities because it is not an academic language like Python is.
<shevy> lol
<Aeyrix> That's an ide *
<Radar> We don't have a NumPy or SciPi equivalent.
<shevy> Aeyrix keep that phone, it's making you funnier
<Aeyrix> I'm buying a fucking iPhone
<Aeyrix> Goddamn I hate htc
<Radar> Aeyrix: Are you done?
<xxneolithicxx> its the barest IDE if you want to call it that, its just a freakin REPL
<Aeyrix> No.
<shevy> I thought some sciruby folks wanted to remedy this
<jhass> isn't there sciruby actually?
* Radar hands Aeyrix a chill pill
<Aeyrix> Yeah but it's not as fully featured.
<Radar> ^
<eam> fortran integration lacking
<Aeyrix> 12C today Radar, don't need.
goodcodeguy has joined #ruby
<Radar> When I inevitably teach Ruby at a university, I will be getting the students to setup an Ubuntu VM and installing Ruby on that as lesson 1.
<jhass> Aeyrix: doesn't sound like you don't need it...
kinduff has joined #ruby
<Aeyrix> Go away jhass
<Aeyrix> You're like a troll but you have op
njs126 has quit [Ping timeout: 245 seconds]
<Aeyrix> Radar: Which uni?
<jhass> and now?
<Radar> Aeyrix: *shrug* one of the many out there
<Aeyrix> Ah, no short term plans for that?
goodcodeguy has quit [Client Quit]
<Radar> Why would I make short term plans?
<shevy> hmm
<shevy> Ubuntu VM
<jhass> you could make a short term plan to make a long term plan
<Aeyrix> I make plans for getting out of the bathroom in case the building sets on fire.
Channel6 has quit [Quit: Leaving]
<shevy> how will they install ruby Radar? :)
<Aeyrix> I have no idea why you wouldn't make a short term plan.
<eam> teaching interns within the industry is pretty fun
<Radar> shevy: chruby + ruby-install of course.
<shevy> aha ok
<eam> huge bonus: no dealing with university bureaucracy
<xxneolithicxx> i think we just found our local dooms day prepper
* xxneolithicxx looks at Aeyrix
<Radar> eam: Sure, if you can find a company who's willing to hire interns.
<Aeyrix> xxneolithicxx: Haha it's kind of a subconscious thing.
<eam> Radar: are you kidding?
<Radar> eam: imo that's pretty pie in the sky thinking.
<Aeyrix> Or unconscious, I don't do it deliberately.
kinduff has quit [Client Quit]
<eam> Radar: what country are you located in?
platzhirsch has quit [Quit: Leaving.]
edwinvdg_ has joined #ruby
<Radar> eam: No company I've worked for has been willing to hire interns with the purpose of training them up.
<Aeyrix> shevy: That article is balderdash.
<Radar> eam: Australia.
<eam> Radar: ah, maybe different over there but in silicon valley intern season is HUGE
<shevy> Aeyrix it is all the things!!!!!!!
<Radar> eam: Are the SV interns paid?
<shevy> imagine a huge thread of code
<eam> yes very well
<Radar> eam: Good :)
<shevy> containing ALL code that has ever been written
<eam> Radar: ~70-90k?
<shevy> and ever will be written
<Radar> eam: I would love it if we could do the same here. I think it'd be beneficial to the commuity.
kinduff has joined #ruby
<eam> I've even seen discussions about how we can create a lower position because the hiring bar for interns has gotten so high
<eam> like "ok how about internship apprentices"
<xxneolithicxx> 70-90k for SV? are you joking, have you seen their living expenses?
<Radar> eam: The fear that I've heard is that we'll train up the intern and then they'll leave and go somewhere else.
mary5030 has quit [Remote host closed the connection]
<eam> xxneolithicxx: not joking
<Radar> 70-90k is good pay for AU :)
weemsledeux has joined #ruby
<xxneolithicxx> i wouldnt step foot in SV for anything less that 100-120k
starless has joined #ruby
<shevy> Aeyrix haha the guy from that webpage asks what this yields in python: print unichr(0x61b) + " what does this print out ?!?" and it yields me a "SyntaxError: invalid syntax"
<eam> xxneolithicxx: as a summer intern?
mary5030 has joined #ruby
<xxneolithicxx> no in general
<Radar> !popcorn
<Radar> ;)
<xxneolithicxx> im well past interning age lol
<eam> well as a senior guy I agree
<Radar> fwiw I agree with xxneolithicxx
<eam> I'd demand twice that minimum ;)
<eam> but as an intern, 90k oughta be doable
<xxneolithicxx> sure, doable in half a garage lol
<Radar> Living the live
<Radar> living the life*
<eam> xxneolithicxx: it's not even close to that bad
<shevy> bill gates slept in a garage!!!
<Radar> shevy: Yeah but he wasn't exploited as cheap labour :P
<xxneolithicxx> eam: have you not read the stories of 1k rent for garages?
einarj has quit [Remote host closed the connection]
<eam> xxneolithicxx: I just got back this morning from preping a rental for sale, 3bd home in sunnyvale I've been renting for 2k/mo
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<eam> I'm pretty up to speed on the market
<shevy> xxneolithicxx garages are that pricey??
<Radar> eam is old
<xxneolithicxx> shevy: hell yes
<Radar> (er)
<shevy> yeah
<eam> xxneolithicxx: most of what you see are for the extremely fashionable neighborhoods in SF
<shevy> good old eam
<shevy> perl guru
<shevy> fossil unix hacker
<eam> and asshole silicon valley slumlord
<shevy> lol
<eam> seriously though it's not so expensive
<djbkd> lol
<shevy> actually, California would be my favourite area in the USA
<eam> live in san leandro, interns don't have kids
<xxneolithicxx> i dunno man, ill take my 90 and work from home
<eam> I think they can tolerate 20 minutes on the train
cirn0 has joined #ruby
jenrzzz has joined #ruby
<Radar> I tolerate 20 minutes on the train :)
<Radar> (barely)
<eam> Radar: I tolerate 60
<shevy> "At least half of the fruit produced in the United States is now grown in California, and the state also leads in the production of vegetables."
<Radar> eam: hardcore
<Radar> eam: I bet you get a seat?
starless has quit [Client Quit]
<eam> Radar: indeed I'm at the very end of one line
<eam> schools out that far are great
<shevy> 60 minutes standing
<eam> shevy: sitting, with a mifi
<eam> it's not bad
<eam> 2 hours a day to write code without coworkers bothering me
<jhass> shevy: let me quote from your link: "In fact, if your code isn't using Unicode to represent strings right now, you're almost certainly doing it wrong."
mary5030 has quit [Ping timeout: 245 seconds]
<xxneolithicxx> when i was in Atlanta as an intern i took two buses and a train to go to work with a 1-2hr commute each way
<shevy> jhass I have lost faith in that guy, his python example does not even work
Hijiri has quit [Quit: WeeChat 1.0.1]
finisherr has quit [Quit: finisherr]
rubie has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
mistergibson has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
mistergibson has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
MrBeardy has quit [Ping timeout: 256 seconds]
<eam> btw, san leandro: http://sfbay.craigslist.org/eby/apa/5043938227.html 2bd for $1k
<xxneolithicxx> carpet? never lol
<eam> now, in palo alto, that 2bd is going to be 3.5-4k
baweaver has quit [Remote host closed the connection]
<jhass> shevy: probably stuck on python 2
<xxneolithicxx> well i guess i know who to ask if i ever decide to go work in CA
<shevy> eam is that cheap? that seems quite pricey
danman has quit [Quit: danman]
njs126 has joined #ruby
<eam> shevy: it's one of the cheaper areas in the bay area (excluding dangerous)
<shevy> damn
<shevy> guess that was it for my plans to go there
<xxneolithicxx> shevy wouldve had enough to land a shed lol
<eam> shevy: well, you'll make 7-9x that as an intern and 15-25x that as a grown up
finisherr has joined #ruby
vickleton has quit [Quit: Ex-Chat]
vikaton has quit []
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emptyflask has quit [Remote host closed the connection]
<xxneolithicxx> no but it is seriously bad in some areas for low income people
someword has quit [Quit: Leaving.]
<eam> xxneolithicxx: it totally is. A 50k salary isn't affordable
<eam> (which is median, non-tech)
<eam> xxneolithicxx: quite a bit of non-tech commutes in from the exurbs though
<eam> eg tracy, vallejo, gilroy
MrBeardy has joined #ruby
<eam> median family income in sunnyvale, CA (which is a fairly representative mix of nice/run down areas) is 105k
RegulationD has quit []
<djbkd> oakland is in a bit of a rebirth. not sure i'd raise a family there, though, tbh.
commondream has joined #ruby
<bootstrappm> uff all this talk of prices, cities, states makes me miss NYC
<eam> djbkd: yeah, piedmont is nice, but the prices climb sharply
<djbkd> temescal is gentrifying rapidly if you can believe it
<bootstrappm> been in guatemala for a little over 2 yrs now ... might be heading back stateside by years end
<bootstrappm> think Boston though, had enough of NYC
<eam> djbkd: I can, I have a cousin in that area
<eam> it's lovely
paulcsmith has joined #ruby
freerobby has quit [Quit: Leaving.]
ravenreborn_ has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
baweaver has joined #ruby
<djbkd> if i was raising a family, i'd probably stay in Alameda.
<xxneolithicxx> eww Boston
Hijiri has joined #ruby
<xxneolithicxx> the ugliest city one can lay eyes
vikaton has joined #ruby
danman has joined #ruby
<xxneolithicxx> *on
<djbkd> heh you've never been to baltimore city
danman has quit [Client Quit]
<xxneolithicxx> they have modern architecture next to old medieval that looks absolutely hideous and make no attempt to make them flow
<xxneolithicxx> so drastic and dramatic its absolutely ugly
<xxneolithicxx> that and Boston culture is pretty ugly too
<bootstrappm> I'm a huge fan :P
<bootstrappm> of both
Mekkis has quit [Excess Flood]
<bootstrappm> but I really mean greater boston
<bootstrappm> Boston proper is small
Mekkis has joined #ruby
jbomo has joined #ruby
<xxneolithicxx> yea i get that, most people who say Boston mean X miles around Boston
<xxneolithicxx> otherwise no one will understand where the hell it is lol
<xxneolithicxx> all of this < ------------------------------------- > is Boston
<bootstrappm> haha basically
paulcsmith has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
<eam> "everything the light touches is our kingdom"
<xxneolithicxx> lol
Aswebb_ has quit []
Kricir has quit [Remote host closed the connection]
<baweaver> So people in Boston are just as snooty about the 'proper' as SF eh?
<xxneolithicxx> ok i gotta format my laptop and prep it for returning to my job... dban here i come
Akagi201 has joined #ruby
<xxneolithicxx> <---- I snickered when they said put the PW on a post it note. No sir you get your laptop back blank
powersurge has quit [Quit: WeeChat 0.4.3]
dopie has quit [Quit: This computer has gone to sleep]
Ropeney has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
Neomex_ has quit [Quit: Leaving]
mandarinkin has quit [Quit: Leaving]
gluten_hell has quit [Quit: Computer has gone to sleep.]
shuber_ has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
last_staff has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 252 seconds]
saadq has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
Guest238 is now known as Rager
dru` has quit [Ping timeout: 240 seconds]
edwinvdg_ has quit [Remote host closed the connection]
zagaza has quit []
edwinvdgraaf has joined #ruby
commondream has quit [Remote host closed the connection]
hostess has quit [Remote host closed the connection]
<shevy> hmm
<shevy> how to pass a block to different methods? I must use the &foo syntax?
hostess has joined #ruby
<shevy> like in a waterfall... every method bounces the block to another method, until it ends to the main method
<bootstrappm> sounds like you have the answer, no shevy?
shuber_ has quit [Remote host closed the connection]
baweaver has joined #ruby
commondream has joined #ruby
kith_ has joined #ruby
centrx has joined #ruby
kith has quit [Disconnected by services]
kith_ is now known as kith
bricker has joined #ruby
shuber_ has joined #ruby
dfockler has joined #ruby
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> probably
<shevy> it feels kind of weird
<shevy> in one method I use yield
<shevy> in others I'd use & ?
<ebonics> it would be cool if you could pass blocks with state :D
Hobogrammer has quit [Read error: Connection reset by peer]
mahmoudmahfouz has joined #ruby
Hobogrammer has joined #ruby
mahmoudmahfouz has quit [Max SendQ exceeded]
dfockler has quit [Ping timeout: 244 seconds]
edwinvdg_ has joined #ruby
tvw has quit []
finisherr has left #ruby [#ruby]
<kinduff> shevy: have you read about state_machine?
<shevy> is that where the machine stores its internal state?
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<baweaver> ebonics: Can't you just screw with the bindings?
<ebonics> baweaver, what do you mean
<baweaver> You can capture state with a closure in Ruby, or rebind it to different states
Rickmasta has joined #ruby
emptyflask has joined #ruby
<kinduff> shevy: kinduff, helps out with that waterfall scenario you're talking about
<ebonics> you mean store the state somewhere then call for it after you pass it?
<baweaver> Just a sec
<shevy> I think I solved it
<kinduff> shevy: try avoiding to call a method inside a method as a waterfall, if something in the middle fails, you're going to have a bad time
<shevy> I simply invoke the methods via { yield if block_given? }
<baweaver> >> def div_by(n) ->x{x%n==0} end; (1..10).select(&div_by(4))
<ruboto> baweaver # => [4, 8] (https://eval.in/370826)
<shevy> nothing fails :)
momomomomo has quit [Quit: momomomomo]
<baweaver> Like that, you can store state
<baweaver> the lambda returned there remembers that n is 4
<shevy> My ruby code is like the last man standing, a zombie. It always tries to come back.
<ebonics> that's just streaming
<baweaver> closure
<shevy> but the & syntax just trips me up
<kinduff> know the feel, just try to be as expressive as you must have
<ebonics> i'm talking about if you have a block in an object, you pass it to one method, then pass it to another method while keeping some state from the first
<ebonics> not inlining it though, i mean as part of the block itself
<baweaver> Functions can return functions to capture more state
<xxneolithicxx> inception
hsps__ has quit [Ping timeout: 264 seconds]
juanpaucar has joined #ruby
<baweaver> You can simulate objects using lambdas if you're really driven
<baweaver> and numbers (church numerals)
<baweaver> and basically any other data structure
<baweaver> See partial application and currying
<zenspider> tom stewart has a really fantastic blog post doing just that
<zenspider> implements fizzbuzz entirely out of lambdas, including numbers / strings
<baweaver> zenspider: Have you seen Jim's talk on the Y Combinator?
<zenspider> yeah. I was there
<baweaver> Great watch. RIP Jim
<bootstrappm> alright, found something that def needs work shevy - the mongodb ruby driver documentation -_-
<bootstrappm> oooo when did rubygems get a redesign
<bootstrappm> i like
hsps__ has joined #ruby
<baweaver> Within a few months
<kinduff> looks pretty good
<zenspider> it was one of the better ones I've seen... but I have yet to see a GOOD explanation of the ycombinator that doesn't rely on a huge leap in the middle
<ebonics> people still use mongodb :o
<shevy> yeah a while ago
<ebonics> i thought that was just a fad
<shevy> the bright orange is a bit eye-scratching
<baweaver> zenspider: You should try Monads some time then ;)
<zenspider> gah. yeah. that orange... my eyes bleed
<baweaver> I've yet to see someone give a good explanation without an entire book leading up to it.
<zenspider> baweaver: not a big fan
juanpaucar has quit [Ping timeout: 272 seconds]
<zenspider> Tom's talk on monads was great tho
<baweaver> The second someone says endofunctors you know stuff is about to get real
<zenspider> real mentabatory :P
<baweaver> Though contracts for Ruby are an interesting idea in some cases
rkazak has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
gusrub has quit [Quit: Leaving]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
mikecmpb_ has joined #ruby
mary5030 has joined #ruby
shuber_ has quit [Remote host closed the connection]
Coldblackice has joined #ruby
moretti has quit [Quit: Leaving...]
sevenseacat has joined #ruby
mikecmpb_ has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 258 seconds]