havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<EllisTAA> shevy: to create a set of code that can be reused?
ruby-lang843 has quit [Ping timeout: 246 seconds]
<EllisTAA> oh wait … create reusable objects to accept messages ...
tomphp has joined #ruby
stardiviner has joined #ruby
<BraddPitt> I like to ask them to design a simple OO system (for reference, i was interviewing Java candidates)
Rickmasta has joined #ruby
<BraddPitt> thats a good question shevy but not really a white boarding one
<EllisTAA> BraddPitt: that seems like pretty long for white boarding …
<BraddPitt> although it could very easily turn into one with meaningful discussion
<BraddPitt> EllisTAA i tell them psuedocode is ok, I want to see design and implmentation mostly
<EllisTAA> oh
startupality has quit [Ping timeout: 240 seconds]
wildlander has quit [Quit: Saliendo]
danieli has quit [Quit: *does an epic backflip into nowhere*]
voltalio has joined #ruby
eminencehc has quit [Remote host closed the connection]
<shevy> EllisTAA well you could store stuff in a module too
<EllisTAA> shevy: true but u can’t send it messages
SCHAAP137 has quit [Quit: Leaving]
mattprelude has quit [Ping timeout: 240 seconds]
<shevy> what in ruby accepts messages
<EllisTAA> objects
<yxhuvud> shevy: everything!
<shevy> is a module an object
<EllisTAA> fine
<EllisTAA> then what’s a class
<shevy> an object
<shevy> :)
<EllisTAA> a blueprint for objects?
<shevy> yeah that as well
<shevy> ruby is the most prototypic class-based programming language I know of
dstarh has joined #ruby
baweaver has quit [Remote host closed the connection]
jamesaxl has quit [Remote host closed the connection]
<shevy> EllisTAA the distinction between classes and modules is somewhat arbitrarily; you can't instantiate from a module, and you can't include a class into another class, but you can subclass
<yxhuvud> shevy: you obviously doesn't know of smaltalk
dstarh has quit [Client Quit]
<yxhuvud> or if you focus on the prototype part, self or lua.
<shevy> lua
<shevy> with its awesome tables
tkuchiki has joined #ruby
<EllisTAA> what’s your go to algorithm question for interviewees
<shevy> levensthein distance!
<shevy> EllisTAA gem itself has something about that
<shevy> let's give it a try
<shevy> >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'EllisTAA', 'Ellis'
<ruboto> shevy # => 3 (https://eval.in/439887)
<shevy> tada!
<platzhirsch> Whiteboard interviews demonstrate the broken state of interviews
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hehe
<shevy> they just wanna torture somebody
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> poor EllisTAA
<yxhuvud> I don't know, I do reasonably well with them.
<EllisTAA> i dont mind them
<shevy> do you have to do lots of interviews?
j4cknewt_ has joined #ruby
<platzhirsch> I'd give them a take away thing to implement and then you can discuss the implementation, optimization potentials, maybe even do a pairing session on the code
tkuchiki has quit [Ping timeout: 268 seconds]
j4cknewt_ has quit [Remote host closed the connection]
_rukh has joined #ruby
j4cknewt has quit [Ping timeout: 252 seconds]
<platzhirsch> based such an interview this was created: https://github.com/platzhirsch/aquanaut
<platzhirsch> no one starred it. I hate the Internet
n008f4g_ has joined #ruby
`based_pdev` has quit [Read error: Connection reset by peer]
`based_pdev` has joined #ruby
icole has quit [Read error: Connection reset by peer]
<BraddPitt> I agree platzhirsch
icole has joined #ruby
<BraddPitt> re; how bad whiteboarding is
sanjayu has quit [Ping timeout: 246 seconds]
mwlang has quit [Quit: mwlang]
yqt has quit [Ping timeout: 264 seconds]
<shevy> platzhirsch I only watch or don't watch!
<platzhirsch> voyeur
<shevy> hehe
<platzhirsch> don't feel flattered
<platzhirsch> pervert
<shevy> I can't keep up well with web-traffic :(
mooe has quit [Quit: Connection closed for inactivity]
_rukh has left #ruby [#ruby]
iamninja has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
girl25usapic has joined #ruby
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
rismoney1 has quit [Ping timeout: 255 seconds]
voltalio has joined #ruby
<EllisTAA> platzhirsch: ‘no one starred it. i hate the internet’ lol
<platzhirsch> yeah fuck this shit
devoldmx has quit [Ping timeout: 250 seconds]
<platzhirsch> I spend 4 days working on this project and no one cared, that's why I became a Node.JS developer
<Bish> is there any way how x = x.gsub(...) and x.gsub!(...)
<Bish> beave differently?
<platzhirsch> aka hipster macbook homeless coder
voltalio has quit [Client Quit]
<nofxx> platzhirsch, you didn't include a screenshot
<nofxx> and tweeted it
<Musashi007> lol what is hipster macbook homeless coder
<platzhirsch> nofxx: the screenshot is 404'ing at the moment
c0ncealed has quit [Quit: going dark...]
c0ncealed has joined #ruby
<platzhirsch> Musashi007: if you ever see a software developer in a Starbucks coffee who's implementing a web app with node and mongo, you know
<nofxx> platzhirsch, a screenshot worth WAY, but WAY more than code. In star rate.
houhoulis has joined #ruby
<platzhirsch> yeah :|
<Musashi007> @platzhirsch living in the bay area.. i’ve _never_ seen one of those.. lol
<platzhirsch> good, how' the bay area?
<platzhirsch> I heard it's always cold there, still would like to move there
c0ncealed has quit [Client Quit]
<Musashi007> overpriced, pretentious
<Musashi007> crowded, etc
<platzhirsch> mono-culture?
casadei has joined #ruby
<BraddPitt> bay area is wonderful
<Musashi007> wouldnt’ say that
<platzhirsch> Good, I want to live there for a bit and offend people
<Musashi007> whre are you living presently
c0ncealed has joined #ruby
weemsledeux has joined #ruby
<platzhirsch> London
c0ncealed has quit [Client Quit]
<Musashi007> I feel like that’s a wonderful place to offend people
paulcsmith has joined #ruby
<platzhirsch> I always thought there is less culture in the Bay Area
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> there is much more culture in Bay Area than Anywhere Suburban, USA
<Musashi007> define.. culture?
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
icole has quit [Ping timeout: 250 seconds]
<pwnd_nsfw> You know.. more minorities that do things in public places
<platzhirsch> Art, different sub-cultures, different kinds of people, different areas, rich, poor, something in between, a political atmosphere, alternatives to.. everything, vibrant community, and change
bkulbida has joined #ruby
<Musashi007> yeah there’s all that.
<Musashi007> its a melting pot.. :P
tuxero has joined #ruby
<platzhirsch> I thought it's all overpriced and there's only the middle-class left with their Google Buses
<platzhirsch> clearly I have read too many cliches, another reason try to obtain a visa to live there
<nofxx> platzhirsch, it's a lil slow....waiting =D also... anchors take the same time. Maybe some cache?
<Musashi007> no there’s definitely a lot of rich and poor
<Musashi007> latin culture has a heavy influence as does many asian cultures
<platzhirsch> nofxx: wow, you checked it out? Yeah not sure, it's using typhoeus, should be pretty fast
<nofxx> platzhirsch, also if you allow me two UI cents: only `aquanaut` could give me a nice intro, some options
dopie has quit [Quit: This computer has gone to sleep]
Azure has joined #ruby
<nofxx> and on yr initializer: url = "http://#{url}" unless url =~ r${^\w+://}
<nofxx> %r{}
<nofxx> the world defaults to http =D
paulcsmith has quit [Quit: Be back later ...]
Kitsunitchi has joined #ruby
casadei has quit [Remote host closed the connection]
<platzhirsch> nofxx: where is it actually?
tejasmanohar has quit [Quit: tejasmanohar]
<platzhirsch> oh for usage you mean?
c0ncealed has joined #ruby
<nofxx> platzhirsch, don't know... yeah, so I can aquanaut foo.com
tuxero has quit [Remote host closed the connection]
<nofxx> platzhirsch, and a last one... message... I just run in my 500+ folder home... what did it created? hehe
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> ./sitemap ;)
evanjs has joined #ruby
tuxero has joined #ruby
<platzhirsch> oh no, really bad. It should do foo.com/sitemap
<platzhirsch> wow, I really sucked two years ago. I wouldn't have hired myself
davedev2_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
karapetyan has joined #ruby
<EllisTAA> platzhirsch: so effing mono culture it’s depressing
lolmaus_ has quit [Ping timeout: 240 seconds]
evanjs has quit [Ping timeout: 244 seconds]
<shevy> platzhirsch would you hire yourself nowadays?
tuxero has quit [Ping timeout: 240 seconds]
<platzhirsch> nofxx: thanks in any case, much appreciated
<platzhirsch> shevy: well, I learned a shit load, still feels like I know nothing
tuxero has joined #ruby
Kitsunitchi has left #ruby [#ruby]
yfeldblum has joined #ruby
<EllisTAA> platzhirsch: cmon platz ur prbly a boss coder
<platzhirsch> pssoibly
karapetyan has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> bay area tech is historically known for being one of the more diverse areas of industry -- in the 80s and 90s there was panic because of how many folks were coming over on work visas -- I think we have something like 600k H1Bs in the bay area at any given time?
Oka has joined #ruby
<eam> it's rad; we have amazing food in the south bay because of it :)
<platzhirsch> Because all the H1B visas are occupied by chefs?
<platzhirsch> no wonder I didn't get one
<eam> because it's been going on for decades and a huge number of them naturalize
diegoviola has quit [Quit: WeeChat 1.3]
<eam> food service springs up to serve demand
<eam> go even one state over and cuisine thins out substantially
drewvanstone has quit [Ping timeout: 240 seconds]
<platzhirsch> fair enoguh
<eam> (along with the culture variance)
yfeldblum has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<platzhirsch> great to here some statements from people who are currently living there
yfeldblum has joined #ruby
<eam> I have to laugh a bit when I see the "no diversity in tech" headlines because it wasn't that long ago when the headlines were in a panic about a completely opposite situation
<eam> (and the demographics haven't changed)
<platzhirsch> yeha peple tend to forget with click bait journalism
vdamewood has quit [Quit: Life beckons.]
<Bish> can prevent gsub from "double"-substitute things?
<eam> been doing this for a while; have many friends who've come over decades ago to work and now are citizens
<eam> Bish: if you want it just once: sub
<eam> gsub is "global" or repeated
<eam> the //g regex flag equiv from other languages
<platzhirsch> I thought I'd start applying again by the end of this year, but I am quite happy with my current company, still learning too much, hard to get out :)
<Bish> eam i actually thought about that.. didn't even know that existed
charliesome has joined #ruby
tmtwd has joined #ruby
<eam> platzhirsch: you said you're chasing an h1b? Where are you coming from?
<platzhirsch> eam: Berlin
bazbing80 has quit [Read error: Connection reset by peer]
daveomcd has joined #ruby
<eam> that's a pretty damn nice place to work :)
bronson has quit [Ping timeout: 252 seconds]
<Bish> is copying a string with .dup the right thing to do.. when not wanting to have the same referenced object?
<Musashi007> where are you applying platz
<platzhirsch> A lot of people from East London move there, because it's much more affordable
KensoDev has joined #ruby
<eam> Bish: sure
iateadonut has joined #ruby
<platzhirsch> Musashi007: nowhere, I don't have a favourite startupin the states anymore
roxtrongo has joined #ruby
jenrzzz has joined #ruby
<Bish> eam isn't there another operator to do it? so it looks nice? like instead of having to do str2 = str1.dup, maybe str2 |= str1
elshaka has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<eam> well, "" constructs a new string so you could str2 = "#{str1}"; or maybe str2 = str1 + ""
<eam> but .dup is the cleanest and by far the fastest I think
maletor has quit []
<Bish> hm okay, but know when i use .sub instead of .gsub only the firce occurance will be substituded, right?
daveomcd has quit [Ping timeout: 252 seconds]
<eam> the most important thing is to convey intent. Any other operator which happens to construct a new string -- perhaps it's not clear that the side effect is what you're after
<eam> #dup clearly says "I intend to copy this"
<eam> Bish: yes
<eam> (also, just try it!)
Kallis has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
EllisTAA has quit [Quit: EllisTAA]
jenrzzz has quit [Client Quit]
FrankD has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 252 seconds]
Kallis has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<Bish> i did, but im unhappy with the result http://pastebin.com/djSKnH5T
<ruboto> Bish, as I told you already, please use https://gist.github.com
<helpa-bot> Hi Bish. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa-bot> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<Bish> if im using gsub there, it will transform the link, over and over
<[k-> ruboto has a personality now :o
<Bish> yeah and it hates me.
jackjackdripper has quit [Quit: Leaving.]
<platzhirsch> eam: do many live by themselves or live in shared flats/houses?
<Bish> will i have to do it a more explicit way, or can i have it nice and soft, like it is there?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
pietr0 has quit [Quit: pietr0]
baweaver has quit [Ping timeout: 256 seconds]
crunk_bear has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Quit: leaving]
jenrzzz has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
podman has quit [Quit: Connection closed for inactivity]
renderful has joined #ruby
<Bish> im an idiot. i got it know. thanks for the help!
<Bish> s/know/"know"[1..-1]
<platzhirsch> that's some kickass vim skill
<Bish> rubyvim
icole has joined #ruby
<platzhirsch> I gave up on Ruby vim, too much struggle with different Ruby versions
c0ncealed has quit [Quit: going dark...]
SCHAAP137 has quit [Quit: Leaving]
charliesome has joined #ruby
c0ncealed has joined #ruby
<[k-> use only legible constructs
<[k-> that way, they don't get removed
fullofcaffeine has quit [Remote host closed the connection]
<[k-> don't rely on misbehaviour
fullofcaffeine has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
paulcsmith has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
fullofcaffeine has joined #ruby
c0ncealed has quit [Client Quit]
icole has quit [Ping timeout: 240 seconds]
paulcsmith has quit [Client Quit]
tkuchiki has joined #ruby
mary5030 has joined #ruby
skweek has joined #ruby
Kallis has joined #ruby
tuxero has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
TTilus has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
TTilus has joined #ruby
fullofcaffeine has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Client Quit]
tkuchiki has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
icarus has joined #ruby
mary5030 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Kallis has joined #ruby
amclain_ has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 246 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
<eam> platzhirsch: yeah that's fairly common
<eam> (both)
<platzhirsch> err :D
<agent_white> Evenin' folks
devbug has joined #ruby
nahtnam has joined #ruby
FrankD has joined #ruby
FrankD has quit [Changing host]
FrankD has joined #ruby
c0ncealed has joined #ruby
evanjs has joined #ruby
D9 has joined #ruby
devoldmx has joined #ruby
D9 has quit [Read error: Connection reset by peer]
<platzhirsch> alrighty, good night folks
platzhirsch has left #ruby [#ruby]
rushed has quit [Quit: rushed]
evanjs has quit [Ping timeout: 244 seconds]
nfk has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
tkuchiki has joined #ruby
Rollabunna has joined #ruby
scripore has joined #ruby
kmehta has joined #ruby
bronson has joined #ruby
weemsledeux has joined #ruby
wldcordeiro has joined #ruby
Musashi007 has quit [Quit: Musashi007]
kmehta has quit [Quit: Leaving]
bronson has quit [Ping timeout: 246 seconds]
elshaka has quit [Read error: No route to host]
maletor has joined #ruby
bkulbida has quit [Ping timeout: 255 seconds]
maletor has quit [Client Quit]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 250 seconds]
definiv has joined #ruby
tawaffan has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
Musashi007 has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
definiv has quit [Client Quit]
j4cknewt has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Rickmasta has joined #ruby
tkuchiki has joined #ruby
brnpcn has joined #ruby
RegulationD has joined #ruby
wldcordeiro has quit [Quit: Leaving because reasons...]
jgpawletko has quit [Quit: jgpawletko]
charliesome has joined #ruby
wldcordeiro has joined #ruby
nfk|laptop has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
j4cknewt has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
achamian has joined #ruby
iamninja has joined #ruby
devbug_ has joined #ruby
diegoviola has joined #ruby
Musashi007 has quit [Quit: Musashi007]
UtkarshRay has joined #ruby
brnpcn has quit []
bruno- has quit [Ping timeout: 250 seconds]
iamninja has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 260 seconds]
drewvanstone has joined #ruby
barhum2013 has quit [Quit: barhum2013]
tejasmanohar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
nanoz has joined #ruby
mblagden_ has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
arescorpio has joined #ruby
fullofcaffeine has joined #ruby
swgillespie has joined #ruby
nfk|laptop has quit [Quit: yawn]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grotewol_ has joined #ruby
favadi has joined #ruby
grotewo__ has joined #ruby
grotewold has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby
grotewol_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
devoldmx has quit [Remote host closed the connection]
dorei has quit []
Kallis has quit [Ping timeout: 272 seconds]
otacon- has joined #ruby
frege has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
achamian has quit [Remote host closed the connection]
tkuchiki has joined #ruby
charliesome has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
gener1c has joined #ruby
thejamespinto has joined #ruby
bazbing80 has joined #ruby
gener1c_ has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
braincrash has quit [Quit: bye bye]
evanjs has quit [Remote host closed the connection]
icole has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
devbug has joined #ruby
CloCkWeRX has joined #ruby
aaeron has quit [Quit: Leaving.]
CloCkWeRX has left #ruby [#ruby]
grotewold has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
Rickmasta has joined #ruby
devbug_ has quit [Ping timeout: 244 seconds]
grotewo__ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
icole has quit [Ping timeout: 272 seconds]
rrichardsr3 has joined #ruby
robh71 has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
darkf has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
<bazbing80> I've created a command for my Gem in my 'bin' directory...but it can't require files from my project. I get a LoadError, saying it can't find the file. Really weird because if I puts a Dir.pwd, Dir.pwd says we're exactly where the file is...so why is require not requiring specified files? If I do require_relative and reverse out of the bin directory and into my lib it works, but I want to know why require isn't working...
mary5030 has quit [Remote host closed the connection]
robh71 has joined #ruby
TheWhip has joined #ruby
mary5030 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
psy has joined #ruby
bnizzle has left #ruby [#ruby]
psy has quit [Max SendQ exceeded]
psy has joined #ruby
Gnomethrower has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
sdothum has joined #ruby
robh71 has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 240 seconds]
devoldmx_ has quit [Remote host closed the connection]
parduse has joined #ruby
gix has joined #ruby
soosfarm has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: earlyBedTime]
karapetyan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
noethics has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 240 seconds]
aaeron has joined #ruby
tkuchiki has joined #ruby
devoldmx has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
diego2 has joined #ruby
Timba-as has quit [Quit: Be back later ...]
devoldmx has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
Oka has quit [Quit: o/]
quazimodo has quit [Ping timeout: 240 seconds]
diego2 has quit [Quit: WeeChat 1.3]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has joined #ruby
sdothum has joined #ruby
subshad has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
soosfarm has joined #ruby
chipotle has quit [Quit: cheerio]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
Igorshp has quit [Ping timeout: 250 seconds]
otacon- has quit [Ping timeout: 240 seconds]
grotewol_ has joined #ruby
Igorshp has joined #ruby
icole has joined #ruby
grotewold has quit [Ping timeout: 246 seconds]
grotewo__ has joined #ruby
grotewold has joined #ruby
grotewol_ has quit [Ping timeout: 244 seconds]
sam_weerasinghe has joined #ruby
icole has quit [Ping timeout: 255 seconds]
grotewol_ has joined #ruby
RegulationD has joined #ruby
grotewo__ has quit [Ping timeout: 265 seconds]
abra0 has quit [Max SendQ exceeded]
parduse has quit [Ping timeout: 244 seconds]
abra0 has joined #ruby
chipotle has joined #ruby
evanjs has joined #ruby
TheWhip has quit []
grotewold has quit [Ping timeout: 256 seconds]
roxtrongo has quit [Remote host closed the connection]
<jordanm> sam_weerasinghe: I think it's probably windows mangling unicode in environment variables
braincra- has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
grotewold has joined #ruby
aces1up has joined #ruby
<aces1up> hello i have a long string with multiple newlines i am writing to a socket, what should i use to make sure I send the whole string? puts, and gets on the server cut the string at the first newline
pen has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
<aces1up> what io method should i use both to write the string and read the string on the server side?
braincrash has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
grotewol_ has quit [Ping timeout: 240 seconds]
grotewol_ has joined #ruby
grotewo__ has joined #ruby
grotewold has quit [Ping timeout: 246 seconds]
iamninja has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
grotewol_ has quit [Ping timeout: 244 seconds]
grotewo__ has quit [Client Quit]
last_staff has joined #ruby
Coldblackice has joined #ruby
dopie has quit [Read error: Connection reset by peer]
dopie has joined #ruby
Cork has quit [Ping timeout: 248 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
evanjs has quit [Remote host closed the connection]
<eam> aces1up: syswrite
LatoSans has joined #ruby
quazimodo has joined #ruby
casadei has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
amystephen has quit [Quit: amystephen]
tkuchiki has joined #ruby
<aces1up> eam how can i do sysread on server end if I do not know how many bytes were sent?
casadei has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
fullofcaffeine has joined #ruby
Guest36_ has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
j4cknewt_ has joined #ruby
poguez_ has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
tmtwd has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tejasmanohar_ has joined #ruby
<[k-> bazbing80: require only checks the load path
otacon- has joined #ruby
<[k-> as of some ruby version, the current directory is no longer part of the load path
j4cknewt has quit [Ping timeout: 246 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
tejasmanohar_ is now known as tejasmanohar
jenrzzz has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
blur3d has joined #ruby
DoYouKnow has quit [Disconnected by services]
bronson has quit [Ping timeout: 255 seconds]
ruby-lang514 has joined #ruby
aaeron has quit [Quit: Leaving.]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
aaeron has joined #ruby
blizzy has quit [Ping timeout: 260 seconds]
otacon- has quit [Ping timeout: 255 seconds]
<Guest36_> Hello
<Guest36_> I'm new here, is anyone in?
<darkf> nope, not a soul
<Guest36_> haha
<nofxx> Guest36_, there was a guy here, but you missed him by just some minutes
jxv has quit [Read error: Connection reset by peer]
<Guest36_> someone in my cohort for ruby programming referred me here.
<Guest36_> seems like its active at like midnight.
NeverDie has quit [Quit: http://radiux.io/]
<Guest36_> I'm listening to the rules right now.
roxtrongo has joined #ruby
NeverDie has joined #ruby
yardenbar has joined #ruby
<Guest36_> So, I'm looking into swapping from basically front-end to full stack. I have questions directly related to code but, I'll save those for another day. What I'm curious about now is where is a great place to build up on just general programming logic?
UtkarshRay has quit [Read error: Connection reset by peer]
<Guest36_> I'm just now ending week six, I've learned a ton. But, we are lacking assistance in the school, which might've been why I was accepted because they want to turn me into a T.A. of sorts.
<Guest36_> I learn the fastest while being taught by a mentor in person, but that is a resource thats lacking.
roxtrongo has quit [Ping timeout: 268 seconds]
<Guest36_> I'm not here to leech, but I don't have too much to offer towards ruby. I know more about javascript, html, css and jquery.
<Guest36_> Really getting to know my peers and how professional ruby developers conduct business is something I deem extremely valuable right now.
<Guest36_> Today I successfully wrote a hash straight from repetition, which felt great. But that is no where near enough!
<Guest36_> I've just been asserting my patience, and meditating to stay calm. But with 5 weeks left before I start a job search, I seriously need more insights A.S.A.P.
UtkarshRay has joined #ruby
<Guest36_> even insights on starting freelancing and getting people to let me build them projects for free so I can get reviews would be awesome. I've attempted this before, but clearly my presentation sucked!
<nofxx> Guest36_, find something you find cool, search for a gem if it exists fork, if not create a new one
<nofxx> there's no learning as working on it learning
ramfjord has quit [Ping timeout: 272 seconds]
<Guest36_> a mentor suggested a write a gem, but I feel like I have no where to begin. But I guess I can just make something pointless for practice even as a beginner right?
arescorpio has quit [Remote host closed the connection]
<nofxx> Guest36_, yeah.. but you find you like and is going to use, enthusiasm might join necessity.
devoldmx has quit [Remote host closed the connection]
<nofxx> Guest36_, but first, get a nickname for irc
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Guest36_> done
<Guest36_> oops
<Guest36_> :L
<Guest36_> uhh
<Guest36_> brb
Guest36_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
Guest36_ has joined #ruby
KensoDev has quit []
<Guest36_> hmm must be taken
Guest36_ is now known as Ambidexter
<Ambidexter> ok, i'm guest36 now known as Ambidexter
roxtrongo has joined #ruby
ruby-lang514 has quit [Ping timeout: 246 seconds]
lagrangi-wan is now known as pyon
nahtnam has quit [Quit: Connection closed for inactivity]
weemsledeux has joined #ruby
<Ambidexter> haha, writing my own gem seems complicated.
dnewkerk has joined #ruby
<Ambidexter> know of any good walkthroughs to get me started?
<Ambidexter> like it seems easy but complicated.
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
yottanami has joined #ruby
aerozeppelin has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
roxtrong_ has joined #ruby
yottanami has quit [Client Quit]
aaeron has quit [Quit: Leaving.]
<Ebok> Ambidexter, It depends on how much knowledge you have about Ruby.
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
roxtrongo has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
<Ebok> If you would say you've virutally none, then I'd suggest walking through some of the basic tutorials. codeacedemy, rubymonk, read through this: https://pine.fm/LearnToProgram/chap_00.html.
shinnya has quit [Ping timeout: 256 seconds]
abra0 has quit [Max SendQ exceeded]
abra0 has joined #ruby
<Ebok> If you have enough experience that what you're looking for is more complicated, then I'd start looking through rubydoc line by line and playing with the methods you dont immediately understand. Or looking through gems online to see how they were created. The tutorials and rubydoc together should provide most of that you need to "read" the basic gems. Probably.
dnewkerk has quit [Quit: dnewkerk]
tmtwd has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
karapetyan has joined #ruby
tkuchiki has joined #ruby
Feyn has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
icole has joined #ruby
icarus_ has joined #ruby
<Ambidexter> Alright, thanks man.
tkuchiki has quit [Remote host closed the connection]
<Ebok> Sure
<Ambidexter> I am not a absolute beginner but I feel kind of like it.
<Ebok> I am. lol. I've been doing this language for about... 4 weeks?
<Ambidexter> cool
<Ebok> Note: all the references xD
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
<Ebok> Heh. I could probably dig up more. I learned alot via google and github
<Ebok> smartly worded questions are normally already answered somewhere, for the ones you need specific feedback for, you've got here.
<Ambidexter> I'm a dev bootcamp, I had little programming experience coming here for a full stack class.
<Ebok> Cool
<Ambidexter> at a*
<Ebok> I'm attempting to get into a bootcamp xD
<Ambidexter> do you have any programming background prior to ruby?
icole has quit [Ping timeout: 246 seconds]
<Ambidexter> I have a massive archive of resources I'm just building up on
<Ambidexter> not just ruby though
<Ebok> "for fun" programming knowledge, yeah. I've some very basic java, and I'm practiced at reading code in most languages
<Ambidexter> the more the merrier though
bronson has joined #ruby
<Ambidexter> I see
<Ebok> I've written basic html, css stuff, but I dont really count that
<Ambidexter> I was basically brainwashed by snippets so I'm having to rewrite how I try to solve problems.
<Ambidexter> so much anxiety.
<Ambidexter> I build a habit and its essentially a crutch.
<Ambidexter> only have broken it barely, and its amazing painful.
<Ebok> I would think the more languages you know, the less you can just depend on hanbits
<Ebok> habits*
toretore has quit [Quit: This computer has gone to sleep]
<Ambidexter> understandable, however my habit is that I just throw stuff together until it works, I did this for 6 years and never actually wrote a single line of code until like 6 weeks ago lol.
<Ebok> I dunno. I find all of the code rather fascinating, and for these past weeks I've been kicking myself for not getting into this like... a decade ago.
<Ebok> Oh
<Ebok> >_>;
<Ebok> That' lol.
<Ebok> That's pretty painful yeah
<Ambidexter> ffs right?
<Ebok> Mmhmm.
KnownSyntax has quit [Read error: Connection reset by peer]
<Ebok> All I really know, is that since I've picked this up, I'm positive that I will be doing this for a living. eventually.
<Ambidexter> I get straight up anxiety attacks from it lol.
<Ambidexter> same here!
<Ebok> Nah, code makes me calm down... unless its a test
<Ambidexter> I won't be broken down haha.
grotewold has joined #ruby
<Ebok> tests I didnt mean to turn on, mostly.
<Ebok> >_>;
<Ambidexter> me too, unless in writing it by hand, which is what I'm working my hardest to reverse.
bronson has quit [Ping timeout: 265 seconds]
<Ebok> I've have now twice, started an admissions test on accident.
<Ambidexter> on here?
<Ebok> Nah, for a bootcamp
<Ambidexter> oh haha
<Ambidexter> which ones?
aerozeppelin has quit [Quit: Leaving]
<Ambidexter> I spent a year finding the best fit for me.
pyon has quit [Quit: F...ix you, Emacs!]
<Ebok> Same one, its a multistep process. I figure best not to name camps or tests specifically.
<Ambidexter> before the archives where polished out more.
<Ambidexter> gotcha
Wolland has joined #ruby
<Ebok> ^_^
<Ambidexter> I am kind of working on starting my own programmer society
<Ambidexter> don't really know where to begin lol
pyon has joined #ruby
<Ebok> Where do you want to end?
KnownSyntax has joined #ruby
grotewol_ has joined #ruby
<Ambidexter> with a reliable, friendly and loyal but small network.
<Ambidexter> loyal to all, and I don't want there to be a leader.
<Ambidexter> accept for organizing meetings.
<Ebok> Sounds like you want to work for a company
<Ebok> >_>
avril14th has joined #ruby
<Ambidexter> I do, but I also want this to be underground but also in person.
<Ebok> Hm. Well, get a club house.
<Ambidexter> haha not a bad idea.
<Ebok> xD
<Ambidexter> I'd like for each member to have good connects via online social networks too.
abra1 has joined #ruby
<Ebok> really though, geta club house, put good tech in it, get a damned good lock or some great insurance, and bring in the recruits. Get projects, hivemind the issues of any person, and forward.
<Ambidexter> so we each can bring a new side of this abundant programming world into one form of brainstorming.
Wolland has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
grotewold has quit [Ping timeout: 250 seconds]
icarus_ has quit [Ping timeout: 246 seconds]
<Ambidexter> definately
grotewold has joined #ruby
<Ambidexter> that's right up my lane. haha
<Ebok> Otherwise, to do this sort of thing online. Loyalty is illusory, and small is relative.
<Ebok> You might have to alter the goals slightly xD
abra0 has left #ruby ["
<Ambidexter> I figured if each of us is associated with a entirely different network, then when we do get stuck we can ask questions to a mass amount of hubs simultaneously.
<Ebok> Whenever I want to start a project, I obey the following quote: "To do it, do it"
<Ambidexter> yeah, i'm flexible in it haha.
icarus_ has joined #ruby
<Ambidexter> Indeed.
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
grotewol_ has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
grotewol_ has joined #ruby
tkuchiki has joined #ruby
<Ambidexter> I see it being a small in person gathering, maybe 20 members 5 at a time all with entirely different outreaches to communities, just so we can also find each others communities but to kind of focus efforts in different regions.
<Ambidexter> Just a way of spreading seeds out as far as possible and setting a standard I guess.
<Ebok> start at the beginning.
<Ebok> Get someone else you know involved
<Ambidexter> that'll all be down the line probably. Although joining an underground ruby community would be helpful probably.
<Ebok> Build up one by one, and let everyone make it into something. I expect every person that stays will change its direction
<Ambidexter> I'm just now starting to build my connections here, Once I get to know people better I'll present the idea to some people I trust.
grotewo__ has joined #ruby
<Ambidexter> for sure Ebok, communities are developed around the users typically.
grotewold has quit [Ping timeout: 246 seconds]
ehth77 has joined #ruby
<Ebok> Anyhow, goodluck!
<Ambidexter> thanks a bunch man, glad to brainstorm and unwined haha
RegulationD has quit [Ping timeout: 260 seconds]
grotewol_ has quit [Ping timeout: 264 seconds]
grotewold has joined #ruby
<Ambidexter> I put you in my irc freenodes list, hopfully its like adding you so we can talk again later.
bruno- has joined #ruby
iamninja has joined #ruby
<Ebok> I'll be here under this nick often enough
davedev2_ has joined #ruby
arup_r has joined #ruby
<Ambidexter> Alright cool, I'll be here as this alias often too. Probably hop around, Although I prob don't need too
grotewol_ has joined #ruby
grotewo__ has quit [Ping timeout: 264 seconds]
gustav_ has joined #ruby
casadei has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
grotewold has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bruno- has quit [Ping timeout: 260 seconds]
iamninja has quit [Ping timeout: 272 seconds]
icarus_ has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
casadei has quit [Ping timeout: 240 seconds]
ehth77 has quit [Ping timeout: 268 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
michael_mbp has joined #ruby
ehth77 has joined #ruby
ehth77 has quit [Client Quit]
devoldmx has joined #ruby
ruby-lang338 has joined #ruby
Feyn has quit [Ping timeout: 255 seconds]
j4cknewt_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 265 seconds]
icarus_ has quit [Ping timeout: 264 seconds]
ehth77 has joined #ruby
xgoo has joined #ruby
icarus_ has joined #ruby
xgoo is now known as iyan
iyan has quit [Client Quit]
iyan has joined #ruby
grotewold has joined #ruby
dionysus69 has joined #ruby
skade has joined #ruby
rippa has joined #ruby
grotewo__ has joined #ruby
grotewol_ has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
pawanspace has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
jun_0237497 has joined #ruby
chipotle has joined #ruby
grotewol_ has joined #ruby
grotewold has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
grotewo__ has quit [Ping timeout: 250 seconds]
jun_0237497 has quit []
drptbl has joined #ruby
Rodya_ has joined #ruby
grotewold has joined #ruby
fedexo has joined #ruby
grotewo__ has joined #ruby
grotewol_ has quit [Ping timeout: 240 seconds]
pawanspace has quit [Ping timeout: 265 seconds]
grotewold has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
bronson has joined #ruby
code1o6 has quit [Quit: Leaving]
Fire1o6 has quit [Quit: Leaving]
DexterLB has joined #ruby
karapetyan has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Anti-Pizza has joined #ruby
TheHodge has joined #ruby
blur3d has quit [Quit: blur3d]
karapetyan has quit [Ping timeout: 265 seconds]
abuzze has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
drptbl has joined #ruby
tkuchiki has quit [Remote host closed the connection]
quazimodo has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
abuzze has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Ambidexter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: tejasmanohar]
moeabdol has joined #ruby
avril14th has quit [Ping timeout: 240 seconds]
ruby-lang338 has quit [Ping timeout: 246 seconds]
NeverDie has quit [Quit: http://radiux.io/]
moeabdol has quit [Ping timeout: 252 seconds]
Timba-as has joined #ruby
grotewold has joined #ruby
karapetyan has joined #ruby
beast has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
avril14th has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
Motoservo has quit [Quit: Motoservo]
djbkd has joined #ruby
grotewol_ has joined #ruby
grotewo__ has quit [Ping timeout: 244 seconds]
Salehi has joined #ruby
avril14th has quit [Remote host closed the connection]
decoponio has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
grotewo__ has joined #ruby
grotewold has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
Feyn has joined #ruby
charliesome has joined #ruby
psy has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
grotewol_ has quit [Ping timeout: 246 seconds]
psy has joined #ruby
Rodya_ has quit [Quit: Leaving...]
girl25usapic has left #ruby [#ruby]
grotewold has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grotewol_ has joined #ruby
grotewo__ has quit [Ping timeout: 272 seconds]
last_staff has quit [Remote host closed the connection]
ramfjord has joined #ruby
grotewold has quit [Ping timeout: 264 seconds]
gurix has joined #ruby
gurix has quit [Client Quit]
jaygen_ has quit [Remote host closed the connection]
grotewol_ has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
jaygen has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
araujo_ has quit [Quit: Leaving]
devoldmx has joined #ruby
ElvanorMoscow has joined #ruby
yardenbar has joined #ruby
towski_ has quit [Remote host closed the connection]
araujo has joined #ruby
jaygen has quit [Ping timeout: 272 seconds]
gustav_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
sam_weerasinghe has quit [Quit: Leaving.]
blackgoat has joined #ruby
polly_wog has joined #ruby
weemsledeux has joined #ruby
ryanlntn has joined #ruby
ryanlntn has quit [Client Quit]
decoponyo has joined #ruby
ryanlntn has joined #ruby
blackgoat has quit [Client Quit]
iamninja has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
dcarmich has joined #ruby
djbkd has quit [Remote host closed the connection]
drptbl has joined #ruby
rdark has joined #ruby
polly_wog has quit [Remote host closed the connection]
ryanlntn has left #ruby [#ruby]
decoponio has quit [Ping timeout: 255 seconds]
ryanlntn has joined #ruby
ryanlntn has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
ryanlntn has joined #ruby
havenwood has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
Zackio has quit [Remote host closed the connection]
bronson has joined #ruby
Wolland has joined #ruby
blackmesa has joined #ruby
ryanlntn has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
blizzy has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
quazimodo has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blizzy has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
casadei has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
blizzy has joined #ruby
RegulationD has joined #ruby
casadei has quit [Ping timeout: 252 seconds]
Wolland has quit []
jas02 has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
<shevy> good morning #vietnam
<shevy> I mean, #ruby
BaroMeter has joined #ruby
ElvanorMoscow has quit [Ping timeout: 268 seconds]
jaygen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
exadeci has joined #ruby
codenapper has joined #ruby
<riceandbeans> shevy: tis sad to be reminded of robin williams
j4cknewt has joined #ruby
karapetyan has quit [Remote host closed the connection]
timonv has joined #ruby
doddok has joined #ruby
<doddok> how exctract int '10066513' from such string '/topic.php?t=10066513&p=83093740' with regex
platzhirsch has quit [Ping timeout: 240 seconds]
<nolic> What means ?A . I can't find it in the documentation
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
<riceandbeans> ?A ?
<ruboto> ?, I don't know anything about A
<riceandbeans> you mean a function ending in ?
<nolic> no starting by ?
<nolic> >>?A
<ruboto> nolic # => "A" (https://eval.in/440017)
<riceandbeans> no idea
davedev2_ has quit [Remote host closed the connection]
drew2 has joined #ruby
drew2 has quit [Client Quit]
drew2 has joined #ruby
skade has joined #ruby
drew2 has left #ruby [#ruby]
moeSeth has joined #ruby
allomov has joined #ruby
amystephen has joined #ruby
drew2 has joined #ruby
moeabdol has joined #ruby
jaygen has quit [Ping timeout: 260 seconds]
tockitj has quit [Ping timeout: 240 seconds]
<shevy> nolic you could think of it as an alternative notation for single characters, I think in the past it returned the numeric "representation" ... or I may confuse this with .chr method
<shevy> oh yes
quazimodo has quit [Ping timeout: 240 seconds]
<shevy> nolic, http://stackoverflow.com/questions/1345843/what-does-the-question-mark-operator-mean-in-ruby look at the answers there, someone mentions that
<nolic> weird syntax
<shevy> ?F # => will return 70
<ruboto> #, I don't know anything about F
<shevy> don't be silly ruboto
<shevy> >> 'F'.ord
<ruboto> shevy # => 70 (https://eval.in/440018)
<shevy> tada!
moeabdol has quit [Ping timeout: 260 seconds]
ehth77 has quit [Quit: AtomicIRC: The nuclear option.]
achamian has joined #ruby
<nolic> Is ther any use for this syntax ?
achamian has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<nolic> I mean post ruby 1.9
UtkarshRay has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy> well you could save one character
<shevy> "a" versus ?a
<shevy> I don't know if there is any real use case for it these days
<nolic> ok thank you anyway
<shevy> KOSAKI Motohiro: "test/ruby/test_dir.rb (TestDir#test_fileno): s/?x/"x"/. Don't use tricky code, please."
<shevy> he did not like the ?x there
<shevy> :D
devbug has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
tsujp has joined #ruby
spider-mario has joined #ruby
<nolic> It could be great for obfuscating the code
djbkd has quit [Ping timeout: 246 seconds]
Guest36 has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
bronson has joined #ruby
<shevy> haha
quazimodo has joined #ruby
jenrzzz has joined #ruby
Flipez_ has joined #ruby
Flipez_ has quit [Remote host closed the connection]
Flipez has joined #ruby
Flipez has quit [Client Quit]
maasha has joined #ruby
Flipez has joined #ruby
<maasha> Hey, I am trying to grasp google hash - if you look at the last green box here: http://www.platanus.cz/blog/working-with-huge-hashes-in-ruby - it is pure coincidence that no collisions occur?
houhoulis has quit [Remote host closed the connection]
k3asd` has joined #ruby
[k- has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
crank1988 has joined #ruby
Flipez has quit [Quit: ZNC 1.6.1 - http://znc.in]
Flipez has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
quazimodo has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
pyon has quit [Quit: fix config]
M-mistake has joined #ruby
telamohn has joined #ruby
The_Phoenix1 has joined #ruby
pyon has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Soda has joined #ruby
quazimodo has joined #ruby
stamina has joined #ruby
The_Phoenix has quit [Ping timeout: 256 seconds]
<[k-> stay calm shevy
Voker57 has joined #ruby
<shevy> go to bed [k-
rdark has quit [Ping timeout: 240 seconds]
<[k-> meow
last_staff has quit [Quit: last_staff]
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
charliesome has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
EXID123_ has quit [Ping timeout: 246 seconds]
EXID123 has quit [Ping timeout: 246 seconds]
maasha has quit [Quit: Page closed]
tomphp has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
casadei has joined #ruby
tawaffan has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
casadei has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
Guest36 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Quit: Leaving]
BaroMeter has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 244 seconds]
EXID123 has joined #ruby
EXID123_ has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
poguez_ has quit [Quit: Connection closed for inactivity]
chipotle has quit [Quit: cheerio]
AlexRussia has joined #ruby
bronson has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
frmendes has joined #ruby
roxtrongo has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
Pisuke has quit [Quit: WeeChat 1.4-dev]
platzhirsch has joined #ruby
subshad has quit [Ping timeout: 250 seconds]
aces1up has quit []
FernandoBasso has joined #ruby
ruurd has joined #ruby
lolmaus_ has joined #ruby
RegulationD has joined #ruby
chipotle has joined #ruby
solars has joined #ruby
r0bby_ has quit [Ping timeout: 260 seconds]
eGGsha has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
howdoi has joined #ruby
naftilos76 has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
telamohn has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
ankr has joined #ruby
ankr has left #ruby [#ruby]
DexterLB has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
DexterLB has joined #ruby
jaygen has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
radgeRayden has quit [Ping timeout: 246 seconds]
Stalkr_ has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
jaygen has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
Balzrael has joined #ruby
apt-get has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
Musashi007 has quit [Quit: Musashi007]
djbkd has joined #ruby
stamina has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
keen________ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
keen________ has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
atmosx_laptop has joined #ruby
moeabdol has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
spider-mario has quit [Ping timeout: 268 seconds]
jalnt has joined #ruby
Rickmasta has joined #ruby
rdark has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
ht__ has joined #ruby
solars has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
ledestin has joined #ruby
ta_ has joined #ruby
tkuchiki has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
Feyn has quit [Quit: Leaving]
timonv has quit [Ping timeout: 252 seconds]
FrankD has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get has quit [Ping timeout: 268 seconds]
crank1988 has quit [Read error: Connection reset by peer]
crank1988 has joined #ruby
ixti has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.3]
bruno- has joined #ruby
charliesome has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
casadei has joined #ruby
Salehi has quit [Quit: Leaving]
devoldmx has joined #ruby
manjaro-fluxbox has joined #ruby
manjaro-fluxbox has quit [Client Quit]
arup_r has quit [Ping timeout: 264 seconds]
casadei has quit [Ping timeout: 246 seconds]
borkdude_ has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 252 seconds]
otherj has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
platzhirsch has joined #ruby
Coldblackice has quit [Ping timeout: 264 seconds]
otherj has quit [Client Quit]
Starthunder has joined #ruby
ramfjord has joined #ruby
CloCkWeRX has joined #ruby
minimalism has quit [Quit: leaving]
<Starthunder> I'm trying to install a gem, and there's a configure script complaining about the ncurses (or lack thereof). Can I make it use the Homebrew-installed ncurses, without passing that as the /only/ include/ and lib/ directories?
jaygen has joined #ruby
Jackneill has joined #ruby
bigmac_ has joined #ruby
BrazenBraden has joined #ruby
jaygen has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
UtkarshRay has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
n008f4g_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
moeabdol has joined #ruby
sepp2k has joined #ruby
Timba-as has quit [Quit: Be back later ...]
moeabdol has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
moeabdol has joined #ruby
tomphp has joined #ruby
Jammyhammy|Work has joined #ruby
Kendos-Kenlen has joined #ruby
bronson has joined #ruby
platzhirsch has joined #ruby
n008f4g_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
yqt has joined #ruby
RegulationD has joined #ruby
scripore has joined #ruby
Azure has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
Azure has quit [Client Quit]
spider-mario has joined #ruby
DoubleMalt has joined #ruby
jgpawletko has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
blizzy has quit [Ping timeout: 255 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
pontiki has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
maikowblue has joined #ruby
casadei has joined #ruby
rp__ has joined #ruby
<rp__> For someone getting into web dev for the first time, is Rails or Sinatra the better choice for getting started?
<apeiros> probably sinatra
<rp__> apeiros: Why is that?
<apeiros> rails is huge. sinatra less so.
<rp__> apeiros: Do you know of any good resources out there for learning sinatra?
casadei has quit [Ping timeout: 250 seconds]
gustav_ has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
<apeiros> rp__: no. but probably the sinatra website does.
<rp__> apeiros: OK. Thanks.
freezeve_ has joined #ruby
sanjayu has joined #ruby
rp__ has quit [Quit: Page closed]
bitri has joined #ruby
Anti-Pizza has quit [Quit: Quit]
JammyHammy has joined #ruby
arup_r has joined #ruby
<shevy> rails rails rails
<shevy> we need a new killer app!
apt-get has joined #ruby
hectortrope has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
lolmaus_ has joined #ruby
atomical has joined #ruby
gustav_ has quit [Remote host closed the connection]
blackoperat has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
xgoo has joined #ruby
j4cknewt has joined #ruby
xgoo has quit [Client Quit]
xgoo has joined #ruby
leitz has joined #ruby
iyan has quit [Ping timeout: 268 seconds]
_blizzy_ has joined #ruby
xgoo has quit [Client Quit]
Ilyes512 has joined #ruby
iyan has joined #ruby
gustav_ has joined #ruby
<leitz> OOP mentoring needed. I have a class Character" that does a lot of the work for creating game characters. It is prmarily meant to be sub-classed though, as the Career a character chooses affects many character attributes.
evanjs has joined #ruby
Zackio has joined #ruby
<leitz> So, Character.initialize does stuff. Now I have a need to take the framework Character provides and fill in the attributes from a data store. Is it better to refactor the class or just build a parallel framework?
parduse has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
decoponyo has quit [Read error: Connection reset by peer]
bitri has quit [Quit: Textual IRC Client: www.textualapp.com]
sanjayu has quit [Ping timeout: 268 seconds]
decoponio has joined #ruby
Kendos-Kenlen has joined #ruby
pawnbox has joined #ruby
<Balzrael> leitz: stop using so much inheritance and focus more on composition to delegate stuff around
victortyau has joined #ruby
<Balzrael> you can create a career class with all its subclasses that gets injected into the Character class and gives it all the special powers it needs
evanjs has quit [Ping timeout: 244 seconds]
<Balzrael> you just need to figure out some clean intefaces for all the objects to make them all play nice
bitri has joined #ruby
bitri has quit [Client Quit]
<leitz> Balzrael, you're a little past the edge or my Ruby skills, can you clarify?
<leitz> or/of
<Balzrael> just create a class named Career that hooks into the data store and holds a character's attributes
blackoperat has quit []
<shevy> leitz that reminds me of e. g. class Warrior < Character
<Balzrael> then the Character class just needs an instance of the Career class to be able to do all sorts of stuff
tsujp has quit [Quit: tsujp is snoozing]
aaeron has joined #ruby
<Balzrael> if you have a complex class inheritance will create lots of headaches really fast
<Balzrael> just use composition,
<leitz> shevy, I'm on the same project, trying to push my skills a bit. So "class Marine < Character"
<Balzrael> and the things composing the complex class can use inheritance if you want
<Balzrael> it depends on the complexity
<leitz> The issue is that Character does stuff that is common to the sub-classes.
lkba has quit [Ping timeout: 240 seconds]
<shevy> yeah, so the common task is stored in Character, the specialized variant in the specific subclass
bronson has joined #ruby
nfk has joined #ruby
cornerma1 has joined #ruby
<leitz> shevy, yup. But now I need to use Character as a framework; attributes are assigned, vs being calculated.
Balzrael has quit [Quit: Leaving]
<leitz> The easy way is to use a struct to store data, However, over time there's nothing keeping the Class and Struct aligned.
<shevy> I don't know why class Character needs to do this, can't you align the attributes based on the subclass? "if subclass is Marine, use these attributes, else use that"
Pathfinder_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
<shevy> I tend to use a hash and use methods to modify it
<leitz> Character does stuff like "Roll your strength, intelligence, etc" Marine adds career specific skills and modifications.
leafybasil has joined #ruby
<leitz> Balzreal's comment about complexity makes sense; I have one level of inhertance.
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
davedev24 has joined #ruby
<leitz> It is possible to give initialize the abilty to optionally accept a hash for data and then to fill in the blanks?
bronson has quit [Ping timeout: 252 seconds]
<shevy> simply check what you pass
<leitz> For example, if the hash didn't have X, do method_x.
<shevy> how can you ask such newbie questions :)
<shevy> method_x unless hash.has_key? X
<leitz> In initialize?
<shevy> hehe
<leitz> I speclize in newbie stuff. Trying to help the other newbies know they are not alone. :)
<shevy> Foo.new(argument) will pass to initialize(), after allocate()
<leitz> I can't type early in the morning either, it seems.
karapetyan has joined #ruby
<shevy> so all input that you give to your class, like Marine, will at first go through initialize(), which should be somewhat similar to C main()
Kallis has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
Kallis has quit [Max SendQ exceeded]
<shevy> you could also design the API through other means like
<shevy> Marine.fire at: :cat
<shevy> Marine.fire big_complicated_hash_here
<shevy> whatever you do, you will need a method that handles the case you described above, via hash
<leitz> Lemme go pour some coffee and ponder. This is what I'm looking at. https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/character.rb
Kallis has joined #ruby
<leitz> Hmm...you're right. That may complication stuff even more. I've been so wrapped up in generating characters that I've not thought much about using them.
<leitz> That may mean a different class.
<leitz> Or hash.
Kallis has quit [Read error: Connection reset by peer]
Kallis has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ali93 has joined #ruby
mary5030 has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
jatb has quit [Remote host closed the connection]
tagrudev has joined #ruby
tagrudev has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
tagrudev has quit [Client Quit]
stamina has joined #ruby
tomphp has joined #ruby
ali93 has quit [Ping timeout: 246 seconds]
parduse has quit []
Ilyes512 has joined #ruby
scripore has joined #ruby
<shevy> the simpler the better
<leitz> You can use "def initialize(var=999)" for a var, can you just give it a variable name and have the subsets do "if var.has_key?('upp')"
<leitz> Lemme see what I blow up.
Timba-as has joined #ruby
gustav_ has quit [Remote host closed the connection]
<shevy> no
<shevy> you must check whether it is a hash or whether it is not
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> a string won't have the method .has_key?
<shevy> nil won't have it easier
<shevy> *either
<shevy> I don't entirely understand you - you write a very complicated class, but you don't know how to check what kind of you object you have :)
casadei has joined #ruby
<leitz> I cah check the class, just get lost in the jungle of overgrown logic.
<shevy> use .respond_to? to find out to which method your object can respond to; use .is_a? to find out what the class is; and .nil? whether you have a nil object
freezeve_ has quit []
<shevy> yeah. strive for simplicity!
devoldmx has joined #ruby
atomical has joined #ruby
<leitz> Yeah, that's the goal. The current class works as designed. Now I'm chanigng the design and seeing the cruft.
Jardayn has joined #ruby
gustav_ has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
<shevy> don't break things that work!
<leitz> Conflicing directions, pardner.
gustav__ has joined #ruby
<leitz> The simple question seems to be; how to pass an optional hash to Character.initialize, and deal with it inside the class.
rdark has quit [Quit: leaving]
<leitz> I think I can get the second part, if I can figure out the first bits.
tsujp has joined #ruby
bigmac_ has joined #ruby
casadei has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 255 seconds]
Kallis has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
grotewold has joined #ruby
gustav_ has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
michael_mbp has quit [Excess Flood]
ruurd has quit [Quit: ZZZzzz…]
<leitz> Good thing git has branches...
mary5030 has quit [Remote host closed the connection]
<adaedra> leitz: So you want to be able to do things like `Character.new type: :foo` ?
mary5030 has joined #ruby
Meow-J has joined #ruby
pontiki has joined #ruby
pontiki has quit [Client Quit]
<[k-> adaedra will show you the way!
devoldmx has quit [Ping timeout: 250 seconds]
<leitz> adaedra, I'm currently using the sub classes to generate characters. A new requirement has come in to pull the caracter data from a datastore, and I need to deal with the super class assuming it was supposed to do stuff.
<leitz> Make sense? I didn't get a lot of sleep last night. :(
sferik has joined #ruby
michael_mbp has joined #ruby
jas02 has joined #ruby
<adaedra> leitz: let's make this understandable
<adaedra> you're creating a representation of Characters (as in game characters)?
<leitz> Yup.
<adaedra> And you have specialized characters, which would be Character subclasses?
mary5030 has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
<leitz> Yup.
<leitz> The Character class assumption is that it would create parts of the character., not just hold data.
lkba has joined #ruby
allomov has quit [Remote host closed the connection]
<adaedra> Like hold Items or something?
maahsa has joined #ruby
Xeago has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Yes. For example, a character has a set of stats, called "upp". The original class generated the upp. I am now working on having the class hold a provided upp, or generate one if none provided.
<maahsa> I have been battling a memory leak in ruby 2.2.3p173 for a couple of days now. Basically, I want it to go away.
ruurd has joined #ruby
<maahsa> There must be an issue with huge hashes and symbols
<leitz> adaedra, for note, I'm working on the server provided Ruby 1.8.7.
LatoSans has quit [Quit: Leaving]
<adaedra> 1.8.7!?
houhoulis has joined #ruby
Kallis has joined #ruby
<leitz> Yeah, I know. Unsupported, antiquated, etc...etc...etc..
Ilyes512 has quit [Read error: Connection reset by peer]
<maahsa> old
<maahsa> you forgot old
<leitz> Ah, and "old". "very old".
<leitz> :P
maahsa is now known as maasha
<maasha> :D
<adaedra> So each subclass would give this set of stats to the parent class to hold, right?
gustav__ has quit [Remote host closed the connection]
<adaedra> Sounds like a basic case of optional parameter
freezevee has joined #ruby
<adaedra> Except if you may want to be able to pass only a part of these stats, and let the parent fill in the blanks?
<leitz> The super class generates the upp. The subclass starts initialize with "super", and then can modify the upp.
solocshaw has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
<leitz> In general, the super class is never called directly.
solocshaw has joined #ruby
<adaedra> But you said "I am now working on having the class hold a provided upp, or generate one if none provided."
voltalio has joined #ruby
<adaedra> How is this `upp` generated? Just base values that can be overriden? Random?
apt-get has quit [Ping timeout: 250 seconds]
<leitz> Yes. The original program created characters. For example, "chargen.rb -c Marine" would generate a Marine character. The Marine class was a subclass of Character. Character would randomly generaly the upp, and then Marine might modify it. Then print it out for view.
<adaedra> 18>> def foo(opt = {}); opt; end; foo bar: 1337
<ruboto> adaedra # => /tmp/execpad-963be9e0160e/source-963be9e0160e:2: syntax error, unexpected ':', expecting kEND ...check link for more (https://eval.in/440081)
<adaedra> grmbl
Ilyes512 has joined #ruby
<adaedra> Ok, I see
<adaedra> And this is what you have now or what you're trying to have?
<leitz> Now I'm trying to pull already created characters from a data store (JSON) and print them the same way. The Character clsss's assumption is that it would always generate upp, not be given one.
<leitz> All 56 rspec tests pass for generation. Most blow up when I pass in a hash.
<adaedra> You can serialize the character into the data store
<adaedra> Ah, wait, JSON
<leitz> Also, while I'm even older than 1.8.7, my skills are about as developed as 3.8.pre-pre-alpha.
solocshaw has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 264 seconds]
<leitz> So, the question seems to be, can I modify Character to take an optional hash with parts of the work done, or should I make a differnet class for injesting the hash data?
<maasha> I cant even find any bug reports on memory leaks in 2.2.3 maybe they are in japanese
<adaedra> So you want to be able to save characters into JSON and restore them with same data
EXID123 has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<adaedra> Well, yeah, let characters be creatable with an optional hash
evanjs has quit [Remote host closed the connection]
<leitz> adaedra,yup.
<leitz> Did I show you the github URL?
<adaedra> no
skade has joined #ruby
<leitz> Hmm..just realized the doc's don't show usage or (il)logic flow.
<adaedra> There's only the upp that has to be reloaded from store, right?
<leitz> No, everything should be reloaded frm the store.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> So many enhancements possibilities in this code.
<leitz> Exactly. I am learning Ruby and using my love of gaming to give me something to practice on.
<leitz> The program, by itself, has little value outside my personal education.
solocshaw has joined #ruby
<leitz> And the fact that a friend asked me to generate 1134 characters yesterday.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> I see.
RegulationD has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
<leitz> That's when I realized my code was good for one part of the problem, but not for another.
bronson has joined #ruby
vasilakisfil has joined #ruby
leafybasil has joined #ruby
<adaedra> If it's for your personal training, why don't you get a more recent ruby?
<vasilakisfil> hello! when I have something {|param1, param2| ...} is it possible to have a block instead of param1 or param2 ?
<leitz> Also, since I'm learning on my own, if you can provide guidance without just providing code, it helps me learn.
<vasilakisfil> in order to modify param1 and return something else
Ilyes512 has quit [Read error: Connection reset by peer]
<adaedra> leitz: that's what I was seeking for
<adaedra> vasilakisfil: do you have a more complete example to show? I'm not sure to fully understand.
<vasilakisfil> yeah I can create a gist
Ilyes512 has joined #ruby
<leitz> adaedra, #{that_which_pays_the_bills} is as a server admin, and the servers us 1.8.7. Or 1.8.5. By sticking with the old Ruby I can write tools for work as well. That means I can keep my head in more Ruby than just aftera long day at work.
<leitz> Because of time, a new Ruby effectively means no Ruby.
Ilyes512 has quit [Max SendQ exceeded]
<adaedra> leitz: you can add basic parameters with defaults, but since you have a lot of parameters, it would be a bit long. You can also add a single parameters containing a hash of data then load from this hash if given or use your defaults.
Ilyes512 has joined #ruby
gustav_ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<adaedra> given your requirements, I'd go for the latter.
gustav__ has joined #ruby
<vasilakisfil> adaedra I updated the gist a bit
<adaedra> So you want to be able to pass a proc as parameter?
<vasilakisfil> I want to do something so that I can modify the arguments before accessing them in the block
<adaedra> I'm not sure your sample clarify things
<adaedra> ah, you want to be able to change route_path in the block?
iyan has quit [Ping timeout: 246 seconds]
braincra- has quit [Read error: Connection reset by peer]
gustav_ has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
<vasilakisfil> basically the block has 2 params route_paths and options. But inside the block I need to always do route_paths[:items] which doen't feel right.. I could do route_paths = route_paths[:items] in the first line of the block but I am wondering if it's possible to modify the arguments with a proc
<vasilakisfil> I had seen something like that somewhere..
voltalio has joined #ruby
scoot has joined #ruby
<adaedra> ah, I think I see, but I don't think it's possible
gustav__ has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
<adaedra> but what you can do is route_paths[:item].tap do |item| and use item inside the tap block
<leitz> adaedra, likes 14-25 have the idea. Just not working yet. :) https://github.com/LeamHall/CT_Character_Generator/blob/optional_hash_init/lib/character.rb
<adaedra> 18>> {}
<ruboto> adaedra # => {} (https://eval.in/440085)
<adaedra> Don't use Hash.new, use {}
<adaedra> But I don't see why it wouldn't work
<adaedra> (If you create a character directly)
bigmac_ has quit [Ping timeout: 255 seconds]
jaygen has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
Pumukel has joined #ruby
EXID123 has joined #ruby
<adaedra> If you want subclasses to also accept this array, you have to add it to their initializers too (super should take it and pass it by default)
Ilyes512 has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Starting on line 70 was the write method that originally took a program generated object of superclass Character. https://github.com/LeamHall/CT_Character_Generator/blob/optional_hash_init/lib/Traveller.rb
iyan has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<adaedra> You can click on a line number to highlight it and get a link to this line, you know.
CloCkWeRX has joined #ruby
<leitz> Lines 36-42 are where I discovered the issue. I was pulling data and passing a hash, not an object.. https://github.com/LeamHall/CT_Character_Generator/blob/optional_hash_init/bin/show_lots_of_characters.rb#L36-L42
<adaedra> So you're not outputting into JSON?
<leitz> Ah, cool. Didn't know that.
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<leitz> The original program just wrote to stdout in txt, html, csv, or wiki formattig.
<maasha> stupid gc
ekain has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> You should close the resources you open. You never close your File object.
<leitz> If I can build the object from the same class, and give it data, I can use the same write methods.
<adaedra> Are you required to use JSON?
<leitz> Ah, that was late work last night. Much to be done to get it to work.
Xeago has quit [Remote host closed the connection]
<[k-> maasha: that post is from 2014
<[k-> gc has changed since then
havenwood has joined #ruby
<[k-> we have rincgc now
Ilyes512 has joined #ruby
<leitz> I prefer JSON as I want to move to MongoDB at some piont in time. We also use JSON at work, as the other option is YAML.
braincrash has joined #ruby
chipotle has joined #ruby
<leitz> piont/point
subsonik has joined #ruby
<leitz> I also want to use a portable datastore format but avoid large things like MySQL, etc.
<leitz> Some years ago I had to fix a guys perl code. He had left and a critical business process needed work. He was using a perl only storage mechanism. :(
jdawgaz has joined #ruby
<leitz> I dislike perl anyway, so that was a...real...joy...
<maasha> [k-: it pretty much describes the issue I have exactly
<adaedra> Ok, so what's the current problem?
<leitz> adaedra, is that to me? maasha is taking out the trash, too. :)
<adaedra> Yours, leitz
<maasha> [k-: I have a hash with 1.5M symbols as keys and true as value that I use to filter streamed records. Memory exceeds 6G in an hour
<maasha> so something is leaking
<karapetyan> how to call class method from another class method? )
<karapetyan> and can class methods be a private?)
<adaedra> by its name, karapetyan
<karapetyan> hm)
<karapetyan> ok ))
<leitz> Okay. If i can use the existing Character class for both generation and intake from datastores I avoid potential divergance between to classes that do a lot of the same thing.
<adaedra> You'll have to unserialize from the specialized class though.
<leitz> At present that seems to mean modifying the initialize method to accept an optional hash, and running the subsequent methods if a hash value is not set.
<adaedra> Looks like it. Does it works?
wildlander has joined #ruby
<Papierkorb> Has someone in here experience with the Ruby Object Mapper (ROM)? I'm looking for a gem which lets me have a settings.yml file (much like the config gem does), but which can also do some validations and transformation on top of it
platzhirsch has left #ruby [#ruby]
<leitz> adaedra, here's the error I get: https://gist.github.com/LeamHall/a8bc8aa1bfe63f470381
bigmac_ has joined #ruby
<leitz> However, the why I wrote Character passes all rspec tests.
<leitz> why/way
<adaedra> Well, you have a hash where you expect an object
* leitz really needs to wake up.
<adaedra> yep, you pass to Traveller.write a Hash
loechel has joined #ruby
<leitz> I think I see what you're saying. That means the coffee is wokring. Lemme study it for a bit. The code, not the coffee...
devoldmx has joined #ruby
atomical has joined #ruby
Ilyes512_ has joined #ruby
Pathfinder_ has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<adaedra> ?coffee
<ruboto> here's a coffee, you seem to need it: ☕
Pathfinder_ has joined #ruby
<[k-> !helpa
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subsonik has left #ruby [#ruby]
<adaedra> mmh?
yqt has quit [Ping timeout: 272 seconds]
<[k-> hmmm?
casadei has quit [Remote host closed the connection]
Beoran has quit [Read error: Connection reset by peer]
voltalio has joined #ruby
* leitz is making progress, but needs to figure out how to explain it.
bigmac_ has quit [Ping timeout: 252 seconds]
tsujp has quit [Quit: tsujp is snoozing]
lulzmachine has joined #ruby
gustav_ has joined #ruby
<leitz> Okay, got it.
voltalio has quit [Client Quit]
<leitz> First, adaedra's comment was critical; I was trying to pass a hash to a method expecting an object.
tmtwd has joined #ruby
<leitz> Second, I had forgotten to add an attribute, "rank", to Character's initialize and attr_accessor bits. The sub-classes have it, Character didn't.
Anti-Pizza has joined #ruby
<[k-> That's why we should have strong typing systems for non trivial projects!
<leitz> I just figured we needed better cding skills. :)
<leitz> And better typing skills...
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512_ has quit [Read error: Connection reset by peer]
<[k-> or we should have a decent idea of what we are doing
<[k-> we should know what class is the object we are handling at the moment
skade has quit [Quit: Computer has gone to sleep.]
voltalio has joined #ruby
<adaedra> People who can't live without that don't do Ruby, [k-
<leitz> Which suggests we should do something besides code on a late Friday night...
<adaedra> And they are really fine as long they are not constantly reminding other channels how their language is way better.
<adaedra> Ah, "bragging" was the word I was looking for.
scripore has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Ping timeout: 240 seconds]
<leitz> Well, I have to admit. Even though I am lousy at Ruby I enjoy it as much as I did PHP. That's a high bar for me.
<[k-> :PPPPPPPP
<[k-> ruby is great for hacking and prototyping
<[k-> it took forever to do things in *
<adaedra> leitz: to be fair, the error you pasted clearly indicated you have a Hash and it does not have the given method. From here, it's simple to find the problem.
djbkd has joined #ruby
<leitz> adaedra, I agree. The issue wasn't the language, but my experience in understanding the message it was giving.
<adaedra> It comes with time.
djbkd has quit [Remote host closed the connection]
<leitz> Which is why I stay on 1.8.7. I can introduce Ruby to the people at work, and get stuff done much easier.
solocshaw has joined #ruby
darkf has quit [Quit: Leaving]
<adaedra> I would like to oppose that.
<karapetyan> if i have a hash that stores some values. and if i convert keys of that hash to array
<adaedra> 1.8.7 is really old and Ruby has well changed since. It begins to be counter productive.
<karapetyan> can i be sure that elements of that array will placed in same order as they was added to hash ?
bigmac_ has joined #ruby
<leitz> karapetyan, I'm not sure hashes store in any order.
<adaedra> It does, in >= 1.9
<leitz> adaedra, I understand the point, but I really get more Ruby if I stick with what I can use in my day job.
Ilyes512 has joined #ruby
<karapetyan> adaedra: it does?
<leitz> I've lost more than one language that I didn't get to use often enough for it to stick.
scripore has joined #ruby
Beoran has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<adaedra> karapetyan: see the docs: “Hashes enumerate their values in the order that the corresponding keys were inserted.”
<[k-> also, 1.8.7 is sooooo slooooow
<karapetyan> adaedra: thank yo!
nietzschette has joined #ruby
nietzschette has left #ruby [#ruby]
<leitz> As has been pointed out, my code has room for improvement. I can't expect to change careers and make a similar paycheck. Yet, anyway.
<adaedra> leitz: problem is that you'll find less and less people that would help you, and at the moment you will want to use external gems with your code, you'll have to use old, unmaintained code, which will make it difficult.
<leitz> I'm looking forward to the Ruby Performance Optomization book, it's supposed to have some 1.8 compatible code.
drewvanstone has quit [Quit: Lost terminal]
<[k-> 1. it is vulnerable to dos (no gc of symbols), 2. it does not have the new gc in 1.9, 2.0, 2.1, and 2.2
<[k-> gc is one of the bottlenecks
Kallis has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<[k-> unless you can patch your 1.8.7 to use the newer gc's, your app will still be slow
mattprelude has joined #ruby
<leitz> adaedra, understood. So far the only gem I actually use is nokogiri. As I said earlier, if I can't use it at work I'll lose it completely.
rlf has joined #ruby
<rlf> any idea why this doesn't work as expected - https://gist.github.com/anonymous/269903d791bba69cc22c ; I'm a ruby beginner and I suppose I'm either missing something obvious or it has something to do with the way ruby handles floating-point numbers
<adaedra> Hi, rlf
<rlf> hello
scripore has quit [Quit: This computer has gone to sleep]
<adaedra> expected output, current output?
<leitz> Also, not sure if anyone cares, but Ruby loses impact when apps are written for versions of code that are not supported by the OS. If a program requires Ruby 2.x and the server only has 1.8.7, that program can't get used.
bronson has joined #ruby
shinnya has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
scripore has joined #ruby
<adaedra> leitz: it can. Look at ruby-install or rvm.
<rlf> with input 1 to 10 the output is all but 7, when it should be 1, 2, 3, 5 and 8 only
<adaedra> Also, some Linux distributions have access to newer versions through additional repositories, like CentOS's software collections.
roxtrongo has joined #ruby
<leitz> adaedra, people who support servers seldom have time to look at language specific work-arounds. At least none of the ones I know do.
parduse has joined #ruby
<adaedra> Depends where.
skade has joined #ruby
<leitz> Even Ruby 1.8.7 easily competes with Python and Perl, from an admin's perspective. I find it a lot more fun that either of those, which is why I promote it at work.
<havenwood> leitz: OS/distro?
<adaedra> But there's always way of getting a newer version, even if it is manual compilation (which sometimes sysadmins do.)
skade has quit [Client Quit]
<leitz> havenwood, RHEL 5/6.
<leitz> If we ever move to RHEL 7 then Ruby 2.0 is an option.
<adaedra> Yep, Software collections.
<adaedra> I don't know if it goes back to RHEL 5 tho.
bronson has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
tkuchiki has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Ruby 1.8.5 on RHEL 5, I think. But we're encouraging people to move away from it.
jdawgaz has joined #ruby
skade has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<adaedra> >> Math.sqrt(9) # rlf
<ruboto> adaedra # => 3.0 (https://eval.in/440099)
<adaedra> >> Math.sqrt(10) # better example
<ruboto> adaedra # => 3.1622776601683795 (https://eval.in/440100)
yqt has joined #ruby
<leitz> I have this dream of getting a cyber security degree and using Ruby for my capstone project.
<adaedra> That's your problem, rlf. In fact, it should show /all/ numbers, but float imprecision prevents that.
scoot has quit [Remote host closed the connection]
<rlf> oh, so how do I go on fixing that?
<adaedra> Mathematically, sqrt(n^2) = n (or close enough), so I guess your method is flawed.
freerobby has joined #ruby
sanjayu has joined #ruby
pawnbox has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 265 seconds]
<adaedra> But for you, is_perfect_square? should return true if n is the square value of an integer number? rlf
pawnbox has joined #ruby
roxtrong_ has joined #ruby
bruno- has joined #ruby
crank1988 has quit [Ping timeout: 265 seconds]
<rlf> I tried the same stuff in C++, seems to give me correct result, so I guess the problem is not in the logic but in my misunderstanding of how ruby works
<adaedra> What method did you use for sqrt in c++?
<rlf> sqrt() from math.h
<adaedra> can you show me this method in C++? I think I see.
kirun has joined #ruby
<adaedra> Just need to confirm.
<rlf> you mean the source of the sqrt method, or the source of my method?
<adaedra> Of your is_perfect_square method.
<rlf> int s = sqrt(x)
<rlf> return (s * s == x)
<adaedra> here it is.
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> There's an implicit operation you don't see here in your C++ code.
roxtrongo has quit [Ping timeout: 272 seconds]
<karapetyan> function that return's break is it possible?)
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
<rlf> yeah, it converts it to an int
<adaedra> which ruby doesn't, it keeps a float.
<adaedra> great, no need to rewrite.
<rlf> so do i append .to_i
<[k-> karapetyan: no, break is a keyword in ruby
<rlf> ?
<[k-> karapetyan it cannot be returned
<karapetyan> [k-: check the gist plz)
<karapetyan> [k-: ahh
<adaedra> ?try rlf
<ruboto> rlf, Why don't you try it and see for yourself?
<rlf> aw, it worked; 10x adaedra
<[k-> ah, that would work
gambl0re has quit []
<[k-> wait, there is no loop
<[k-> that wouldn't work
<adaedra> karapetyan: what to you want to do? break depending on this method?
TheHodge has quit [Quit: Connection closed for inactivity]
<adaedra> you can't pass a language construct like that, you have to make your break conditional to this method's return value
<karapetyan> adaedra: yes i call this method from loop and i want to be able break loop
<karapetyan> and i want to return break
<[k-> break if self.continue?
<karapetyan> yes)
<adaedra> just put user_input == "y"
grotewold has quit [Ping timeout: 246 seconds]
<adaedra> then, what [k- said
<adaedra> or with unless, rather
<karapetyan> ok)
<adaedra> (if you want to break on "n")
<karapetyan> btw should i call method self.continue?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> such flawes logic i am harbouring
<karapetyan> or just continue from
parduse has quit []
<adaedra> like you want. As it returns a bool, keep the '?' at the end.
<[k-> continue is a keyword in ruby
<[k-> i think
<[k-> wait, no, that is next
<adaedra> >> continue
<ruboto> adaedra # => undefined local variable or method `continue' for main:Object (NameError) ...check link for more (https://eval.in/440101)
<[k-> @.@
<adaedra> it's not.
chipotle has quit [Quit: cheerio]
<karapetyan> can you review my code plz
<[k-> yes, i realised that 9s later
freerobby has quit [Quit: Leaving.]
<[k-> karapetyan: no tabs!
<adaedra> karapetyan: fix your indent
ta has joined #ruby
<[k-> ntil user_input == ("y" || "n")
<[k-> this is wrong
Xeago has joined #ruby
<karapetyan> give me a socond please i give you a full gist
apt-get has joined #ruby
<[k-> and until ... do is not wrong but the do is unnecessary
<[k-> you will get an infinite loop
<[k-> have you tried running your code yet?
rbennacer has quit [Remote host closed the connection]
<adaedra> I think trying to return break prevents that.
ta_ has quit [Ping timeout: 264 seconds]
<karapetyan> not yet)))
<karapetyan> btw what i should use instead tabs?
<[k-> 2 spaces for 1 tab
<shevy> cats
<adaedra> community guidelines advise 2 spaces.
<[k-> shevymobile!
<adaedra> it's all preference, afterwards.
grotewold has joined #ruby
apt-get has quit [Quit: Quit]
apt-get has joined #ruby
allomov has joined #ruby
maasha has quit [Quit: Page closed]
jdawgaz has joined #ruby
gustav_ has quit [Remote host closed the connection]
voltalio has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
rmrrn has quit [Quit: ZNC - http://znc.in]
rmrrn has joined #ruby
rmrrn has joined #ruby
arashb has joined #ruby
afs has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
rikkipitt has joined #ruby
<shevy> no it's science!
stamina has quit [Ping timeout: 240 seconds]
<shevy> tab users have small brains!!
<shevy> and not only that is small!!!
TheHodge has joined #ruby
sudiptamondal has joined #ruby
sudiptamondal has quit [Max SendQ exceeded]
sudiptamondal has joined #ruby
<adaedra> sigh.
gambl0re has joined #ruby
houhoulis has quit [Remote host closed the connection]
<[k-> shevy: who told you and what do you know!
grotewol_ has joined #ruby
<karapetyan> yay!
grotewold has quit [Ping timeout: 272 seconds]
sumark has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<karapetyan> here is my full gist)
sumark has joined #ruby
sudiptamondal has quit [Client Quit]
tuxero has joined #ruby
node_ has joined #ruby
<node_> How do I made ruby produce a beep sound?
SCHAAP137 has quit [Remote host closed the connection]
<karapetyan> and i want to know is my code ok?
evanjs has joined #ruby
voltalio has joined #ruby
deject3d has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
apt-get_ has joined #ruby
SCHAAP137 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
apt-get has quit [Ping timeout: 250 seconds]
<karapetyan> [k-: could you review please?
<adaedra> node_: output the beep character to terminal
<karapetyan> shevy: or you please :)
<node_> adaedra: Doesn't work for some reason.
<karapetyan> and anyone can help me setup sublime tap for 2 spaces? :)
<adaedra> node_: how do you do it?
evanjs has quit [Ping timeout: 244 seconds]
<shevy> karapetyan ok first thing first
<shevy> use spaces
arashb has quit [Ping timeout: 244 seconds]
<shevy> does the code work?
RegulationD has joined #ruby
<shevy> there are no comments so I have no idea what this thing does
<node_> print "\a"
aaeron has joined #ruby
<karapetyan> shevy: yes, code works
<karapetyan> already fix sublime )
<shevy> good. so switch to spaces, add comments, you are done with this class. move on to other code.
<karapetyan> shevy: wooow :)
niko has quit [Ping timeout: 615 seconds]
<karapetyan> this is first time when i wrote something not shitty?
<karapetyan> i will go and take some wine :D
<adaedra> karapetyan: if your Coincidence thing is not meant to be instancied and just has class methods, make it a module.
<karapetyan> adaedra: yep :)
<karapetyan> already! actually ! ))
<[k-> self.continue? has logic errors
<adaedra> you call continue? but do nothing on its result.
<adaedra> >> %w[y n]
<ruboto> adaedra # => ["y", "n"] (https://eval.in/440104)
<karapetyan> i pass it result to self.find
<adaedra> oh right
<shevy> btw karapetyan ... oh yes
robh71 has joined #ruby
robh71 has quit [Max SendQ exceeded]
<shevy> I was just about to suggest this
<shevy> but use: %w( y n )
<[k-> self.continue? still has logical errors
<karapetyan> use what? %)
allomov has quit [Remote host closed the connection]
robh71 has joined #ruby
<shevy> yes
<adaedra> if ! => until
<adaedra> unless*
<shevy> you can kill the "","" characters, think about that
RegulationD has quit [Ping timeout: 255 seconds]
<[k-> instead of @results[element].each { |item| puts item }
<[k-> use puts @results[element]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<karapetyan> if !=> unless # done!
<[k-> your code is not threadsafe
wookiehangover has quit [Ping timeout: 240 seconds]
<karapetyan> [k-: what does mean threadsafe? )))
solocshaw1 has joined #ruby
<karapetyan> oh i see
ruurd has joined #ruby
<adaedra> which is not a problem if you don't plan on threadify it or make it a library
<[k-> your code doesn't show intent clearly
<[k-> why 3
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<karapetyan> should i create variables coincidence = 3 and put this instead 3 ?
fantazo has joined #ruby
<karapetyan> shevy: what mean %w(y n) could you explain please?
<[k-> yes
<karapetyan> guys can i code for free something? to get experience in team working?
leafybas_ has joined #ruby
<karapetyan> [k-: done
<[k-> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<karapetyan> and where best project / place to start?
<karapetyan> folks!! ))
<karapetyan> damn )
<[k-> have you fixed until...do yet?
bronson has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> now, the most crucial part of mathematical looking code is to document it using comments
wookiehangover has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
<karapetyan> [k-: no, what should i fix?
<karapetyan> in until...do
<adaedra> karapetyan: %w[] is a short way of writing an array of string.
<adaedra> >> %w[one two three]
<ruboto> adaedra # => ["one", "two", "three"] (https://eval.in/440113)
<[k-> remove the do
<[k-> it is unnecessary
roxtrong_ has quit [Remote host closed the connection]
leafybas_ has quit [Ping timeout: 246 seconds]
<karapetyan> [k-: ok, but why it is unnecessary? cause i don't have a block arguments?
<[k-> some people used to do `if expr do` but you dont see that anymore
ramfjord has joined #ruby
jamesaxl has joined #ruby
<[k-> >> if 1 + 1 == 2 do; "yay"; end
<ruboto> [k- # => /tmp/execpad-962ea39be354/source-962ea39be354:2: syntax error, unexpected keyword_do, expecting keyw ...check link for more (https://eval.in/440116)
Ilyes512 has joined #ruby
<karapetyan> ok
Rickmasta has joined #ruby
<[k-> hm, i remember that worked before
<adaedra> karapetyan: because the syntax is `until ...; end`
tkuchiki has quit [Ping timeout: 244 seconds]
rikkipitt has quit [Quit: Leaving...]
<karapetyan> eh)))
<karapetyan> something brokes)))
bigmac_ has quit [Ping timeout: 272 seconds]
NeverDie has joined #ruby
node_ has quit [Quit: Page closed]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> why are you adding ))) at the end of your messages?
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
platzhirsch has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
ruurd has quit [Quit: ZZZzzz…]
Timba-as has quit [Quit: Be back later ...]
spider-mario has joined #ruby
MVPhelp has quit [Remote host closed the connection]
ruurd has joined #ruby
elton has quit []
sferik has joined #ruby
ruurd has quit [Client Quit]
<shevy> russian keyboard probably
aaeron1 has joined #ruby
troyready has quit [Ping timeout: 265 seconds]
MVPhelp has joined #ruby
qixiaobin has joined #ruby
voltalio has joined #ruby
houhoulis has joined #ruby
<qixiaobin> exit
<qixiaobin> quit
aaeron has quit [Ping timeout: 265 seconds]
icarus_ has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
<[k-> save!
<[k-> deletecookiesession
<[k-> wipedisk
<[k-> hardreset
<[k-> reset
<[k-> leave
afs has quit [Quit: Ex-Chat]
Psi-Jack has left #ruby [#ruby]
roxtrongo has joined #ruby
qixiaobin has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Remote host closed the connection]
devoldmx has joined #ruby
node_ has joined #ruby
Ilyes512_ has joined #ruby
djbkd has joined #ruby
grotewol_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troyready has joined #ruby
Ilyes512 has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 250 seconds]
nfk|laptop has joined #ruby
<node_> when using `` to run a system command, how do I send the output of the command to /dev/null instead of the screen?
allomov has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has joined #ruby
havenwood has joined #ruby
<shevy> just as you do it in shell
<node_> shevy: I'm still seeing the output in the shell...
<shevy> 2>&1
<shevy> and other redirects
UtkarshRay has quit [Ping timeout: 240 seconds]
<node_> shevy: Yeah the output is still going to the terminal window.
nfk|laptop has quit [Client Quit]
aaeron1 has quit [Ping timeout: 246 seconds]
<node_> shevy: Wait. Using 2>&1 works but &> doesn't...
yeticry has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
<adaedra> if you're not planning to get the output back, `` is not what you're looking for.
tsujp has joined #ruby
lulzmachine has quit [Quit: Connection closed for inactivity]
nsuke has quit [Remote host closed the connection]
Soda has joined #ruby
<node_> Also, why can I not run a command in the background by appendig & ?
<node_> appending*
<node_> like `some command &` doesn't run the command in the background
lkba has quit [Read error: Connection reset by peer]
tejasmanohar has joined #ruby
lkba has joined #ruby
yeticry has joined #ruby
<adaedra> use Process
<adaedra> And don't forget to wait the created process to not have zombies
<platzhirsch> node_: teach me node
roxtrongo has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
apt-get__ has joined #ruby
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
node_ has quit [Quit: Page closed]
linc01n has joined #ruby
ericjphillips has joined #ruby
baweaver has joined #ruby
robh71 has joined #ruby
Chau has joined #ruby
linc01n has quit [Client Quit]
noethics has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
linc01n has joined #ruby
RegulationD has joined #ruby
apt-get_ has quit [Ping timeout: 272 seconds]
FrankD has joined #ruby
iyan has quit [Quit: iyan]
hanmac has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
grotewold has joined #ruby
jaygen has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
blackmesa has joined #ruby
grotewold is now known as grotewold[afk]
rippa has joined #ruby
karapetyan has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
pen has quit [Remote host closed the connection]
nettoweb has joined #ruby
Ilyes512 has joined #ruby
bronson has joined #ruby
Ilyes512_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 256 seconds]
sanjayu has quit [Ping timeout: 264 seconds]
grotewold[afk] has quit [Ping timeout: 244 seconds]
Kallis has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
iateadonut has left #ruby [#ruby]
grotewold has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
doddok has quit [Quit: Leaving]
lkba has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
parduse has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
The_Phoenix1 has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
dionysus69 has joined #ruby
Chau has quit [Quit: Leaving]
renderfu_ has joined #ruby
noethics has quit [Quit: Leaving]
Ilyes512 has quit [Ping timeout: 255 seconds]
noethics has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
tejasmanohar_ has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
uri_ has joined #ruby
tejasmanohar has quit [Ping timeout: 256 seconds]
aibo has quit [Ping timeout: 256 seconds]
tejasmanohar_ is now known as tejasmanohar
Ilyes512 has joined #ruby
northfurr has joined #ruby
chipotle has joined #ruby
renderfu_ has quit [Ping timeout: 264 seconds]
<shevy> how would you go about doing this in plain ruby? https://upload.wikimedia.org/wikipedia/commons/a/a8/Friendlyinteractiveshell.png
parduse has quit []
<shevy> I can understand the first part; have an Array, apply a regex or select statement for match criteria. But what about the colours?
<adaedra> Use a gem that colorizes output
grotewold has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
pen has joined #ruby
Ilyes512 has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
<havenwood> shevy: There are colors in the Crystal stdlib: https://github.com/manastech/crystal/blob/master/src/colorize.cr
<shevy> see that is what ruby needs - fresh ideas from the get go
gustav_ has joined #ruby
jalnt has quit [Read error: Connection reset by peer]
polly_wog has joined #ruby
polly_wog has quit [Client Quit]
tejasmanohar has quit [Quit: tejasmanohar]
<shevy> yeah
<shevy> ruby is starting to show its age there
northfurr has quit [Quit: northfurr]
<shevy> must be even harder for perl
cvtsx has quit [Quit: Leaving]
rbennacer has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
Ilyes512 has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
nettoweb has quit [Max SendQ exceeded]
reset has joined #ruby
nettoweb has joined #ruby
banister has joined #ruby
timonv has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has joined #ruby
tbuehlmann has left #ruby [#ruby]
crunk_bear has joined #ruby
Uranio-235 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
reset has quit [Client Quit]
scripore has joined #ruby
Ilyes512 has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
Ilyes512 has joined #ruby
Ilyes512_ has quit [Ping timeout: 260 seconds]
Ilyes512 has quit [Read error: Connection reset by peer]
robh71 has joined #ruby
jaygen has joined #ruby
[k- has quit [Ping timeout: 265 seconds]
tejasmanohar has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doddok has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
scripore has quit [Client Quit]
scripore has joined #ruby
bigmac_ has joined #ruby
scripore has quit [Client Quit]
qixiaobin has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
grotewold has joined #ruby
pen has quit [Remote host closed the connection]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scripore has joined #ruby
bazbing81 has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jas02 has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
qixiaobin has quit [Ping timeout: 255 seconds]
jatb has joined #ruby
bronson has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
tw1sted has quit [Remote host closed the connection]
ericjphillips has quit [Quit: Leaving.]
ericjphillips has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<freezevee> instead of creating an object like myobj = MyObject.new(arg1, arg2, arg3, arg4, ......arg10) what else can I do ?
<freezevee> a hash ?
platzhirsch has quit [Quit: Leaving.]
<freezevee> I tried with ..new(options) and I set the options = { } or an array but it doesn't work
platzhirsch has joined #ruby
<deject3d> why
<freezevee> the arguments are 10
<freezevee> too many
<havenwood> freezevee: new(*options)
tw1sted has joined #ruby
charliesome has joined #ruby
platzhirsch has left #ruby [#ruby]
Musashi007 has joined #ruby
<havenwood> freezevee: Some splat examples: http://jacopretorius.net/2012/01/splat-operator-in-ruby.html
<freezevee> so this is the splat
<havenwood> *
<freezevee> never used it
robh71 has joined #ruby
<freezevee> checking it out
charliesome has quit [Client Quit]
robh71 has quit [Max SendQ exceeded]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
<freezevee> in initialize are they def initialize(options={}) ?
<freezevee> or *options ?
Xeago has joined #ruby
<shevy> havenwood showed you the *
BTRE has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<shevy> you should take what he offered :)
jenrzzz has joined #ruby
<freezevee> I mean that I create with .new(*args) but how do I initialize the object
<shevy> just like every time you use .new
<shevy> Foo.new
<shevy> Foo.new 1
<shevy> Foo.new 1,2
<freezevee> no
<freezevee> I mean that I have 10 options
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
<havenwood> freezevee: I don't follow what you're trying to do. Maybe create a gist that shows what you've tried so far.
<freezevee> I set options = [one, two, three ...]
<freezevee> then MyObject.new(*options)
<shevy> so you already have options, an array
<shevy> so you pass it
<shevy> MyObject.new(options)
lxsameer has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<freezevee> shevy: I guess it's simple, right ?
slayerjain has joined #ruby
<freezevee> it becomes options[0] etc. ?
yqt has joined #ruby
<freezevee> so If I want to pass a hash, I should initially set options = { option1: "Abc", .... } and then use them in initialize as options[:option1]
jaredrhine has joined #ruby
tejasmanohar has joined #ruby
<freezevee> is it that simple ?
<shevy> I don't know what you are trying to do, but things are simple
banister has joined #ruby
<freezevee> of course, we are in Ruby
<shevy> in your example you pass an array
<freezevee> I could have asked this in C# room
<shevy> arrays allow [] access by default
<freezevee> lol
<freezevee> I got it
djbkd has quit [Remote host closed the connection]
atmosx_laptop has joined #ruby
<shevy> you can check what you got via .is_a?
<freezevee> sometimes you get frustrated, this is normal right ? forgive me please
<shevy> or if you believe in duck sacrificing then .respond_to?
jenrzzz has quit [Ping timeout: 255 seconds]
<freezevee> I got it, thanks ( I believe so )
<shevy> \o/
<freezevee> ruby is simple
<freezevee> life is simple
<freezevee> so ruby = life
RegulationD has joined #ruby
jenrzzz has joined #ruby
<tuxero> hello
<freezevee> sorry for the BS, just trying to make up a joke
RegulationD has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
tsujp has joined #ruby
<Uranio-235> freezevee: a very good one :D
apt-get__ has quit [Quit: Quit]
apt-get has joined #ruby
tomchapin has joined #ruby
Ilyes512 has joined #ruby
tomchapin has quit [Client Quit]
fantazo has quit [Quit: Verlassend]
k3asd` has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
Ilyes512 has joined #ruby
tomchapin has joined #ruby
rbennacer has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
Ilyes512_ has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
atmosx_laptop has quit [Ping timeout: 244 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GnuYawk has joined #ruby
GnuYawk has joined #ruby
tuxero has quit [Read error: Connection reset by peer]
Ilyes512 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
Ilyes512 has joined #ruby
Ilyes512 has quit [Max SendQ exceeded]
gambl0re has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
codecop has quit [Remote host closed the connection]
Ilyes512 has joined #ruby
dionysus69 has joined #ruby
charliesome has quit [Client Quit]
scripore has joined #ruby
charliesome has joined #ruby
<phreakocious> is there a way to use the printf style but have the results go into a variable instead of printing?
charliesome has quit [Client Quit]
<adaedra> phreakocious: yes, String#%
<adaedra> >> "%04d" % 3
<phreakocious> cheers
<ruboto> adaedra # => "0003" (https://eval.in/440123)
<havenwood> phreakocious: sprintf
gustav_ has quit [Remote host closed the connection]
<phreakocious> thanks folks
slayerja_ has joined #ruby
gustav_ has joined #ruby
slayerja_ has quit [Max SendQ exceeded]
FrankD has quit [Ping timeout: 265 seconds]
slayerjain has quit [Ping timeout: 244 seconds]
slayerjain has joined #ruby
jun_ has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
Coldblackice has joined #ruby
bronson has joined #ruby
Guest63 has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
FrankD has joined #ruby
<dorei> hello
Anti-Pizza has quit [Read error: Connection reset by peer]
<dorei> is there a more beautiful way for this?
<dorei> >> x = [{x: 1, y: 2}, {x: 1, y: 3}, {x: 2, y:5}]; h = {} ; x.each { |e| h[e[:x]] ||= []; h[e[:x]] << e }; h
<ruboto> dorei # => {1=>[{:x=>1, :y=>2}, {:x=>1, :y=>3}], 2=>[{:x=>2, :y=>5}]} (https://eval.in/440124)
<adaedra> >> x = [{x: 1, y: 2}, {x: 1, y: 3}, {x: 2, y:5}]; x.group_by { |a| a[:x] } # dorei
<ruboto> adaedra # => {1=>[{:x=>1, :y=>2}, {:x=>1, :y=>3}], 2=>[{:x=>2, :y=>5}]} (https://eval.in/440125)
<dorei> group_by :) thanx :)
fedexo has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
Ilyes512 has joined #ruby
Helheim has quit [Read error: Connection reset by peer]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
karapetyan has joined #ruby
mary5030 has joined #ruby
pragmatism has joined #ruby
Rickmasta has joined #ruby
CanTonic has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
slayerja_ has joined #ruby
slayerja_ has quit [Max SendQ exceeded]
slayerjain has quit [Ping timeout: 256 seconds]
slayerjain has joined #ruby
yfeldblum has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Sembei has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
kalusn has joined #ruby
swgillespie has joined #ruby
mary5030 has quit [Remote host closed the connection]
Oka has joined #ruby
mary5030 has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
Zackio has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
swgillespie has left #ruby [#ruby]
Azure has joined #ruby
sanjayu has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
Zackio has joined #ruby
rushed has joined #ruby
Guest63 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Read error: Connection reset by peer]
freezevee has quit [Remote host closed the connection]
plubmus has joined #ruby
Azure has joined #ruby
slayerja_ has joined #ruby
<plubmus> a better scraper than nokogiri?
<adaedra> You mean XML parser?
<adaedra> Look at Oga
slayerja_ has quit [Max SendQ exceeded]
<adaedra> (hi yorickpeterse)
<plubmus> do xml parsers work with html?
<plubmus> just made my first ruby script scraping imgur albums
slayerja_ has joined #ruby
<mozzarella> what's wrong with nokogiri?
slayerjain has quit [Ping timeout: 268 seconds]
varunwachaspati has joined #ruby
<darix> plubmus: you mean instead of just downloading the zip that imgur offers itself?:)
<darix> lol
<plubmus> darix: oopsie
tsujp has quit [Quit: tsujp is snoozing]
<plubmus> is that available without javascript?
<darix> you can construct the path from the album name ;)
grotewold has quit [Ping timeout: 250 seconds]
BrazenBraden has quit [Quit: Leaving]
<darix> http://s.imgur.com/a/<albumid>/zip
<plubmus> i see. noice
<plubmus> how'd you figure that out?
<darix> i looked at the "post options" menu
<darix> downloaded one album
nsuke has joined #ruby
<darix> and then noticed the path in my download list in chromium
ducklobster has quit [Ping timeout: 240 seconds]
Jamo has quit [Ping timeout: 260 seconds]
Jamo has joined #ruby
<plubmus> darix: coolio. that'll come in handy.
Uranio-235 has quit [Ping timeout: 246 seconds]
Pathfinder_ has quit [Ping timeout: 250 seconds]
bigmac_ has joined #ruby
Uranio-235_ has joined #ruby
<Uranio-235_> rushed: I'm using AR (without rails) for connect to a MySQL database, but I need to do it readonly. Setting readonly: true in #establish_connection seems do not work
<darix> Uranio-235_: enforce the readonly part at the DB permissions
<darix> much better than trying to do it at the client side
leat has quit [Ping timeout: 260 seconds]
sferik has joined #ruby
leat has joined #ruby
<Uranio-235_> :-/ ok... I have server side's control
<Uranio-235_> sorry
<Uranio-235_> have NOT server's side control
p0wn3d__ has joined #ruby
<darix> do you control which queries you send?
<Uranio-235_> yep...
<darix> because if you only send select statements than you should be gold on the "Readonly" part
<Uranio-235_> I just do not wanna modify my friend's database "by accident"
<Uranio-235_> would by nice having a readonly
<Uranio-235_> I could set readonly for particular attributes
<Uranio-235_> could I do it globally?
ericjphillips has quit [Quit: Leaving.]
<Uranio-235_> sorry if my english "rusty"
Ilyes512 has quit [Read error: Connection reset by peer]
plubmus has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
evanjs has joined #ruby
<darix> Uranio-235_: just do not send any insert,update,delete statements
<darix> and be sure to know what the stored procedures do when you call them with select
vasilakisfil has quit [Ping timeout: 248 seconds]
Ilyes512 has joined #ruby
<Uranio-235_> if at last, I could iterate over all the attributes inside the model an set on the fly
fantazo has joined #ruby
grotewold has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
p0wn3d__ has quit [Ping timeout: 264 seconds]
slayerjain has joined #ruby
Timba-as has joined #ruby
p0wn3d__ has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.3-dev]
<Uranio-235_> HA! I got it...
slayerja_ has quit [Ping timeout: 264 seconds]
cdg-me has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigmac_ has quit [Ping timeout: 240 seconds]
slayerjain has quit [Ping timeout: 252 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
devoldmx has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
bronson has joined #ruby
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rickmast_ has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
Ilyes512 has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
<shevy> ack, rails
maokomioko has joined #ruby
bigmac_ has joined #ruby
maokomioko has quit [Client Quit]
maokomioko has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
maokomioko has quit [Client Quit]
bronson has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
Azure has joined #ruby
<Uranio-235_> shevy: yes, I just mistake channels after re-connetions
karapetyan has joined #ruby
michaeldeol has joined #ruby
bigmac_ has quit [Ping timeout: 246 seconds]
parduse has joined #ruby
moeabdol1 has joined #ruby
ghostlines has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
jun_ has quit [Remote host closed the connection]
Uranio-235_ is now known as Uranio-235
grotewold has quit [Ping timeout: 265 seconds]
tockitj has joined #ruby
psy has quit [Disconnected by services]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tockitj has quit [Changing host]
tockitj has joined #ruby
willharrison has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
psy_ has joined #ruby
Ilyes512 has joined #ruby
bigmac_ has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> shevy: Good night
<arup_r> time to sleep for me
einarj has joined #ruby
karapetyan has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
nettoweb has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
async_prince has joined #ruby
Musashi007 has quit [Quit: Musashi007]
VeryBewitching has joined #ruby
mary5030 has joined #ruby
maokomioko has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
Pathfinder_ has joined #ruby
Rollabunna has joined #ruby
parduse has quit []
einarj has quit [Remote host closed the connection]
gustav_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has quit [Ping timeout: 255 seconds]
jun_ has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
beast has quit [Quit: Leaving]
gustav_ has joined #ruby
deject3d has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
deject3d_ has joined #ruby
deject3d has quit [Read error: Connection reset by peer]
deject3d has joined #ruby
deject3d_ has quit [Read error: Connection reset by peer]
<yorickpeterse> adaedra: hi
Xeago has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> :)
Ilyes512 has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has joined #ruby
mr_george has joined #ruby
jxv has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
Xeago has joined #ruby
mary5030 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<mr_george> I need to develop a simple web application in ruby where the user inputs simple queries, and gets a table fetched from a database, like a typical search engine, but for other kinds of data. Is there a framework or example of something like this I could use as a starting point?
tuxero has joined #ruby
michaeldeol has joined #ruby
<Uranio-235> mr_george: Rails
<Uranio-235> rails g scaffold for make tables
<Uranio-235> and a controller for search
Uranio-235 has quit [Quit: Page closed]
radgeRayden has joined #ruby
Ilyes512 has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
bronson has joined #ruby
tomphp has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
deject3d has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
s00pcan has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
ddarkpassenger has joined #ruby
tomphp has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
Stalkr_ has quit [Excess Flood]
qixiaobin has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
Stalkr_ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
kadoppe has quit [Ping timeout: 264 seconds]
kadoppe has joined #ruby
qixiaobin has quit [Ping timeout: 264 seconds]
loechel has quit [Ping timeout: 256 seconds]
crunk_bear has joined #ruby
crunk_bear has quit [Max SendQ exceeded]
weemsledeux has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
michaeldeol has joined #ruby
nettoweb has joined #ruby
Ilyes512_ has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
deject3d has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
kirun has quit [Remote host closed the connection]
ddarkpassenger is now known as jairojunior
jairojunior has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
Azure has joined #ruby
ddarkpassenger has joined #ruby
ddarkpassenger has quit [Client Quit]
tuxero has quit [Quit: tuxero]
tuxero has joined #ruby
cih has joined #ruby
<shevy> sleepy sleepy weekends
apt-get has quit [Remote host closed the connection]
tsujp has joined #ruby
rushed has quit [Quit: rushed]
apt-get has joined #ruby
jairojunior has joined #ruby
gustav_ has quit [Remote host closed the connection]
quazimodo has joined #ruby
agent_white has joined #ruby
mello has joined #ruby
Ilyes512 has joined #ruby
bigmac_ has quit [Ping timeout: 264 seconds]
Coldblackice has quit [Read error: Connection reset by peer]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> shevy: mmm
atmosx_laptop has joined #ruby
cih has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 264 seconds]
Coldblackice has joined #ruby
fantazo has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
jairojunior has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has joined #ruby
ruby-lang461 has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
apt-get has quit [Read error: Connection reset by peer]
marr has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
bigmac_ has joined #ruby
kobain has joined #ruby
apt-get has joined #ruby
evanjs has joined #ruby
rushed has joined #ruby
ruby-lang461 has quit [Ping timeout: 246 seconds]
VeryBewitching has quit [Remote host closed the connection]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
devbug has joined #ruby
Ilyes512 has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
decoponio has quit [Ping timeout: 250 seconds]
lkba_ has joined #ruby
<tuxero> hello
<tuxero> as I do to pass parameters from one controller to another?
<tuxero> /j #fossgeek
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
apt-get has quit [Remote host closed the connection]
Kallis has joined #ruby
<baweaver> tuxero: #RubyOnRails
frmendes has joined #ruby
apt-get has joined #ruby
<tuxero> yes
<tuxero> baweaver spanish ?
cih has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
platzhirsch has joined #ruby
<baweaver> no habla
<tuxero> xD dont worry
<tuxero> I have two related forms
jamesaxl has quit [Ping timeout: 246 seconds]
<baweaver> mi español es muy mal
<tuxero> jajajaj ok dont problem
<havenwood> ?rails tuxero
<ruboto> tuxero, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<baweaver> you want to join the channel #RubyOnRails
<tuxero> aah ok
<tuxero> =)
chipotle has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
<platzhirsch> Move along Active Recordist
<havenwood> Hem, I could go for some ActiveBrunch right now...
Kallis has quit [Ping timeout: 272 seconds]
<havenwood> Maybe with TurboBenedict.
devoldmx has joined #ruby
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
bronson has joined #ruby
tkuchiki has joined #ruby
deject3d has joined #ruby
j4cknewt has joined #ruby
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
apt-get has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
Kallis has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get has joined #ruby
stamina has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
last_staff has quit [Quit: last_staff]
bronson has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
mr_george has quit [Quit: Page closed]
nolic has quit [Ping timeout: 246 seconds]
Kallis has quit [Ping timeout: 272 seconds]
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dorei> >> URI('/Ñ')
<ruboto> dorei # => undefined method `URI' for main:Object (NoMethodError) ...check link for more (https://eval.in/440152)
<dorei> >> require 'uri' ; URI('/Ñ')
Kallis has joined #ruby
<ruboto> dorei # => URI must be ascii only "/\u{d1}" (URI::InvalidURIError) ...check link for more (https://eval.in/440153)
<dorei> how can I fix that?
deject3d has quit [Quit: Computer has gone to sleep.]
<dorei> some kind of encoding is needed
<adaedra> use URI.encode
<dorei> merci :)
ramfjord has quit [Ping timeout: 264 seconds]
Kallis has quit [Read error: Connection reset by peer]
<shevy> ActiveDam
<shevy> where is sevenseacat
apt-get has quit [Remote host closed the connection]
<adaedra> gone
apt-get has joined #ruby
Kallis has joined #ruby
coffeecupp has joined #ruby
deject3d has joined #ruby
quazimodo has joined #ruby
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
bigmac_ has quit [Ping timeout: 256 seconds]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
Kallis has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get_ has joined #ruby
apt-get_ has quit [Remote host closed the connection]
apt-get_ has joined #ruby
apt-get_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
agent_meerkat has joined #ruby
apt-get_ has joined #ruby
Rollabunna has joined #ruby
apt-get has quit [Ping timeout: 240 seconds]
Ilyes512 has joined #ruby
varunwachaspati has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
Kallis has joined #ruby
Sembei has quit [Quit: WeeChat 1.4-dev]
bigmac_ has joined #ruby
gustav_ has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
spider-mario has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 240 seconds]
gustav_ has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
otacon- has joined #ruby
baweaver has quit [Remote host closed the connection]
coffeecupp has quit [Quit: leaving]
TomyLobo has quit [Ping timeout: 246 seconds]
araujo has quit [Ping timeout: 246 seconds]
willharrison has joined #ruby
CanTonic has quit [Quit: Textual IRC Client: www.textualapp.com]
agent_meerkat has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
apt-get_ has quit [Remote host closed the connection]
apt-get has joined #ruby
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codenapper has joined #ruby
codenapper has quit [Client Quit]
bigmac_ has quit [Ping timeout: 252 seconds]
apt-get has quit [Remote host closed the connection]
apt-get has joined #ruby
ruby-lang331 has joined #ruby
Jardayn has quit [Quit: Leaving]
<ruby-lang331> Hello everyone!
<ruby-lang331> I have a bit of a question that I haven't been able to find the answer to, and I was wondering if anyone could help me out.
saddad has joined #ruby
<adaedra> ?anyone ruby-lang331
<ruboto> ruby-lang331, Just ask your question, if anyone has or can, they will respond.
wetbackcriminals has joined #ruby
bigmac_ has joined #ruby
<wetbackcriminals> what is the coolest obscure Ruby library?
<adaedra> And hi
<ruby-lang331> How do you set a range to where the top-end is equal to a user-defined variable?
<adaedra> `(1..var)` ?
<adaedra> or without the parenthesis
<ruby-lang331> I kept doing it without the parentheses, and it kept returning a bad range error.
<adaedra> are you sure the data in your variable is correct?
tejasmanohar has joined #ruby
<ruby-lang331> I assume so. It should just be....ah.
<ruby-lang331> User-input is always a string by default, isn' tit?
<adaedra> yes
<ruby-lang331> So I'd have to set it to n.to_i to make it an acceptable integer, then, right?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pen has joined #ruby
<adaedra> you can, but remember that .to_i will fail silently if input is invalid.
<adaedra> >> "cecinestpasunnombre".to_i
<ruboto> adaedra # => 0 (https://eval.in/440156)
wetbackcriminals is now known as DonaldTrump2016
bazbing81 has quit [Ping timeout: 244 seconds]
bazbing80 has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
doddok has quit [Quit: Leaving]
bigmac_ has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
j4cknewt has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
Eddieh_ has joined #ruby
<ruby-lang331> I could just put in an if statement to detect whether or not it was a number, though, right?
bubbys has joined #ruby
lxsameer has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 250 seconds]
<adaedra> You can, use can also use the Integer method that will throw if your string cannot be converted
<adaedra> s/use/you/
ta_ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
cdg-me has quit [Remote host closed the connection]
michaeldeol has joined #ruby
swgillespie has joined #ruby
michaeldeol has quit [Client Quit]
Stalkr_ has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 252 seconds]
swgillespie has left #ruby [#ruby]
CloCkWeRX has joined #ruby
michaeldeol has joined #ruby
renderful has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
DonaldTrump2016 has quit [Remote host closed the connection]
Pathfinder_ is now known as Pathfinder
ItSANgo_ has quit [Ping timeout: 256 seconds]
nolic has joined #ruby
tuxero has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 268 seconds]
LatoSans has joined #ruby
apt-get has quit [Ping timeout: 250 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has joined #ruby
michaeldeol has joined #ruby
bigmac_ has joined #ruby
michaeldeol has quit [Client Quit]
tomchapin has joined #ruby
ItSANgo has joined #ruby
minimalism has joined #ruby
parduse has joined #ruby
otacon- has quit [Ping timeout: 240 seconds]
stamina has joined #ruby
michael_mbp has quit [Excess Flood]
maletor has joined #ruby
j4cknewt has joined #ruby
michael_mbp has joined #ruby
einarj has joined #ruby
stamina has quit [Ping timeout: 256 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
stamina has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ekain has joined #ruby
radgeRayden has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 255 seconds]
blizzy has joined #ruby
quazimodo has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
bigmac_ has joined #ruby
blizzy has quit [Max SendQ exceeded]
atmosx_laptop has quit [Quit: Lost in trance]
blizzy has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 265 seconds]
maokomioko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ItSANgo has quit [Quit: Leaving...]