apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Client Quit]
lemur has quit [Ping timeout: 272 seconds]
<havenwood> i guess there's threads à gogo >.>
maestrojed has quit [Quit: Computer has gone to sleep.]
<pipework> Threads are still neat and relevant, imo.
geggam has quit [Ping timeout: 245 seconds]
<pipework> I mean, one should thread their reactors to handle connection load.
jfowler has joined #ruby
<pipework> Or have reactors per core on a thread per core.
<havenwood> forked processes with threads each running an reactor
dc___ has joined #ruby
<havenwood> a reactor*
<havenwood> pipework: aye :)
sinkensabe has joined #ruby
<pipework> havenwood: I thought nodejs was a tongue in cheek joke when I first saw it.
<havenwood> pipework: i still think it's a way overly elaborate troll :P
dc__ has quit [Read error: Connection reset by peer]
<shevy> !
ghostmoth has joined #ruby
<shevy> someone summoned me
<shevy> what is happening here
<shevy> ok... you guys are talking about threads....
<shevy> :\
<shevy> :/
<pipework> "You mean you think you invented the reactor pattern, but you can only use a single core?" :(
<centrx> I think someone said something about PHP
<shevy> PHP is a scourge on the face of earth
<shevy> but TIOBE thinks otherwise
<havenwood> shevy: that's just because PHP also means Physician Health Program so their google rank is high
<centrx> Statisticians do it with 95% confidence
SilkFox_ has joined #ruby
<havenwood> shevy: TIOBE is also a sick joke
<pipework> TLS is keep secret from loving government komrades. Please no use this americanski softwares.
simplyaubs has joined #ruby
adamski2600 has joined #ruby
cirn0 has joined #ruby
phoo1234567 has quit [Quit: Leaving]
sinkensabe has quit [Ping timeout: 260 seconds]
<havenwood> shevy: but yeah, it's quite oddly popular
sevvie has joined #ruby
seamon has quit [Quit: Zzzzzzz]
sevvie has quit [Client Quit]
everett has quit [Ping timeout: 268 seconds]
aspires has quit []
rbenv has joined #ruby
simplyaubs has quit [Client Quit]
pietr0 has quit [Ping timeout: 246 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
xcv has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
cirn0 has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
goodenough has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
sectionme has joined #ruby
wjimenez_ has joined #ruby
kachi8 has quit [Remote host closed the connection]
gtc has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
gtc has quit [Client Quit]
j_mcnally has quit [Ping timeout: 245 seconds]
gtc has joined #ruby
sepp2k1 has joined #ruby
bruno- has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
JohnFord has joined #ruby
lw has joined #ruby
dmyers has joined #ruby
dmyers has quit [Excess Flood]
wjimenez5271 has quit [Ping timeout: 252 seconds]
dmyers has joined #ruby
fabrice31 has joined #ruby
kenne____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
wjimenez_ has quit [Ping timeout: 255 seconds]
keen________ has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
keen________ has joined #ruby
mkaesz has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
aspires has quit []
everett has joined #ruby
Scripore has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
Ulrike_Rayne has quit [Max SendQ exceeded]
ghostmoth has quit [Quit: ghostmoth]
Ulrike_Rayne has joined #ruby
zeroNones has joined #ruby
pu22l3r has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
sevvie has joined #ruby
testcore has quit [Quit: BitchX: try our low-fat flavor too!]
babykosh has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
kirun has quit [Quit: Client exiting]
Spami has joined #ruby
hiyosi has joined #ruby
Spami has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 246 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
aspires has quit [Client Quit]
atmosx has quit [Quit: Lost in trance]
sectionme has quit [Ping timeout: 276 seconds]
hiyosi has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
jmbrown412 has quit [Remote host closed the connection]
coreycondardo has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
icarus has quit [Remote host closed the connection]
Azure has joined #ruby
albedoa has joined #ruby
mocfive has quit [Remote host closed the connection]
crdprink2 has quit [Quit: q term]
mocfive has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
babykosh has quit [Quit: babykosh]
InhalingPixels has joined #ruby
marr has quit [Ping timeout: 268 seconds]
hiyosi has joined #ruby
Bumptious has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
sparrovv has joined #ruby
mocfive has quit [Ping timeout: 276 seconds]
kaspergrubbe has quit [Remote host closed the connection]
shock_one___ has quit [Quit: Computer has gone to sleep.]
RedDeath has joined #ruby
RedDeath has left #ruby ["Pierdem vremea cautand partenerul perfect, in loc sa incercam sa facem dragoste perfect."]
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
skysploit has joined #ruby
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
emmesswhy has quit [Quit: This computer has gone to sleep]
sparrovv has quit [Ping timeout: 272 seconds]
niklasb_ has quit [Ping timeout: 245 seconds]
goleldar has quit [Ping timeout: 264 seconds]
Scotteh_ has joined #ruby
Spleeze has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby
mocfive has joined #ruby
Scotteh has quit [Ping timeout: 252 seconds]
jobewan has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
djbkd has joined #ruby
lemur has joined #ruby
JohnFord has quit [Ping timeout: 240 seconds]
seamon has joined #ruby
GinoMan has joined #ruby
banjara has quit [Quit: Leaving.]
ghr has joined #ruby
Spleeze has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
jbw has quit [Ping timeout: 255 seconds]
lemur has quit [Ping timeout: 272 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
<pontiki>
melik has quit [Quit: Computer has gone to sleep.]
<shevy> well
<shevy> if ruby would have the focus on the web...
melik has joined #ruby
<pipework> If only.
<shevy> :(
ghr has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
jfowler has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Leaving...]
kenneth has joined #ruby
OffTheRails has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
SilkFox_ has joined #ruby
andrewjanssen has joined #ruby
melik has quit [Ping timeout: 255 seconds]
GinoMan has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
bruno- has joined #ruby
JohnFord has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Girakrok has joined #ruby
dc___ has quit [Remote host closed the connection]
jbw has joined #ruby
thumpba has quit []
io_syl_ has quit []
toastynerd has quit [Remote host closed the connection]
zeroNones has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
freerobby has joined #ruby
braincra- has joined #ruby
zeroNones has joined #ruby
mocfive has quit [Remote host closed the connection]
<pontiki> well, can sit around and talk about it, or make it so
emocakes has joined #ruby
sevvie has quit [Ping timeout: 276 seconds]
mocfive has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
pu22l3r has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
Scotteh_ has quit [Ping timeout: 245 seconds]
<shevy> nah
<shevy> you'd need to be the boss of a language
<pontiki> that isn't how it works
<pontiki> it's making it popular
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
farid_ has quit [Read error: Connection reset by peer]
troyready has quit [Ping timeout: 252 seconds]
mocfive has quit [Ping timeout: 272 seconds]
t_p has joined #ruby
JohnFord has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
pwh has quit []
<pipework> pontiki: Make it sew.
rklfn has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
luckyruby has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 255 seconds]
rockdon_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
jerius has joined #ruby
wallerdev has quit [Quit: wallerdev]
sevvie has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
_maes_ has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
vinleod has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
bmurt has joined #ruby
thomasxie has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
ftj has joined #ruby
reset has quit [Ping timeout: 252 seconds]
bmurt has quit [Ping timeout: 268 seconds]
Wolland has quit [Ping timeout: 252 seconds]
virtualize has quit []
<tejas-manohar> anyone worked with sinatra?
<havenwood> tejas-manohar: it's quite popular. there's a #sinatra channel even
<tejas-manohar> havenwood: yeah no one responded there
<havenwood> tejas-manohar: don't ask to ask just ask
<pipework> tejas-manohar: Feel free to always just pose your questions.
<tejas-manohar> havenwood: im trying to catch the params sent back from yoauth
<tejas-manohar> " On success, we'll return them to your site with a GET parameter called yoauth_token"
<tejas-manohar> so if I set the url to GET as localhost:3000/e
agjacome has quit [Quit: leaving]
<tejas-manohar> I guess the token will come like localhost:3000/e?yoauth_token=xxxxx
<tejas-manohar> havenwood: how do I catch that in sinatra?
<tejas-manohar> havenwood: here's what i have right now http://pastebin.com/mSpXp8Ve
<pipework> tejas-manohar: look at the params object.
<tejas-manohar> ive been catching like /e/:username
<tejas-manohar> but i dont think thats right for this
gccostabr has quit [Quit: ZZZzzz…]
JoshGlzBrk has joined #ruby
<tejas-manohar> pipework: so like request["some_param"]?
<tejas-manohar> on get '/e'
<tejas-manohar> http://www.sinatrarb.com/intro.html#Accessing%20the%20Request%20Object
<tejas-manohar> is how im understanding this
zeroNones has joined #ruby
<pipework> tejas-manohar: Are you familiar with pry?
<pipework> upi dpm
<pipework> You don't need the request object, you have the params object.
<pipework> If someone's posting urlencoded data to you, then you use the request.body
<pipework> And even then, I'm pretty sure sinatra puts that in the params too.
<tejas-manohar> pipework: so just get '/e' and params[:yoauth_token]
<tejas-manohar> oh
<pipework> tejas-manohar: Give it a try.
rklfn has quit [Ping timeout: 264 seconds]
<pipework> You can introspect the params object.
<tejas-manohar> Sure
<centrx> >> Object.new.introspect
<eval-in____> centrx => undefined method `introspect' for #<Object:0x415a1d74> (NoMethodError) ... (https://eval.in/189158)
nitin_ has quit [Quit: Leaving]
<centrx> ^ Feature request
ixti has quit [Quit: WeeChat 0.4.3]
<tejas-manohar> pipework: worked!
<tejas-manohar> params
modernbob has quit []
Sht0 has joined #ruby
<pipework> >> Object.new.inspect
<eval-in____> pipework => "#<Object:0x40915da8>" (https://eval.in/189159)
tlarevo has joined #ruby
<tejas-manohar> pipework: is ruby popular outside of web stuff and command line scripts for simple tasks?
<pipework> >> Object.instance_eval { alias_method :introspect, :inspect }; Object.new.introspect
<eval-in____> pipework => "#<Object:0x41259be4>" (https://eval.in/189160)
<pipework> centrx: ^
<pipework> tejas-manohar: Well, yeah it totally is. However, sometimes there are tools for command line scripting that are more expressive.
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<pipework> I guess I coulda just used send, but eval gives me a nerdon.
<tejas-manohar> pipework:: ah
<tejas-manohar> pipework: but are there like gui apps (like popular ones) built in ruby
seamon has quit [Quit: Zzzzzzz]
<tejas-manohar> or is it not for that kinda stuf
Lewix has joined #ruby
<pipework> tejas-manohar: None that I'm aware of.
tjr9898 has joined #ruby
<pipework> The ruby community seems to barely keep up on the graphical desktop application front.
charliesome has joined #ruby
<centrx> pipework, k, deploying now
<pipework> Though there is word that people are actually using ruby motion.
yfeldblum has joined #ruby
<tejas-manohar> pipework: alrighty
<pipework> centrx: Get it to production right miaow.
<tejas-manohar> so other than web stuff, what are some examples of other things in ruby
gtc has quit [Quit: kill -9 gtc]
<pipework> tejas-manohar: Well, there's lotsa stuff. Chef and puppet are both written in ruby.
joelbrewer has quit [Quit: Lost terminal]
<tejas-manohar> ah ok
<pipework> Rake and other things exist.
<pipework> I mean, it's a huge ecosystem, we just have our proficiencies and preferences.
spastorino has quit [Quit: Connection closed for inactivity]
maletor_ has joined #ruby
7F1AA52T9 has joined #ruby
gtc has joined #ruby
bricker`LA has joined #ruby
gccostabr has joined #ruby
<tejas-manohar> pipework: whats the best way to ping a url to request json from it in ruby? just a simple GET?
<pipework> tejas-manohar: Well, it depends. If it's exceedingly simple, you might want to go with stdlib net/http.
<pipework> tejas-manohar: However, if you'd like, my favorite http gem is called faraday.
<pipework> Pretty awesome gem, that one.
pwh has joined #ruby
<tejas-manohar> pipework: alrighty, ill check that one out soon but this is exceedinly simple so ill go with net http
bruno- has joined #ruby
<pipework> tejas-manohar: Good man, woman, or thing.
jottr has quit [Ping timeout: 255 seconds]
<tejas-manohar> pipework: net http is a part of ruby now right
<tejas-manohar> no need to gem install it?
<tejas-manohar> or bundle
fabrice31 has joined #ruby
<pipework> tejas-manohar: correct.
<pipework> It's standard library. Ships with the ruby.
goodenough has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
Takle has joined #ruby
melik has joined #ruby
<tejas-manohar> pipework: whats really the difference between getting with uri and standard get
<tejas-manohar> isnt it just concatenating example.com and /index.html
<tejas-manohar> in the end?
rockdon_ is now known as rockdon|away
rockdon|away is now known as rockdon_
bruno- has quit [Ping timeout: 240 seconds]
rockdon_ is now known as rockdon|away
<tejas-manohar> dont see a difference
cirn0 has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
coreycondardo_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
<pipework> tejas-manohar: I don't know the specifics, honestly. But if you're doing a simple GET, use OpenURI.
ghost2061 has joined #ruby
coreycondardo has quit [Ping timeout: 246 seconds]
coreycondardo_ is now known as coreycondardo
SouL_ has quit [Ping timeout: 260 seconds]
rockdon|away is now known as rockdon_
djbkd has quit [Quit: My people need me...]
Takle has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
coreycondardo has quit [Client Quit]
ghost2060 has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
crdpink has joined #ruby
mkaesz has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
cirn0 has quit [Ping timeout: 246 seconds]
dc__ has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
dc__ has quit [Client Quit]
mocfive has joined #ruby
coreycondardo has joined #ruby
goodenough has joined #ruby
RandyT has quit [Ping timeout: 276 seconds]
<CorySimmons> Can anyone help a newb like me make a SCSS gem?
ghost2061 has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 245 seconds]
goodenough has quit [Remote host closed the connection]
RandyT has joined #ruby
wallerdev has joined #ruby
rezzack1 has joined #ruby
JohnFord has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
<tejas-manohar> havenwood: dont see an adv of openuri
<tejas-manohar> for just a simple GET
tjr9898 has quit [Remote host closed the connection]
<tejas-manohar> im just grabbing the json
<tejas-manohar> havenwood: like so http://bpaste.net/show/9bc722c4d12e
tjr9898 has joined #ruby
avita1 has joined #ruby
rezzack1 has quit [Client Quit]
rezzack has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
<tejas-manohar> works
patrick99e99 has joined #ruby
diegoviola has joined #ruby
JohnFord has quit [Read error: No route to host]
maletor_ has quit [Quit: Computer has gone to sleep.]
JohnFord has joined #ruby
gtc has quit [Quit: kill -9 gtc]
havenwood has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
emocakes has quit []
luckyruby has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
rklfn has joined #ruby
CaptainJet has quit [Ping timeout: 276 seconds]
piglet has joined #ruby
piglet has quit [Client Quit]
mary5030 has joined #ruby
<tejas-manohar> how do i extra yo_username out of json formatted like {"status"=>"OK", "id"=>"NJXrLYXFV1yv0kX82sc15srGgsISHRau1d4xZnpIrkLa74c", "user"=>{"id"=>"87b20967-ddc6-4259-b08a-565974a0e99f", "yo_username"=>"BILAWALHAMEED"}}
<tejas-manohar> using json gem
<centrx> JSON.parse(str) returns your JSON-formatted object which is a hash
sparrovv has joined #ruby
_cake has joined #ruby
omosoj has quit [Quit: Leaving]
sevvie has joined #ruby
<CorySimmons> is there a ruby jobs room?
mattmcclure has quit [Quit: Connection closed for inactivity]
<CorySimmons> for paying for someone to make something small for me?
havenwood has joined #ruby
coreycondardo has quit [Quit: coreycondardo]
<centrx> CorySimmons, never heard of one, no
<centrx> CorySimmons, Also FYI more people are around during weekday daytime (America/Europe)
<CorySimmons> meh, offering $50 to someone to build a simple gem that will load some scss files into vendor/assets/stylesheets/foo
thumpba has joined #ruby
<centrx> sorry I don't know about those things off the top of my head
sparrovv has quit [Ping timeout: 272 seconds]
adamski2600 has quit [Remote host closed the connection]
<jhass> CorySimmons: have you seen rails-assets.org?
<CorySimmons> jhass: No, looking now
adamski2600 has joined #ruby
pwh has quit []
tlarevo_ has joined #ruby
tlarevo has quit [Ping timeout: 252 seconds]
deric_skibotn has joined #ruby
<CorySimmons> Wow looks simply
<CorySimmons> *simple
adamski2600 has quit [Ping timeout: 245 seconds]
radic has joined #ruby
freerobby has quit [Quit: Leaving.]
avita1 has quit [Quit: Leaving.]
kotk has joined #ruby
felixjet__ has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
skysploit has quit []
InhalingPixels has quit [Remote host closed the connection]
tkuchiki has joined #ruby
arup_r has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 268 seconds]
braincra- has quit [Quit: bye bye]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lampd1 has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
lampd1 has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
j_mcnally has joined #ruby
avita1 has joined #ruby
emmesswhy has joined #ruby
freerobby has joined #ruby
braincrash has joined #ruby
dc__ has joined #ruby
Girakrok has quit [Ping timeout: 276 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
Vile` has quit [Remote host closed the connection]
Wolland has joined #ruby
felixjet has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
zettam_ has quit [Read error: Connection reset by peer]
jbw has quit [Ping timeout: 246 seconds]
CorySimmons has quit [Quit: Zzz...]
Wolland has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
compo has joined #ruby
cajone has left #ruby [#ruby]
<tejas-manohar> pipework: ruby is having trouble with my env vars
JohnFord has quit [Ping timeout: 260 seconds]
<tejas-manohar> pipework: http://bpaste.net/show/a8de918f3656
<tejas-manohar> the redirect is going with YA_URL blank
<tejas-manohar> though i start server like FB_URL='https://veri-yo.firebaseio.com' FB_SECRET='xxxxxxxxxxxxx' YA_REDIRECT='http://localhost:4567' rerun 'ruby veriyo.rb'
<pipework> tejas-manohar: Have you used pry to make sure ENV['YA_URL'] is there?
<tejas-manohar> pipework: yeah its not for some reason
<tejas-manohar> thats what i was intending to put across
<pipework> Try passing the env vars with the command to start your application.
<tejas-manohar> ik its not there, i used puts and all
<pipework> Or exporting the env vars separately.
<tejas-manohar> FB_URL='https://veri-yo.firebaseio.com' FB_SECRET='...' YA_URL='http://localhost:4567' rerun 'ruby veriyo.rb'
<tejas-manohar> i do that
CorySimmons has joined #ruby
<pipework> tejas-manohar: That's two commands.
<pipework> Try one.
<tejas-manohar> ?
<tejas-manohar> FB_URL='https://veri-yo.firebaseio.com' FB_SECRET='...' YA_URL='http://localhost:4567' ruby veriyo.rb
<tejas-manohar> i tried that too
<pipework> tejas-manohar: Well, try using `export` with each of those variables first, then start the server.
<tejas-manohar> nevermind odd
<tejas-manohar> started working
<tejas-manohar> after terminal restart
pwh has joined #ruby
avita1 has quit [Quit: Leaving.]
<tejas-manohar> doesnt
<tejas-manohar> all the assets in <head></head> fail to load
<tejas-manohar> and 404 in chrome console
<tejas-manohar> its trying to go from /e/all the assets
<tejas-manohar> not out of the working directory
<tejas-manohar> doesnt make sense to me
<pipework> tejas-manohar: Those are relative to the public directory, yeah?
<tejas-manohar> pipework: yeah but how does index.erb work
<tejas-manohar> ha odd, ../
<tejas-manohar> bnefore this
<tejas-manohar> fixed it
<pipework> good deal.
avita1 has joined #ruby
<tejas-manohar> pipeworker: im redirecting to another site which i have 0 control over
<tejas-manohar> is there any way to make it write something in one of the textboxes
<tejas-manohar> as i redirect
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
<tejas-manohar> or should i just inspect network traffic on that site
<tejas-manohar> and try to send an http request
<tejas-manohar> directly
<tejas-manohar> with the content from my site
tkuchiki has quit [Remote host closed the connection]
jbw has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
gccostabr has quit [Quit: ZZZzzz…]
jalcine has joined #ruby
fold has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 252 seconds]
shock_one___ has joined #ruby
CorySimmons has quit [Quit: Bye!]
postmodern has quit [Quit: Leaving]
tobago has joined #ruby
yetanotherdave has joined #ruby
shock_one___ has quit [Ping timeout: 245 seconds]
yetanotherdave has quit [Client Quit]
ch0ke has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
JohnFord has joined #ruby
mjc__ has joined #ruby
bricker`LA has joined #ruby
fabrice31 has joined #ruby
diegoviola has joined #ruby
toastynerd has joined #ruby
emmesswhy has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
thams has joined #ruby
Channel6 has joined #ruby
InhalingPixels has joined #ruby
Lewix has quit [Remote host closed the connection]
jhass is now known as jhass|off
tejas-manohar has quit [Ping timeout: 246 seconds]
rockdon_ has joined #ruby
DEA7TH has quit [Remote host closed the connection]
lw has joined #ruby
Lewix has joined #ruby
crdprink2 has joined #ruby
toastynerd has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
rockdon_ is now known as rockdon|away
crdpink has quit [Ping timeout: 268 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
Obversity has quit [Ping timeout: 264 seconds]
cesarstafe has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
diegoviola has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
evansbee has joined #ruby
Wolland has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby
benzrf is now known as benzrf|offline
cirn0 has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 252 seconds]
mkaesz has quit [Ping timeout: 268 seconds]
deric_skibotn has quit [Ping timeout: 272 seconds]
fold has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: zzz]
lampd1|mobile has joined #ruby
fold has joined #ruby
{xenomorph} is now known as xenomorph
startupality has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
ruby-lang120 has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
compo has quit [Quit: Leaving]
melik has joined #ruby
rklfn has joined #ruby
rklfn has quit [Client Quit]
kireevco has joined #ruby
toastynerd has joined #ruby
charliesome has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
diegoviola has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
bjz has quit [Read error: Connection reset by peer]
bjz has joined #ruby
diegoviola has quit [Remote host closed the connection]
JohnFord has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest51295
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 245 seconds]
axsuul has quit [Read error: No route to host]
diegoviola has joined #ruby
Guest51295 has quit [Ping timeout: 252 seconds]
startupality has quit [Quit: startupality]
codeurge has quit [Quit: Quit.]
startupality has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Remote host closed the connection]
startupality has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 260 seconds]
astav has joined #ruby
fold has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
InhalingPixels has joined #ruby
sinkensabe has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
davedev24_ has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
SilkFox_ has joined #ruby
anaeem1 has joined #ruby
banjara has joined #ruby
io_syl has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Wolland has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
astav has quit [Quit: astav]
mkaesz has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
banjara1 has joined #ruby
banjara has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 240 seconds]
emocakes has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
lw has quit [Quit: s]
diegoviola has joined #ruby
x1337807x has joined #ruby
lw has joined #ruby
Morkel has joined #ruby
lw has quit [Client Quit]
lw has joined #ruby
davedev24_ has joined #ruby
pu22l3r has joined #ruby
hamakn has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
sinkensabe has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
eivindml has quit [Ping timeout: 252 seconds]
haroldwu is now known as acgtyrant_
eivindml has joined #ruby
acgtyrant_ is now known as haroldwu
pu22l3r has quit [Ping timeout: 252 seconds]
Meeh is now known as mikalv
luckyruby has joined #ruby
kireevco has quit [Quit: Leaving.]
sinkensabe has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
mferrier has joined #ruby
Scotteh has joined #ruby
dukz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Hanmac has quit [Remote host closed the connection]
mferrier has quit [Client Quit]
bruno- has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Scotteh has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
fabrice31 has joined #ruby
bjz has left #ruby ["Textual IRC Client: www.textualapp.com"]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
tvw has joined #ruby
User458764 has joined #ruby
sevenseacat has joined #ruby
adamski2600 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
virtualize has joined #ruby
adamski2600 has quit [Ping timeout: 264 seconds]
rockdon|away is now known as rockdon_
mjc__ has quit [Quit: Connection closed for inactivity]
JBreit has joined #ruby
cina has joined #ruby
InhalingPixels has joined #ruby
JBreit has left #ruby [#ruby]
diegoviola has quit [Quit: WeeChat 1.0]
Hanmac has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
SilkFox_ has joined #ruby
Channel6 has quit [Quit: Leaving]
Sht0 has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 246 seconds]
mijicd has joined #ruby
mr-foobar has joined #ruby
Wolland has joined #ruby
mkaesz has joined #ruby
diegoviola has quit [Remote host closed the connection]
cirn0 has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
rockdon_ is now known as rockdon|away
Wolland has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby
diegoviola has joined #ruby
mkaesz has quit [Ping timeout: 252 seconds]
cirn0 has quit [Ping timeout: 245 seconds]
mijicd has quit [Quit: leaving]
Zesty has joined #ruby
shock_one___ has joined #ruby
centrx has joined #ruby
codecop has joined #ruby
pu22l3r has joined #ruby
davedev2_ has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
starkhalo has quit [Ping timeout: 246 seconds]
pwh has quit []
tobago has quit [Remote host closed the connection]
Jackneill has joined #ruby
dphase- has joined #ruby
MasterPiece has joined #ruby
codecop has quit [Remote host closed the connection]
dphase has quit [Ping timeout: 240 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
kireevco has quit [Quit: Leaving.]
JohnFord has joined #ruby
ht__th has joined #ruby
Mon_Ouie has joined #ruby
luckyruby has quit [Remote host closed the connection]
Advocation has joined #ruby
JohnFord has quit [Ping timeout: 268 seconds]
robbyoconnor has joined #ruby
archy78 has joined #ruby
<archy78> Hi anyone used Dashing?
tkuchiki has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
arup_r has quit [Ping timeout: 240 seconds]
relix has joined #ruby
arup_r has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mollitz has joined #ruby
luckyruby has joined #ruby
skfax has joined #ruby
dukz has quit [Remote host closed the connection]
centrx has quit [Quit: Mead error: Connection reset by beer]
<skfax> Would anyone mind checking the codecadamy.com Ruby lesson "A Night at the Movies" 3/10. I can't seem to get it working. My program: http://pastebin.com/6Ps3GufK
dukz has joined #ruby
<skfax> codecademy*
zettam has joined #ruby
jeramyRR has joined #ruby
<jeramyRR> guys I have a stupid question about require ‘filename’
<jeramyRR> for some reason ruby is making me type require ‘./filename’ to work
InhalingPixels has joined #ruby
<jeramyRR> it’s giving me the following error: /Users/Jeramy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fizz_buzz (LoadError)
io_syl has quit []
<jeramyRR> any ideas why?
dukz has quit [Ping timeout: 260 seconds]
<archy78> anyone know how to use auth_key
<havenwood> jeramyRR: modern Rubies don't have '.' in $LOAD_PATH like 1.8 did
atmosx has joined #ruby
<havenwood> jeramyRR: they do have #require_relative
<archy78> i'm trying to update dashng but need to set auth_key in its config.ru i've got no idea on format
danijoo has quit [Read error: Connection reset by peer]
<atmosx> hello people
davedev2_ has quit [Ping timeout: 264 seconds]
danijoo has joined #ruby
<jeramyRR> havenwood: thanks, I’m looking that up right now
<skfax> Figured out my issue. Turns out the validator was just a bit strict, and commenting out the "puts 'Choice: '" made it work
<atmosx> I need to count connections calls to an API, how do I go about this? Every connection creates a new object, etc. do I use @@counter?
anaeem1_ has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
<jeramyRR> require_relative fixed it, thank you!
SilkFox_ has joined #ruby
diegoviola has joined #ruby
Wolland has joined #ruby
mkaesz has joined #ruby
<atmosx> archy78: configu.ru has str format iirc
SilkFox_ has quit [Ping timeout: 245 seconds]
<atmosx> configure do; set auth_key: 'blah-blah';end
archy78 has quit [Ping timeout: 246 seconds]
Wolland has quit [Ping timeout: 245 seconds]
mkaesz has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
io_syl has joined #ruby
x1337807x has joined #ruby
grenierm has joined #ruby
sameerynho has joined #ruby
<havenwood> atmosx: maybe observer pattern? i dunno: http://www.ruby-doc.org/stdlib-2.1.2/libdoc/observer/rdoc/Observable.html
<atmosx> I went with a simpler solution fonud at SO for now, just to wrap my head around it. I remember some examples of class insances doing this in Peter Cooper's book (IIRC)... I'll have a look at Observable too thanks
zmartAzz has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 268 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
grenierm has quit [Quit: grenierm]
io_syl has quit []
grenierm has joined #ruby
dukz has joined #ruby
fabrice31 has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
cina has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
sinkensabe has joined #ruby
mahtennek has joined #ruby
dcoxall has joined #ruby
dukz has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
klmlfl has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0]
klmlfl has joined #ruby
jbw has quit [Quit: Ex-Chat]
diegoviola has joined #ruby
<havenwood> atmosx: mm, simple is good ;)
<atmosx> yeap, now I need to implement a timer too. I have 100 calls per minute.. but most of my calls won't be counter the API supports a sort of call just to see if state of object has changd which not counted (and this is what I'm basically checking). Come tothink of it I should have start the othe rway around hehe
klmlfl has quit [Ping timeout: 260 seconds]
abuzze has joined #ruby
OffTheRails has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grenierm has quit [Quit: grenierm]
banjara1 has quit [Quit: Leaving.]
bMalum has quit [Ping timeout: 272 seconds]
cina has joined #ruby
abuzze has quit [Remote host closed the connection]
<arup_r> I wanted to know one thing as I found it here - http://guides.rubyonrails.org/action_controller_overview.html#accessing-the-session
sparrovv has joined #ruby
<arup_r> In the line @_current_user ||= session[:current_user_id] && .. Why the instance variable started with like @_ <~~~~ ?
<arup_r> Is this any convention ?
<arup_r> Why not @current_users ?
dukz has quit []
JohnFord has joined #ruby
<AmBienCeD> uhm
OffTheRails has quit [Ping timeout: 255 seconds]
<AmBienCeD> mostly because its protected or private var
<arup_r> I am not sure...
<Mon_Ouie> You should ask that in #rubyonrails. I have only seen things like that used e.g. when a module uses an ivar
<Mon_Ouie> Or for things like Delegator
<Mon_Ouie> (ivars are by definition all private)
<arup_r> It is a Ruby convention.. not I think related to Ruby on Rails
anaeem1_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<AmBienCeD> i am kinda sure
<AmBienCeD> used in php alot
bruno- has joined #ruby
cina has quit [Quit: leaving]
yfeldblum has quit [Remote host closed the connection]
<havenwood> arup_r: It is more a Rails idiom that has infected a handful of gems. :P
diegoviola has quit [Remote host closed the connection]
<arup_r> But instance vars are already private to the objects where they were defined
<havenwood> arup_r: Rails has its own idioms.
Kerber0s has joined #ruby
<arup_r> What the leading `_` is needed.. not sure
<AmBienCeD> its a convention
yfeldblum has joined #ruby
mkaesz has joined #ruby
<arup_r> havenwood: hehehe
<havenwood> a leading _ is a general programming convention, sure
JohnFord has quit [Ping timeout: 255 seconds]
<AmBienCeD> sometimes its a private / protected var thats been inherited
<AmBienCeD> so you know there's something going on with it
melik has joined #ruby
<Mon_Ouie> It's never needed, you can always remove it — the idea is "the more leading underscores there are, the less likely someone else already used that name!"
mahtennek has quit []
<arup_r> In Ruby instance variables not inhertis...
<havenwood> Mon_Ouie: good point
ringarin has joined #ruby
<havenwood> though seems preference is two __ before and after
<havenwood> protected is nasty
jeroenvisser101 has joined #ruby
<havenwood> i'm suspicious of class variables ;P
diegoviola has joined #ruby
avita1 has quit [Quit: Leaving.]
<Mon_Ouie> That one is more common for methods, it's also what uses it for (__id__, __send__)
ringaring has joined #ruby
<havenwood> ah, right - then just two in front form ivars
<havenwood> or one in rails' case
<AmBienCeD> protected vars are inherited btw
<havenwood> a grep of my gems shows chaos
<Mon_Ouie> It's not that instance variables are inherited, they're a property of an object, not of a class
<Mon_Ouie> (well a class has its own instance variables, but that wasn't the point)
<havenwood> AmBienCeD: I think not worth using. When you're tempted to good time to rethink design.
<havenwood> AmBienCeD: generally* >.>
InhalingPixels has joined #ruby
<AmBienCeD> havenwood: yeah, i would avoid using it. Unless absolutely necessary
ringarin has quit [Ping timeout: 268 seconds]
<atmosx> What do the '::' stand for in ::File.join(...) ?
<havenwood> atmosx: going out to top namespace
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> atmosx: so if you're in the Example class, you don't mean Example::File.join
cina has joined #ruby
Advocation has quit [Quit: Advocation]
InhalingPixels has quit [Ping timeout: 255 seconds]
<atmosx> I think I got it
<atmosx> but I need to use it a couple of times on my own
<atmosx> hm
mkaesz has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<atmosx> any reasons why foreman keeps leaving dump.rdb files in my root dir? Should I be worried or it's usual?!
SilkFox_ has joined #ruby
avita1 has joined #ruby
avita1 has quit [Client Quit]
eivindml has joined #ruby
Wolland has joined #ruby
JoshGlzBrk has joined #ruby
lampd1|mobile has quit [Quit: Bye]
Mon_Ouie has quit [Quit: WeeChat 1.0]
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
cirn0 has joined #ruby
tobyo has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: Lost in trance]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
ringaring has quit [Ping timeout: 268 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dphase- has quit [Read error: Connection reset by peer]
dphase has joined #ruby
cirn0 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
sigurding has joined #ruby
pu22l3r has joined #ruby
relix has joined #ruby
m8 has joined #ruby
Lewix has joined #ruby
ringarin has joined #ruby
patrick99e99 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
relix has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
JoshGlzBrk has quit [Ping timeout: 245 seconds]
caveat- has quit [Ping timeout: 268 seconds]
User458764 has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
tvw has quit []
Takle has joined #ruby
Juanchito has joined #ruby
qba73 has joined #ruby
GriffinH_ has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
LangeOortjes has joined #ruby
GriffinH_ has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
wallerdev has quit [Quit: wallerdev]
sigurding has quit [Quit: sigurding]
eivindml has joined #ruby
anaeem1 has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
hamakn has joined #ruby
thomasxie has quit [Ping timeout: 264 seconds]
jeroenvisser101 has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
jeroenvisser101 has joined #ruby
JohnFord has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.0]
JohnFord has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
sigurding has joined #ruby
_Kerber0s_ has joined #ruby
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby
arup_r has joined #ruby
Kerber0s has quit [Ping timeout: 276 seconds]
diegoviola has joined #ruby
dcoxall has quit []
Bumptious has quit [Remote host closed the connection]
melik has quit [Quit: Computer has gone to sleep.]
Bumptious has joined #ruby
kaspergrubbe has joined #ruby
dcoxall has joined #ruby
InhalingPixels has joined #ruby
spider-mario has joined #ruby
spider-mario has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
swartwulf has quit [Remote host closed the connection]
spider-mario has joined #ruby
InhalingPixels has quit [Ping timeout: 268 seconds]
jeroenvisser101 has quit [Read error: Connection reset by peer]
luckyruby has quit [Ping timeout: 264 seconds]
swartwulf has joined #ruby
jeroenvisser101 has joined #ruby
vinleod has joined #ruby
emocakes has quit []
io_syl has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
SilkFox_ has joined #ruby
Wolland has joined #ruby
sinkensa_ has joined #ruby
emocakes has joined #ruby
m8 has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mikecmpbll has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
Wolland has quit [Ping timeout: 272 seconds]
Mgdrt has joined #ruby
andrewlio has joined #ruby
Mgdrt is now known as aligundogdu
tlarevo has quit [Remote host closed the connection]
charliesome has joined #ruby
fabrice31 has joined #ruby
aligundogdu has quit [Client Quit]
cina has quit [Quit: leaving]
Advocation has joined #ruby
crdprink2 has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crdpink has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
atmosx has joined #ruby
eivindml has joined #ruby
poulet_a has joined #ruby
eivindml has quit [Max SendQ exceeded]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
sameerynho has quit [Ping timeout: 252 seconds]
eivindml has joined #ruby
Advocation has quit [Quit: Advocation]
eivindml has quit [Client Quit]
sameerynho has joined #ruby
dcoxall has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
threesixes has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
Ilyas has joined #ruby
goodenough has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
qba73_ has joined #ruby
qba73_ has quit [Remote host closed the connection]
qba73_ has joined #ruby
qba73_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
arup_r has joined #ruby
dideler has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
newsarpk92 has joined #ruby
<newsarpk92> hello
<newsarpk92> is this same as rubylang room?
sigurding has quit [Quit: sigurding]
<apeiros> newsarpk92: no. but the topic is the same.
<newsarpk92> I have a problem with a tutorial
<newsarpk92> can you help me?
hamakn has quit [Remote host closed the connection]
<apeiros> I'm don't have time right now. sorry.
<apeiros> s/I'm/I/
rdark has joined #ruby
Fire-Dragon-DoL has joined #ruby
JohnFord has joined #ruby
rklfn has joined #ruby
qualiabyte has quit [Quit: Leaving]
User458764 has quit [Ping timeout: 246 seconds]
<jhass> newsarpk92: wow, you're a pretty impatient person
JohnFord has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
Takle has quit [Remote host closed the connection]
cina has joined #ruby
sigurding has joined #ruby
rklfn has quit [Client Quit]
rklfn has joined #ruby
postmodern has joined #ruby
rklfn has quit [Client Quit]
_Kerber0s_ has quit [Remote host closed the connection]
io_syl has quit []
Kerber0s has joined #ruby
pagios has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
_Kerber0s_ has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
Scotteh has joined #ruby
workmad3 has joined #ruby
InhalingPixels has quit [Ping timeout: 264 seconds]
Kerber0s has quit [Ping timeout: 276 seconds]
ringarin has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
b1nd has quit [Ping timeout: 245 seconds]
intnsity has joined #ruby
mooru has joined #ruby
mkaesz has joined #ruby
agjacome has joined #ruby
SilkFox_ has joined #ruby
cesarstafe has joined #ruby
Wolland has joined #ruby
poulet_a has quit [Quit: Quitte]
ptrrr has joined #ruby
dangerousdave has joined #ruby
mkaesz has quit [Ping timeout: 252 seconds]
dmfranc has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
hellangel7 has joined #ruby
Wolland has quit [Ping timeout: 276 seconds]
b1nd has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
marr has joined #ruby
hellangel7 has joined #ruby
stef_204 has joined #ruby
tobyo has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
dcoxall has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
rbenv has quit [Quit: Textual IRC Client: www.textualapp.com]
mr-foobar has quit [Ping timeout: 260 seconds]
dcoxall has quit [Client Quit]
lkba has joined #ruby
patrick99e99 has quit [Ping timeout: 276 seconds]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
carraroj has joined #ruby
phoo1234567 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
Lewix has quit [Remote host closed the connection]
hellangel7 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
Ilyas has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
shredding has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hellangel7 has quit [Max SendQ exceeded]
adamski2600 has joined #ruby
thomasxie has joined #ruby
mijicd has joined #ruby
timonv_ has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
pedrojera has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
PersonX has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
mijicd has quit [Quit: leaving]
shredding has quit [Quit: shredding]
yfeldblum has quit [Ping timeout: 252 seconds]
PersonX has quit [Max SendQ exceeded]
vinleod has quit [Quit: Computer has gone to sleep.]
ch0ke has quit [Ping timeout: 260 seconds]
carraroj has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
sigurding has joined #ruby
JohnFord has joined #ruby
dmfranc has quit []
PersonX has joined #ruby
enriclluelles has joined #ruby
JohnFord has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
PersonX has quit [Max SendQ exceeded]
Takle has joined #ruby
hellangel7 has joined #ruby
nucatus has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
Lewix has joined #ruby
hellangel7 has joined #ruby
s|lverf0x has joined #ruby
sigurding has quit [Quit: sigurding]
hellangel7 has quit [Max SendQ exceeded]
InhalingPixels has joined #ruby
hellangel7 has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
hellangel7 has joined #ruby
goodenough has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
enriclluelles has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
hellangel7 has joined #ruby
SilkFox_ has joined #ruby
vinleod has joined #ruby
enriclluelles has joined #ruby
timonv_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 252 seconds]
skaflem has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
eivindml has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
cesarstafe has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 255 seconds]
hellangel7 has joined #ruby
Guest79344 has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
xenomorph has quit [Ping timeout: 260 seconds]
phrozen77 has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
relix has joined #ruby
bauruine has quit [Ping timeout: 260 seconds]
PersonX has joined #ruby
pu22l3r has joined #ruby
PersonX has quit [Max SendQ exceeded]
SpaceKookie has joined #ruby
nighter has quit [Ping timeout: 260 seconds]
phrozen77 has joined #ruby
timonv_ has joined #ruby
{xenomorph} has joined #ruby
nighter has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
bauruine has joined #ruby
User458764 has joined #ruby
m8 has joined #ruby
timonv_ has quit [Remote host closed the connection]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mr-foobar has joined #ruby
freerobby has joined #ruby
j416 has quit [Ping timeout: 246 seconds]
marcules has joined #ruby
<marcules> hi
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has quit [Ping timeout: 272 seconds]
SouL has joined #ruby
arup_r has joined #ruby
<jhass> hi
doodlehaus has joined #ruby
shredding has joined #ruby
PersonX has joined #ruby
<s|lverf0x> yo
mooru has joined #ruby
mooru has quit [Max SendQ exceeded]
Lewix has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
tkuchiki has quit [Remote host closed the connection]
<pontiki> yoyo
soulcake has joined #ruby
cina has quit [Quit: leaving]
cina has joined #ruby
mercwithamouth has joined #ruby
JohnFord has joined #ruby
doodlehaus has quit [Remote host closed the connection]
motto has joined #ruby
doodlehaus has joined #ruby
koderok has joined #ruby
m8 has quit [Ping timeout: 268 seconds]
pedrojera has left #ruby [#ruby]
sparrovv has quit [Remote host closed the connection]
<atmosx> I think, I've found a bug in the api I'm playing with... but I might be wrong.
<atmosx> rate-limit never goes under 99 heh
JohnFord has quit [Ping timeout: 276 seconds]
<atmosx> but on the other hand Etag is not implemented hm, so they might did it on purpose
<mostlybadfly> good morning
<atmosx> hello mostlybadfly
PersonX has quit [Remote host closed the connection]
kirun has joined #ruby
MasterPiece has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
j416 has joined #ruby
InhalingPixels has joined #ruby
j416_ has joined #ruby
timonv_ has joined #ruby
freerobby has quit [Quit: Leaving.]
cina has quit [Quit: leaving]
Davedo has quit [Ping timeout: 240 seconds]
SouL has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
j416 has quit [Ping timeout: 268 seconds]
freerobby has quit [Client Quit]
OffTheRails has joined #ruby
danijoo_ has joined #ruby
j416__ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Davedo has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
fold has joined #ruby
j416_ has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
<mostlybadfly> atmosx: your nick looks familiar to me but i'm not sure from where, maybe you just helped me before. either way hello :P
<atmosx> :-) okay Daniel
PersonX has joined #ruby
SilkFox_ has joined #ruby
<shevy> atmosx reminds me of atomos
j416__ is now known as j416
startupality has joined #ruby
<atmosx> atomos.. hm a fraction or fragment.
Wolland has quit [Ping timeout: 255 seconds]
<atmosx> of something, as opposite to a couple. The ancient Greeks were weird
coderhs has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
enriclluelles has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
SilkFox_ has quit [Ping timeout: 252 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
skfax has quit [Quit: Page closed]
mikecmpbll has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
Nemin32 has joined #ruby
patrick99e99 has joined #ruby
<Nemin32> Hello!
<waxjar> hello
<Nemin32> Can someone please help me? I have problem with my code.
drPoggs has quit [Quit: +++ATH]
sevenseacat has quit [Quit: Leaving.]
<Nemin32> I need to read a file (line-by-line) then put it into a 2D array.
<waxjar> is this a big file you need to read?
<Nemin32> No
<Nemin32> Here is my code
<Nemin32> Its only 5 lines
<apeiros> input/expected output would be helpful
<Nemin32> Oh
<apeiros> also, @size_of_array. more readable.
pu22l3r has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
<Nemin32> Expected output: return @map_array, Input: map = "Some .txt file", Got output: undefined method `[]=' for nil:NilClass (NoMethodError)
<apeiros> Nemin32: eh, that's not what I consider an example of the expected output :-p
<Nemin32> Oh sorry
andrewjanssen has joined #ruby
<apeiros> neither the input
<apeiros> the filename tells me *zero* about its content.
patrick99e99 has quit [Ping timeout: 276 seconds]
hrrz has joined #ruby
<waxjar> What should your array look like? What does the file look like?
<Nemin32> Alright
<Nemin32> #######
<Nemin32> #.....#
yeticry has joined #ruby
<Nemin32> #.....#
<apeiros> …
pu22l3r has quit [Read error: Connection reset by peer]
<Nemin32> #.....#
<apeiros> gist/pastebin
ndrei has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
<hrrz> hey guys, i'm a ruby developer, with rails background. There are many talks about new way of building web application through API and a separated client side. How would you recommend me to build my next web application?
<Nemin32> this is my input text
<atmosx> I think that's the 5th time I have to modify my models :-( it's insane.
<apeiros> Nemin32: ok. and what would the returned array look like for that text?
<hrrz> I am up for learning new technologies and approaches.
pu22l3r_ has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<Nemin32> apeiros: Like this http://pastebin.com/PQAG4spQ
<atmosx> hrrz: maybe buying a book will help you
<atmosx> I mean, will be better
adamski2600 has quit [Remote host closed the connection]
<apeiros> Nemin32: I assume the values in the inner arrays are supposed to be strings?
<hrrz> atmosx what book
<Nemin32> Yes
andrewjanssen has quit [Client Quit]
<apeiros> Nemin32: other than that - this is what a complete question looks like. example input, output and current code
adamski2600 has joined #ruby
<waxjar> Nemin32: why do you want to put every line in a one-element array?
<pontiki> it looks like a setup for Game of Life, for example
<apeiros> Nemin32: your example output looks different from what your code seems to generate, though
<atmosx> hrrz: depends on what you wanna do
<Nemin32> Oh, well, i made it wrong
<hrrz> atmosx: "hey guys, i'm a ruby developer, with rails background. There are many talks about new way of building web application through API and a separated client side. How would you recommend me to build my next web application?"
thomasxie has left #ruby [#ruby]
<Nemin32> Sorry, i wanted that i can reach like array [2][2] and it would be like: a dot or a #
cirn0 has joined #ruby
<apeiros> Nemin32: your example output you can create like this: return File.readlines(path).map { |line| [line.chomp] }
<waxjar> Ah ok. File.read("file").lines.map { |line| line.chars } then
<apeiros> waxjar: string has [] just fine too :)
<waxjar> ooh, readlines even
JohnFord has joined #ruby
pu22l3r has joined #ruby
<waxjar> good point
pu22l3r_ has quit [Read error: Connection reset by peer]
<waxjar> no need to put it in an Array then though
<apeiros> waxjar: well, I gave him what he said he wanted in the example output
<apeiros> Nemin32: IMO your example output is wrong.
<Nemin32> Surely...
<Nemin32> I should rewrite my code
<Nemin32> Its a mess now
<waxjar> you either wanted ["###", ...] or [["#", "#", "#"], ...]
<apeiros> single element array makes no sense to me. I guess you meant ["######", "# #", …],
<apeiros> yeah
<apeiros> if so, then just: File.readlines(path).map(&:chomp)
<Nemin32> Waxjar: Yes! Your second array
<apeiros> I wish there was a newline dropping readlines
<apeiros> Nemin32: notice:
<apeiros> >> map = ["foo", "bar"]; map[0][0]
<eval-in____> apeiros => "f" (https://eval.in/189296)
adamski2600 has quit [Ping timeout: 268 seconds]
<apeiros> String has [] method too.
cirn0 has quit [Ping timeout: 240 seconds]
<Nemin32> Oh yes its beginning to work!
<Nemin32> Thanks
<hrrz> atmosx: excellent
<Nemin32> Apeiros and Waxjar, thank you very much, my array finally shows up as i expected :)
ptierno has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 245 seconds]
ptierno has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
shredding has quit [Quit: shredding]
tkuchiki has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
pu22l3r has joined #ruby
adamski2600 has joined #ruby
pu22l3r_ has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<Nemin32> Well, my only problem is now that i cant change values inside the array...
workmad3 has joined #ruby
SouL has joined #ruby
spastorino has joined #ruby
sectionme has joined #ruby
adamski2600 has quit [Client Quit]
PersonX has joined #ruby
<waxjar> of course you can
hellangel7 has quit [Remote host closed the connection]
blacks0ul has joined #ruby
<apeiros> maybe his hands are tied and he can't free himself?
<Nemin32> Here is my code, would you please tell me why my ChangeTile function does not work?
AlexRussia has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
Takle has joined #ruby
ptrrr has quit [Quit: ptrrr]
<Hanmac> hihihi Symbol does have [] too ;P
hsps_ has joined #ruby
PersonX has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
claymore has joined #ruby
ghost2060 has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<apeiros> Nemin32: just like that
<apeiros> >> tiles = ["hello", "world"]; tiles[0][1] = "X"; tiles
<eval-in____> apeiros => ["hXllo", "world"] (https://eval.in/189303)
<apeiros> just that you have your x & y the wrong way round
<apeiros> Nemin32: note that ruby convention is e.g. update_map instead of UpdateMap
arup_r has quit [Read error: Connection reset by peer]
<Nemin32> Alright, thanks, im trying it out now.
fabrice31 has quit [Ping timeout: 276 seconds]
sameerynho has quit [Quit: Leaving]
<AlexRussia> apeiros, i really like, ruby use update_map instead of UpdateMap, its more readable for me :)
amundj has joined #ruby
yeboot has joined #ruby
amundj has quit [Client Quit]
workmad3 has quit [Ping timeout: 272 seconds]
InhalingPixels has joined #ruby
<yeboot> does require ever work directly with .so (shared library) files? I'm trying to figure out what to put in my require command after I installed a library through my package manager (debian)
zeroNones has joined #ruby
<yeboot> and I don't see any .rb files in the package
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yeboot: should work if the .so is a Ruby C ext
arup_r has joined #ruby
<Nemin32> My, my its fabolous.
carraroj has joined #ruby
<Nemin32> Thanks
<yeboot> jhass I think it is, there's just no documentation, which is frustrating. https://packages.debian.org/wheezy/amd64/libroot-bindings-ruby5.34/filelist
<yeboot> also libroot-bindings-ruby-dev
<jhass> eh, that doesn't look like it's in any search path
<jhass> maybe that are bindings for ruby in libroot( whatever that is) ?
InhalingPixels has quit [Ping timeout: 240 seconds]
dcoxall has joined #ruby
<Nemin32> Wohoo, its working with Curses too :)
Fire-Dragon-DoL1 has joined #ruby
<jhass> yeboot: yeah description sounds like you have to bootstrap from ROOT, not from Ruby
<yeboot> jhass: I figured it out, for some reason it names itself libRuby
<yeboot> seems like a rather terrible name for a library
<jhass> mmh, yeah
<jhass> interesting that it even finds it in that place
SilkFox_ has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<apeiros> yeboot: indeed a rather bad name
PersonX has joined #ruby
davedev24_ has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
zmartAzz has joined #ruby
lkba has quit [Read error: Connection reset by peer]
supperman has joined #ruby
PersonX has joined #ruby
nucatus has quit [Remote host closed the connection]
sepp2k has joined #ruby
nucatus has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has joined #ruby
freerobby has joined #ruby
kristofferR has joined #ruby
<AlexRussia> yeboot, if its not secret, where you use ROOT?Its seems interesting...
<wasamasa> scientists don't really care about clean code :P
Panicky has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
<AlexRussia> wasamasa, @_@
nucatus has quit [Ping timeout: 255 seconds]
Takle has quit []
enriclluelles has joined #ruby
Takle has joined #ruby
<yeboot> it's not a secret, really, I was looking at the source of some math stuff and ROOT seemed to have appropriate header files, so I just started taking a look, and noticed they (ROOT's documentation) claimed one could use it in ruby, which led me here
<yeboot> when it didn't seem right
SilkFox_ has quit [Ping timeout: 245 seconds]
<Nemin32> Ok, bye guys thanks fdo
<Nemin32> for help
Nemin32 has quit [Quit: Page closed]
Hanmac has joined #ruby
hrrz has quit [Quit: hrrz]
doodlehaus has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
JohnFord has quit [Ping timeout: 252 seconds]
utkukaynar has joined #ruby
koderok has quit [Ping timeout: 268 seconds]
britneywright has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one___ has quit [Ping timeout: 240 seconds]
ghost2060 has quit [Ping timeout: 260 seconds]
PersonX has joined #ruby
<AlexRussia> yeboot, i see this framework could works with many data, then you use it for sort your math stuff? @_@
utkukaynar has left #ruby [#ruby]
sparrovv has joined #ruby
shevy has quit [Quit: ""]
enriclluelles has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
PersonX has quit [Read error: Connection reset by peer]
_Kerber0s_ has quit [Remote host closed the connection]
hamakn has joined #ruby
Kerber0s has joined #ruby
Imofftopic has joined #ruby
<Imofftopic> hit
<Imofftopic> hi*
<Imofftopic> Is it okay if I ask some noob questions?
freerobby has quit [Quit: Leaving.]
PersonX has joined #ruby
dcoxall has quit []
<Hanmac> i dont see why not, the only thing we dont like is to ask if questions can be ask
iamjarvo has joined #ruby
PersonX has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 268 seconds]
<Imofftopic> Okay. So is ruby basically only for web usage?
<canton7> nope
hamakn has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
cesarstafe has joined #ruby
<canton7> I use it for all of the little random tools, scripts, projects, munging, etc, that some people use python or bash for
Kerber0s has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL has joined #ruby
<wasamasa> Imofftopic: why should it be?
<wasamasa> Imofftopic: just because rails once made the most news?
<Imofftopic> wasamasa: thats why i said noob question first. I know very little about ruby if i'm completely honest.
mollitz has quit [Ping timeout: 268 seconds]
pwh has joined #ruby
<AlexRussia> Imofftopic, its the general-oriented PL, you can do here anything what you want....And we have -cookies- gems!
Fire-Dragon-DoL1 has quit [Ping timeout: 268 seconds]
<Imofftopic> Okay so I can make random GUI tools as well?
<wasamasa> Imofftopic: I'm just encouraging you to think logically about it, that's all :P
<AlexRussia> Imofftopic, i mean to say, its of course OOP language etc etc, but its very very extensible
<wasamasa> also, yes
<AlexRussia> Imofftopic, ofc, just you should know what gui library you want to use( we probability have many bindings)
<Imofftopic> okay
<AlexRussia> Imofftopic, like Tk, Qt, GTK+ etc etc
<Imofftopic> probably gtk+
PersonX has joined #ruby
<AlexRussia> Imofftopic, f.e. we have gtk2 https://rubygems.org/gems/gtk2
<wasamasa> again, why shouldn't you be able to do that?
<AlexRussia> Imofftopic, gtk3 https://rubygems.org/gems/gtk3
Blizzy has quit [Read error: Connection reset by peer]
<AlexRussia> Imofftopic, just search it! https://rubygems.org/search?query=gtk
yeboot has quit [Ping timeout: 240 seconds]
fold has quit [Ping timeout: 255 seconds]
<AlexRussia> wasamasa, sorry, to do what? @_@
timonv_ has joined #ruby
<AlexRussia> Imofftopic, so, man, do you already know Ruby or you just look around to understand need you learn it or no?
mary5030 has joined #ruby
sectionme has joined #ruby
<Imofftopic> I'm looking to learn a new language
<AlexRussia> Imofftopic, and what system you are use? @_@
<Imofftopic> I came in here to find out about ruby
<Imofftopic> Linux
<AlexRussia> Imofftopic, its good
<AlexRussia> Imofftopic, did you was here? https://www.ruby-lang.org/en/
<Imofftopic> simplicity and productivity. Two words I like to hear
supperman has quit [Quit: Page closed]
<AlexRussia> Imofftopic, then you came in right place i think ;)
<Imofftopic> :)
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<AlexRussia> Imofftopic, i could make little overview ruby in pm, i just don't want make spam here :)
<AlexRussia> Imofftopic, pm == private messages
<Imofftopic> Okay yea
blacks0ul has quit [Remote host closed the connection]
Kerber0s has joined #ruby
sectionme has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby
InhalingPixels has joined #ruby
rdark has quit [Quit: leaving]
hellangel7 has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
PersonX has quit [Remote host closed the connection]
MasterPiece has joined #ruby
DEA7TH has joined #ruby
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
Fire-Dragon-DoL has joined #ruby
tjr9898 has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
astav has joined #ruby
PersonX has joined #ruby
fold has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
benzrf|offline is now known as benzrf
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Ping timeout: 276 seconds]
orolo has joined #ruby
_Kerber0s_ has joined #ruby
Kerber0s has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
jimms has joined #ruby
orolo has quit [Client Quit]
bruno- has joined #ruby
hamakn has joined #ruby
ag95 has joined #ruby
FarlaTux has joined #ruby
PHP4Ever has joined #ruby
oo_ has joined #ruby
Dev-Gitter has joined #ruby
dangerousdave has joined #ruby
Dev-Gitter has quit [Max SendQ exceeded]
FarlaTux has quit [Max SendQ exceeded]
Dev-Gitter has joined #ruby
geggam has joined #ruby
FarlaTux has joined #ruby
FarlaTux has quit [Max SendQ exceeded]
FarlaTux has joined #ruby
Dev-Gitter has quit [Client Quit]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
FarlaTux has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
FarlaTux has joined #ruby
PHP4Ever has joined #ruby
Dev-Gitter has joined #ruby
e4xit has quit [Quit: Right I'm out!]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zmartAway has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
simoz1111117 has joined #ruby
Dev-Gitter has quit [Max SendQ exceeded]
yacks has quit [Read error: Connection reset by peer]
Dev-Gitter has joined #ruby
zmartAzz has quit [Ping timeout: 246 seconds]
io_syl has quit []
PersonX has quit [Remote host closed the connection]
drPoggs has joined #ruby
geeky-sh has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
18VAAT2X4 has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
jzigmund has quit [Ping timeout: 255 seconds]
PersonX has joined #ruby
yacks has joined #ruby
luckyruby has joined #ruby
fabrice31 has joined #ruby
cajone has joined #ruby
geeky-sh has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 260 seconds]
PersonX has quit [Read error: Connection reset by peer]
ndrei_ has joined #ruby
lsmola_ has joined #ruby
cesarstafe has quit [Ping timeout: 268 seconds]
jzigmund has joined #ruby
bMalum has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 260 seconds]
astav has quit [Quit: astav]
PersonX has joined #ruby
claymore has joined #ruby
7F1AA52T9 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
ghost2060 has joined #ruby
linojon has joined #ruby
Advocation has joined #ruby
shevy has joined #ruby
TorpedoSkyline has joined #ruby
iamjarvo has joined #ruby
oo_ has quit [Remote host closed the connection]
compo has joined #ruby
jottr has joined #ruby
<SpaceKookie> Is there a way to break the first part of that if statement into multiple lines or should I just use the classic if-else statement instead? http://pastebin.com/fPzZHSwN
ghost2060 has quit [Ping timeout: 245 seconds]
<Kilo`byte> i have a question
<benzrf> Kilo`byte: so ask it
<Kilo`byte> how can i best read binary data from a ruby socket
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
Advocation has quit [Quit: Advocation]
<Kilo`byte> like, i have a byte value followed by a 32 bit integer
<Kilo`byte> now i want to read those into two numbers
<Kilo`byte> (big endian)
ndrei_ has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
butblack has joined #ruby
rockdon|away is now known as rockdon_
Fire-Dragon-DoL has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
simoz1111117 has quit [Ping timeout: 240 seconds]
<benzrf> probably unpack
<benzrf> or some thing
<Kilo`byte> oh right
<Kilo`byte> forgot about unpack
Fire-Dragon-DoL1 has quit [Ping timeout: 276 seconds]
InhalingPixels has quit [Ping timeout: 245 seconds]
jyuan has joined #ruby
compo has quit [Quit: Leaving]
bMalum has quit [Ping timeout: 268 seconds]
compo has joined #ruby
mary5030 has joined #ruby
<jhass> SpaceKookie: don't use ternary for side effects, only use it if you're interested in the return value
<jhass> SpaceKookie: Don't use ; in real code, use newlines
<jhass> SpaceKookie: and make really sure you want to use @@class_variables
DEA7TH has quit [Ping timeout: 264 seconds]
<jhass> in summary, that looks like code golfing to me
goodenough has joined #ruby
<jhass> also == nil checks are redundant unless false is a valid value and then most people prefer .nil?
havenwood has joined #ruby
<Kilo`byte> gah, binary protocol stuff with ruby is a pain
<wasamasa> Kilo`byte: I've seen a gem for this recently
* Kilo`byte checks rubygems
<Kilo`byte> link
<Kilo`byte> :)
geeky-sh has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
MasterPiece has quit [Remote host closed the connection]
shevy has quit [Remote host closed the connection]
<Kilo`byte> wasamasa: you saved my sanity
<Kilo`byte> :D
compo has quit [Quit: Leaving]
<wasamasa> np
Imofftopic has quit [Remote host closed the connection]
compo has joined #ruby
<wasamasa> you see, I write some ruby code here and there at work, cursing about the imperative and repetitive parts
lxsameer has joined #ruby
<wasamasa> then I see gems like these and feel there is some hope
<wasamasa> didn't try it yet though
<lxsameer> hey guys, I'm looking for a place to upload my gem docs, any suggestion ?
ndrei has joined #ruby
<wasamasa> the github wiki?
Takle has quit [Remote host closed the connection]
Heartbroken has quit [Ping timeout: 272 seconds]
<SpaceKookie> jhass: I've already it in a normal if-else. And the @@class_variables are a singleton pattern. Don't pee your pants.
lw has quit [Quit: s]
<wasamasa> jhass is the last person in here I'd expect to ever pee their pants
<jhass> SpaceKookie: you like want a class instance variable for that (or just use singleton stdlib)
<jhass> *likely
shelling_ has joined #ruby
<jhass> SpaceKookie: that is unless you want to enforce a single instance in the whole ancestry chain
<SpaceKookie> jhass It's a singleton class that has parameters. So using a mutex and a private initialize method. But that's not even the issue. That works fine.
<SpaceKookie> I only asked about the if-else because I'm new to the whole ruby shorthand stuff :P
<jhass> I'm just saying that the semantics of a class variable are not what most people think what it is
<jhass> and using it for the singleton pattern is a good indicator you neither
<benzrf> man
<benzrf> in haskell function application binds tighter than operator application
<benzrf> so whenever i use ruby i keep tripping over precedence
<benzrf> (when i dont use parens, anyway)
<jhass> lxsameer: I like rubydoc.info/gems/gemname but if you have something more special IMO github pages is the way to go
<lxsameer> thanks
ag95 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
havenwood has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
<shevy> aaaah
<shevy> ubuntu is so much more usably without unity
<wasamasa> ++
<jhass> shevy: wait until you start to remove the ubuntu part from it!
<shevy> I am scared
<shevy> something might break
* Hanmac prefers cinnamon on this ubuntu ;P
<jhass> just strip to the kernel and build back up
tjr9898 has quit [Remote host closed the connection]
<shevy> things like /usr/lib/command-not-found always annoy me
darkxploit has joined #ruby
toastynerd has joined #ruby
nisstyre has quit [Quit: WeeChat 1.0]
compo has quit [Quit: Leaving]
nisstyre has joined #ruby
<jhass> shevy: here's a nice fixup script for you: https://github.com/gh2o/digitalocean-debian-to-arch/blob/master/install.sh
<AlexRussia> shevy, my system more usability without ubuntu....
nisstyre has quit [Client Quit]
nisstyre has joined #ruby
nisstyre has quit [Client Quit]
<Hanmac> ubuntu itself is not that bad ... only unity is anoying
cirn0 has joined #ruby
toastynerd has quit [Remote host closed the connection]
<shevy> hehe
<shevy> Hanmac what desktop environment or wm do you use?
Fire-Dragon-DoL1 has joined #ruby
<Hanmac> currently cinnamon
bruno- has quit [Ping timeout: 245 seconds]
nisstyre has joined #ruby
dorei has joined #ruby
<Hanmac> but have many others in reserve if something broken
Fire-Dragon-DoL has quit [Ping timeout: 246 seconds]
toastynerd has joined #ruby
DEA7TH has joined #ruby
cirn0 has quit [Ping timeout: 264 seconds]
toastynerd has quit [Read error: Connection reset by peer]
lkba has joined #ruby
toastynerd has joined #ruby
<shevy> things break on linux?
<Hanmac> shevy more like "I break things on linux" ... there might be some things that does not work as they should but i cant fix them correctly
relix has joined #ruby
astav has joined #ruby
earthquake has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
astav has quit [Client Quit]
astav has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
<lxsameer> hey guys, does any one know a better 'yardoc' theme.
kristofferR has joined #ruby
mary5030 has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
<jhass> don't you think there would be a class variable in there if that's good pratice?
doodlehaus has joined #ruby
Bumptious has quit [Remote host closed the connection]
havenwood has joined #ruby
butblack has left #ruby [#ruby]
Bumptious has joined #ruby
<jhass> besides I wouldn't make a singleton with a parameter but read the parameter from the application configuration inside initialize or do something like Singleton.log_file = "/foo/bar" that has to be set prior the first instance call
<apeiros> a singleton with a parameter is quite a smell
<apeiros> IMO the "call this before using" is a bad pattern too. value from config is better.
jimms has quit []
<jhass> yeah, listed that first for reason, just showing additional alternatives
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> yupp. and I comment on them :)
claymore has quit [Ping timeout: 276 seconds]
Wolland has joined #ruby
sparrovv has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
seamon has joined #ruby
dideler has quit [Ping timeout: 276 seconds]
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
fsapo has joined #ruby
einarj has joined #ruby
avita1 has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
einarj_ has joined #ruby
Spami has joined #ruby
InhalingPixels has joined #ruby
`ph8 is now known as ph8
ph8 has quit [Changing host]
ph8 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Azure has quit [Read error: Connection reset by peer]
claymore has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
sdwrage has joined #ruby
mary5030 has joined #ruby
sdwrage_ has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
Azure has quit [Max SendQ exceeded]
fold has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
bluenemo has quit [Client Quit]
bluOxigen has joined #ruby
zeroNones has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
klmlfl has joined #ruby
sdwrage has quit [Ping timeout: 245 seconds]
jyuan has quit [Ping timeout: 245 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
iartarisi has joined #ruby
theo_ has joined #ruby
ghost2060 has joined #ruby
cesarstafe has joined #ruby
<iartarisi> is there an alternative to String.sub which I can trust with a user-provided second argument? i.e. it seems the second argument is interpreted as a regexp with expansions being done.
anaeem1 has joined #ruby
<Hanmac> iartarisi: make a gist of what you mean
_Kerber0s_ is now known as Kerber0s
anaeem1 has quit [Remote host closed the connection]
rockdon_ is now known as rockdon|away
<shevy> hehe
<shevy> I didn't quite get what he wants either
<iartarisi> in the documentation to String.sub, there is this:
<iartarisi> If replacement is a String it will be substituted for the matched text. It may contain back-references to the pattern’s capture groups of the form "\d", where d is a group number, or "\k<n>", where n is a group name.
<iartarisi> I just want a version of sub which doesn't do that
ghost2060 has quit [Ping timeout: 252 seconds]
<centrx> iartarisi, You don't need to use that feature
<centrx> >> "test".sub("t", "br")
<eval-in____> centrx => "brest" (https://eval.in/189353)
pwestlund has joined #ruby
<iartarisi> centrx: I want to put user-input in the second parameter, so I want to make sure that that feature isn't used.
avita1 has quit [Quit: Leaving.]
mikeg has joined #ruby
<centrx> iartarisi, Use Regexp.escape(str) on the user input before you use it in sub
<iartarisi> ok, will try
InhalingPixels has joined #ruby
<Hanmac> iartarisi: does your first parameter in sub is a regexp with capture groups? if not then the feature is ignored in the second parameter
avita1 has joined #ruby
patrick99e99 has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
pwestlund has quit [Client Quit]
<apeiros> centrx, iartarisi that won't work
<apeiros> Regexp.escape is for patterns, not for substitutes
<apeiros> >> "foo".sub(/f/, Regexp.escape("*"))
<eval-in____> apeiros => "\\*oo" (https://eval.in/189354)
<apeiros> now you have the backslash in the string. not what is wanted.
<iartarisi> apeiros: right, I was just preparing to say that
<iartarisi> (after trying it)
<apeiros> iartarisi: anyway, a literal backslash is not part of an escape sequence
horrror has joined #ruby
horrror has quit [Client Quit]
<apeiros> iartarisi: remember, "\\" is a literal backslash, not "\"
rubytor has joined #ruby
emmesswhy has joined #ruby
<apeiros> >> "foo".sub(/f/, "\\1")
<eval-in____> apeiros => "oo" (https://eval.in/189355)
<apeiros> hm
<apeiros> baaad :)
Scotteh_ has joined #ruby
dmyers has quit [Ping timeout: 264 seconds]
<iartarisi> YES!
<iartarisi> exactly my problem
tlarevo has joined #ruby
Scotteh__ has joined #ruby
<apeiros> interesting problem. and the only solution I have is IMO cumbersome: sanitize the 2nd arg.
DrCode has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
<Hanmac> >> "foo".sub(/f/, "\\1".gsub('\\','\\\\\\'))
<eval-in____> Hanmac => "\\1oo" (https://eval.in/189365)
<iartarisi> is "\\" the only thing I should be sanitizing?
<Hanmac> hm imo yes, or you use the block variant:
<Hanmac> >> "foo".sub(/f/) { "\\1" }
<eval-in____> Hanmac => "\\1oo" (https://eval.in/189368)
Scotteh has quit [Ping timeout: 245 seconds]
zmartAway is now known as zmartAzz
<iartarisi> oh, that's nice
geeky-sh has quit [Ping timeout: 276 seconds]
Scotteh has joined #ruby
<apeiros> >> x = "\\1"; puts "foo".sub(/f/, x.gsub(/\\/, "\\\\\\"))
<eval-in____> apeiros => \1oo ... (https://eval.in/189369)
gregf has quit [Quit: WeeChat 1.0]
<apeiros> >> x = "\\1\\Z"; puts "foo".sub(/f/, x.gsub(/\\/, "\\\\\\"))
<eval-in____> apeiros => \1\Zoo ... (https://eval.in/189370)
Scotteh_ has quit [Ping timeout: 246 seconds]
sleepee has joined #ruby
Scotteh__ has quit [Ping timeout: 246 seconds]
Scotteh has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
<iartarisi> that seems to have worked. At least with my weird input data. Thanks a lot, guy!
fabrice31 has quit [Ping timeout: 240 seconds]
catbusters_ has quit [Quit: Connection closed for inactivity]
klmlfl has joined #ruby
timonv_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
earthquake has quit [Quit: earthquake]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
wallerdev has joined #ruby
mary5030 has quit [Remote host closed the connection]
mityaz_ has joined #ruby
iamjarvo has joined #ruby
cirn0 has joined #ruby
cirn000 has quit [Quit: Leaving]
ch0ke has joined #ruby
cirn00 has joined #ruby
fsapo has quit [Remote host closed the connection]
mary5030 has joined #ruby
yfeldblum has joined #ruby
cirn00 has quit [Client Quit]
<cajone> Guys, I'm trying to debug a multi threaded ( well 2 threads actually) via irb/pry, I stuck an exit(0) clause in the threads thi8nking this would teminate the running code but would leave me in pry to invesigate some variables, what actually is happening is the exit(0) are killing the pry session, any ideas how I gat around this?
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeroenvisser101 has joined #ruby
<havenwood> cajone: exit terminates the process not the thread
kireevco has joined #ruby
<havenwood> cajone: you could kill or join the thread
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<havenwood> cajone: when it is done, it dies and you can join it, or kill it early, or it will die when the process ends
cirn0 has quit [Ping timeout: 240 seconds]
cirn00 has joined #ruby
<havenwood> i need coffee
sevvie has joined #ruby
<havenwood> cajone: I think you're looking for Thread.stop
<havenwood> err, that'd sleep the thread
<AlexRussia> havenwood, you need coffee....script? xD
<havenwood> AlexRussia: hold the script, i take it black
heftig has quit [Quit: Quitting]
yfeldblum has quit [Ping timeout: 268 seconds]
<cajone> hi havenwood: I kicked the theads off using join, would I put the Thread.stop within the Thread.new{} block?
<AlexRussia> havenwood, lol
<AlexRussia> cajone, havenwood somebody could explain me how to work with Thread's?
<AlexRussia> and yes
<AlexRussia> i've read manual
wallerdev has quit [Quit: wallerdev]
<havenwood> >> thread = Thread.new { Thread.kill; sleep 100 }
<eval-in____> havenwood => (https://eval.in/189384)
<havenwood> #=> #<Thread:.. dead>
pwh has quit []
<cajone> AlexRussia: I'm trying to learn using this tut might help if you have not seen it http://www.tutorialspoint.com/ruby/ruby_multithreading.htm
<cajone> havenwood: Thanks will give it a shot
glebm has joined #ruby
<jhass> cajone: never call #kill from the outside though
weaksauce has joined #ruby
<havenwood> i follow that rule irl
DrCode has quit [Ping timeout: 264 seconds]
<havenwood> not once!
seamon has quit [Quit: Zzzzzzz]
* havenwood goes in search of coffee for his poor addled brain
ndrei has quit [Ping timeout: 268 seconds]
pwh has joined #ruby
Fire-Dragon-DoL1 has quit [Quit: Leaving.]
lkba has joined #ruby
Fire-Dragon-DoL has joined #ruby
tlarevo has quit [Ping timeout: 252 seconds]
geeky-sh has joined #ruby
astav has quit [Quit: astav]
avita1 has quit [Quit: Leaving.]
threesixes has joined #ruby
atmosx has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
Channel6 has quit [Quit: Leaving]
theo_ has quit [Remote host closed the connection]
CaveJohnson has quit [Ping timeout: 272 seconds]
Zackio has joined #ruby
ghost2060 has joined #ruby
avita1 has joined #ruby
heftig has joined #ruby
fold has joined #ruby
jeramyRR has quit [Quit: jeramyRR]
jyuan has joined #ruby
bruno- has joined #ruby
timonv_ has joined #ruby
toastynerd has joined #ruby
jyuan has quit [Ping timeout: 246 seconds]
luckyruby has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
<shevy> dumdedum
toastynerd has quit [Ping timeout: 255 seconds]
thams_ has joined #ruby
seamon has joined #ruby
fuhgeddaboudit has quit [Remote host closed the connection]
vinleod has quit [Quit: Computer has gone to sleep.]
thams has quit [Ping timeout: 255 seconds]
thams_ is now known as thams
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
starkhalo has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
orolo has joined #ruby
rbenv has joined #ruby
thams has quit [Ping timeout: 245 seconds]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cesarstafe has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
<Hanmac> shevy hay i have a nice line for grouping elements: (specially numbers)
<Hanmac> >> [1,2,3,4,6,7,9,10].each_cons(2).chunk {|a,b| a.next == b}.map {|k,v| k ? v.first.first..v.last.last : v.size == 2 ? v.first.last : nil}.compact
<eval-in____> Hanmac => [1..4, 6..7, 9..10] (https://eval.in/189403)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
shock_one has joined #ruby
havenwood has joined #ruby
<Hanmac> hm ok its not perfect yet but i am still working in it
jeramyRR has joined #ruby
ghost2060 has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 272 seconds]
<jhass> Hanmac: look at the examples of Enumerable#slice_before ;P
iartarisi has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
havenwood has quit [Remote host closed the connection]
<Hanmac> jhass: hm currently i dont know which example do you mean ...
<jhass> 4th block
ndrei has joined #ruby
Akagi201 has joined #ruby
dmfranc has joined #ruby
<Hanmac> hm oh you mean the one with "Word wrapping"? hm i might look at it
<jhass> no, the one before
echevemaster has joined #ruby
sevvie has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 268 seconds]
io_syl has joined #ruby
wallerdev has joined #ruby
Wolland_ has joined #ruby
mikeg has quit [Remote host closed the connection]
JetsekaiYori has joined #ruby
ghost2060 has joined #ruby
klmlfl has quit [Remote host closed the connection]
zaphro has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
saarinen has joined #ruby
<zaphro> Is there a Ruby quick reference site or pdf which covers 2.0 or even 2.1? Most stuff on Google barely covers 1.9 with the exception of zenspider.com
mikecmpbll has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
<AlexRussia> zaphro, ...covers? do you mean https://github.com/ruby/ruby/blob/trunk/ChangeLog ?
<Hanmac> zaphro: are allways look at http://www.ruby-doc.org/core/
jeramyRR has quit [Quit: jeramyRR]
sdwrage_ has quit [Quit: This computer has gone to sleep]
gccostabr has joined #ruby
sparrovv has joined #ruby
<shevy> Hanmac your code is so evil
<zaphro> AlexRussia: I'm looking for a single HTML page that I can convert to a PDF to stick on my phone
<zaphro> .... so normal docs are no good
<zaphro> Ryan's site is ideal but it appears to be for Ruby 1.9
BTRE has joined #ruby
amundj has joined #ruby
britneywright has joined #ruby
pwh_ has joined #ruby
tectonic has joined #ruby
<pontiki> zaphro: not an answer to your query, but if you're using a QR while your coding, why would you put it on your phone?
<AlexRussia> zaphro, emm.... http://www.ruby-doc.org/core-2.1.2/ ?
<zaphro> pontiki: Not while coding. While walking :)
sparrovv has quit [Ping timeout: 272 seconds]
<AlexRussia> zaphro, walking in the space? xD
pwh has quit [Ping timeout: 240 seconds]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
FarlaTux has quit [Quit: Leaving [Bye Everybody]]
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
<pontiki> Ahhh!
troyready has joined #ruby
heftig has quit [Ping timeout: 268 seconds]
<pontiki> don't fall into that open manhole...
<zaphro> AlexRussia: As I said, I'm looking for a single page. That one is full of linked references.
mary5030 has quit [Remote host closed the connection]
<AlexRussia> zaphro, you too said this is 'ideal' ;)
JohnFord has joined #ruby
<miah> just get the ruby pocket reference and transform it to html single page
<miah> pandoc or calibre your way to success
<zaphro> miah: You mean the O'Reilly book?
<miah> indeed
vinleod has joined #ruby
<miah> when i was starting ruby i just carried that with me everywhere
<miah> fit in my purse even
<zaphro> miah: That's 1.8 as far as I'm aware
<miah> read it on the bus; etc
<AlexRussia> zaphro, oh, docs is open.you ALWAYS could do anything what you want with that.even generate pdf...
<miah> i dont think you'll find a 'quick ref' that covers refinements
ndrei has quit [Ping timeout: 245 seconds]
orolo has quit [Quit: This computer has gone to sleep]
<miah> and the other differences between 1.8 -> 2.0 as far as i'm concerned have mostly been internal
<zaphro> miah: Exactly but I can't think why not.
<miah> time + effort + ability to write prose
<miah> im certain you can find many blogs that will cover the changes
mkaesz has joined #ruby
<miah> but ya; i dont know of any single page reference for 2.x off hand
<miah> at this point ri works well enough
<AlexRussia> miah, between 1.8 not only changes in language, but even in quality of docs
<zaphro> miah: Module prepend .... Enumerable.lazy ... ?
banister has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
ndrei has joined #ruby
<miah> ri Enumerable#lazy
banister has joined #ruby
<miah> single page quick reference =)
jottr_ has joined #ruby
<AlexRussia> zaphro, i guess you need rape that https://github.com/ruby/ruby/tree/trunk/doc
<zaphro> miah: On a phone while out walking?
<AlexRussia> zaphro, yeah, via ssh :P
<zaphro> AlexRussia: Can't assume any internet connectivity either :P
Blizzy has joined #ruby
nucatus has joined #ruby
<miah> take your pic =(
<miah> the most promising but i dont know if it supports offline
kenneth has joined #ruby
melik has joined #ruby
<miah> blogs + pandoc + whatever output you want
<zaphro> miah: Check the Ruby version. Often these are 1.8
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<miah> is how i roll
jottr has quit [Ping timeout: 246 seconds]
<AlexRussia> zaphro, what about that?(you can wrap this site and make single html or pdf i guess http://docs.ruby-lang.org/en/trunk/
<AlexRussia> )
<waxjar> what is it you actually want zaphro, a copy of the docs for on your phone?
Inhaling_ has joined #ruby
<miah> there are literally dozens of ways
<zaphro> waxjar: Single page, like zenspider.com but more up to date
moted has quit [Ping timeout: 240 seconds]
arrubin has joined #ruby
<miah> looks like zenspiders quickref was updated ; $Date: 2014/06/10 $
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<zaphro> Anyway, thanks yawl. My best bet is to edit Ryan Bates' page for 2.0 and 2.1
<miah> so then i wonder; what do you feel is missing; can you submit a pull request?
<waxjar> that is handy
canned has quit [Ping timeout: 250 seconds]
<zaphro> miah: I noticed that but there doesn't seem to be any 2.0 content on there
JohnBat26 has joined #ruby
kennet___ has joined #ruby
b00stfr3ak has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
starless has joined #ruby
<miah> so; why not just find some nice articles that cover the features you want and put them on your phone?
zaphro has left #ruby [#ruby]
<pontiki> or write them yourself :)
<miah> +1
Jake232 has joined #ruby
kenne____ has joined #ruby
saarinen has quit [Quit: saarinen]
kenneth has quit [Ping timeout: 272 seconds]
<miah> i used to use pocket a lot to save all my articles and then just download them to my phone prior to departing
<miah> now i save pages and convert them because like you mentioned; internet isnt always available.
Spami has joined #ruby
<miah> <3 pandoc for this
<AlexRussia> miah, +1? Google Plus user detected ;)
havenwood has joined #ruby
<miah> no; i just review lots of merge requests
ghost2060 has quit [Ping timeout: 260 seconds]
kennet___ has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
<miah> going to portland tomorrow; time to pack =)
skaflem has quit [Quit: Leaving]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> miah: interestingly enough, i have been doing the same thing with clipping articles for quite some time.
TorpedoSkyline has joined #ruby
avita1 has quit [Quit: Leaving.]
<miah> pontiki: ya. it works better. i still sync across devices too thanks to syncthing =)
dmfranc has quit [Ping timeout: 264 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> i've been tucking mine in a jekyll thingie
<miah> nice
<pontiki> it could be better
<miah> sometimes the formatting is a bit wonky
sevvie has quit [Ping timeout: 255 seconds]
<miah> thats the hardest problem really
<pontiki> exactly
<miah> anyways; afk for a bit <3
<pontiki> too fiddly
<pontiki> have fun
fabrice31 has joined #ruby
autochthon has joined #ruby
dideler has joined #ruby
canned has joined #ruby
spider-mario has quit [Remote host closed the connection]
grokdancer has joined #ruby
fabrice31 has quit [Ping timeout: 268 seconds]
seamon has quit [Quit: Zzzzzzz]
jerius has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
davedev2_ has joined #ruby
Caius has quit [Quit: ""]
Caius has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
canned has quit [Ping timeout: 260 seconds]
<shevy> aaaaah
<shevy> girl talk again
Fire-Dragon-DoL1 has joined #ruby
aedorn has quit [Ping timeout: 260 seconds]
<shevy> my notes are done in blood and pain
<shevy> especially when there is a harddrive failure :(
crdpink has joined #ruby
yfeldblum has joined #ruby
codecop has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdprink2 has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
lw has joined #ruby
<miah> backup backup backup
ghr has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 276 seconds]
atmosx has joined #ruby
JohnFord has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 268 seconds]
endash has joined #ruby
datreh has joined #ruby
ghost2060 has joined #ruby
<pontiki> and backup your backups
endash has quit [Client Quit]
bruno- has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 240 seconds]
geeky-sh has quit [Quit: WeeChat 0.4.2]
gccostabr has quit [Quit: ZZZzzz…]
Juanchito has quit [Quit: Connection closed for inactivity]
Fire-Dragon-DoL1 has quit [Quit: Leaving.]
robustus has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has joined #ruby
InhalingPixels has joined #ruby
ndrei has joined #ruby
ghost2060 has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
amundj has joined #ruby
robustus has joined #ruby
tectonic has quit []
<atmosx> everything counts in large amounts
* atmosx DM
<atmosx> aloha
<atmosx> pontiki: having a good backup strategy in countries like Greece is awful. You don't have enough upstream most of the times
* atmosx my balance is 4.3103 picodollars hm
Hobogrammer has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
melik has joined #ruby
Adrao has quit [Ping timeout: 250 seconds]
hellangel7 has quit [Remote host closed the connection]
startupality has joined #ruby
<centrx> darthvader@bede:/tmp$ ruby mbam-setup-2.0.2.1012.exe
<centrx> mbam-setup-2.0.2.1012.exe:1:in `<main>': uninitialized constant MZP (NameError)
<centrx> Any ideas?
startupality has quit [Client Quit]
<pontiki> don't mess with the Sith?
<pontiki> atmosx: you're assuming a network backup
freerobby has joined #ruby
<pontiki> back in the days of 56k upstream, still had multiple backups, with rotating offsite
<havenwood> shevy: i had drive errors messing me up this morning, solar flares i tell ya!
kireevco has left #ruby [#ruby]
<atmosx> pontiki: I have a NAS at home
SouL has quit [Ping timeout: 240 seconds]
<atmosx> pontiki: because I can't use offsite backup, but it's not secure at all IMHO.
<shevy> pontiki had rotating offices?
shock_one_ has joined #ruby
startupality has joined #ruby
PsionTheory has joined #ruby
<pontiki> no, friends and safety deposit box
startupality has quit [Client Quit]
Kruppe has quit [Ping timeout: 252 seconds]
shock_one has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
s_e has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tobyo has joined #ruby
Jamo has quit [Ping timeout: 252 seconds]
emocakes__ has joined #ruby
Jamo has joined #ruby
s_e has joined #ruby
crazed has quit [Ping timeout: 252 seconds]
crazed has joined #ruby
tobyo has quit [*.net *.split]
britneywright has quit [*.net *.split]
threesixes has quit [*.net *.split]
Davedo has quit [*.net *.split]
OffTheRails has quit [*.net *.split]
emocakes has quit [*.net *.split]
b1nd has quit [*.net *.split]
andrewlio has quit [*.net *.split]
thumpba has quit [*.net *.split]
evansbee has quit [*.net *.split]
dc__ has quit [*.net *.split]
adrenaline_ has quit [*.net *.split]
zarul has quit [*.net *.split]
qpls_ has quit [*.net *.split]
jayne has quit [*.net *.split]
kies^ has quit [*.net *.split]
anekos_ has quit [*.net *.split]
Roa has quit [*.net *.split]
Koshian has quit [*.net *.split]
lagweezle has quit [*.net *.split]
mahlon has quit [*.net *.split]
Raboo has quit [*.net *.split]
FDj has quit [*.net *.split]
optiz0r has quit [*.net *.split]
__main__ has quit [*.net *.split]
stoned has quit [*.net *.split]
Urocyon has quit [*.net *.split]
xiphias has quit [*.net *.split]
stoned has joined #ruby
_main_ has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
sinkensabe has joined #ruby
lw has quit [Quit: s]
Raboo has joined #ruby
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
lw has joined #ruby
amundj has joined #ruby
_main_ is now known as __main__
wall3d has joined #ruby
wall3d has left #ruby [#ruby]
Roa has joined #ruby
jay_ has joined #ruby
Pallion has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
Pallion has quit [Client Quit]
davedev2_ has quit [Ping timeout: 246 seconds]
hsps__ has joined #ruby
Davedo has joined #ruby
hsps_ has quit [Read error: Connection reset by peer]
SouL has joined #ruby
andrewlio has joined #ruby
qpls has joined #ruby
Urocyon has joined #ruby
threesixes has joined #ruby
tobyo has joined #ruby
b1nd has joined #ruby
evansbee has joined #ruby
dc__ has joined #ruby
thumpba has joined #ruby
jayne has joined #ruby
anekos_ has joined #ruby
kies^ has joined #ruby
xiphias has joined #ruby
lagweezle has joined #ruby
adrenaline_ has joined #ruby
Koshian has joined #ruby
FDj has joined #ruby
mahlon has joined #ruby
optiz0r has joined #ruby
britneywright has joined #ruby
TorpedoSkyline has joined #ruby
OffTheRails has joined #ruby
zarul has joined #ruby
timonv_ has joined #ruby
vcoinminer______ has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Remote host closed the connection]
fold has quit [Ping timeout: 255 seconds]
wjimenez5271 has joined #ruby
<atmosx> jesus christ
vcoinminer______ has joined #ruby
<atmosx> I've lost about ~ 2 hours debugging for a ... oasdf;aksdjf;lkj I can'tbelieve this
Urocyon has quit [Ping timeout: 252 seconds]
<atmosx> You guys implement begin/rescue/end and loggers on the first write? (usually?)
<pontiki> no
<atmosx> or it's part of the refactoring
<pontiki> well, logging sometimes
<atmosx> me either, but the app is starting to get big enough apparently and I can't cope with it anymore... I can't hold all the methods in my head anymore
relix_ has joined #ruby
<pontiki> b/r/e, not so often until we find it blowing exceptions
<pontiki> or in the case of a service model, then yes
cesarstafe has joined #ruby
<nobitanobi> Do you guys know how am I supposed to stub the :gets method here: https://gist.github.com/novito/0da80bc677722e460ecc -- I get a deprecation warning "Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated".
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
relix has quit [Ping timeout: 246 seconds]
pierre1_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
Urocyon has joined #ruby
<nobitanobi> Found it... allow(game).to receive(:gets).and_return('Human name')
amundj has joined #ruby
seamon has joined #ruby
<nobitanobi> pontiki: exactly what I was reading. I was just not able to find the 'new syntax'
maestrojed has joined #ruby
startupality has joined #ruby
dmfranc has joined #ruby
<pontiki> ah
<nobitanobi> thank you :)
PersonX has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
Kruppe has joined #ruby
dmfranc has quit []
zeroNones has joined #ruby
startupality has quit [Quit: startupality]
<pontiki> nw
dideler has quit [Ping timeout: 245 seconds]
jimmykarily has joined #ruby
freerobby has quit [Quit: Leaving.]
Advocation has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality has joined #ruby
Advocation has quit [Client Quit]
SouL has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
startupality has quit [Client Quit]
Channel6 has joined #ruby
Spami has joined #ruby
IrishGringo has joined #ruby
Dieseltime has joined #ruby
JohnFord has joined #ruby
kireevco has joined #ruby
doodlehaus has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dieseltime has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has joined #ruby
dude has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Spami has quit [Client Quit]
dude has quit [Client Quit]
sparrovv has joined #ruby
x1337807x has joined #ruby
icebourg has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
machete has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
heftig has quit [Quit: Quitting]
machete has joined #ruby
heftig has joined #ruby
hsps__ has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: Leaving.]
hsps__ has joined #ruby
<shevy> cool
b00stfr3ak has quit [Ping timeout: 240 seconds]
<shevy> gegl, which is required if you wish to compile gimp
<shevy> has a .rb file as part of its installation procedure
<shevy> and that .rb file failed
<shevy> and I could fix the problem \o/
<shevy> its ugly name is create-reference.rb and very unsurprisingly, it had an encoding problem
<shevy> it is one ugly beast:
<shevy> File.open(ARGV[ARGV.length-1], "w") {|file|
<shevy> file.puts
<shevy> and so on and so forth...
lw has quit [Quit: s]
SouL has joined #ruby
heftig_ has joined #ruby
saarinen has joined #ruby
Kruppe has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
<centrx> If I have a loop within a loop, is there any way to next out of the outer loop from within the inner loop?
<centrx> other than refactoring
sdwrage_ has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
x1337807x has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
kireevco has quit [Quit: Leaving.]
sdwrage has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
<eam> centrx: compile ruby with -DSUPPORT_JOKE=1 and use goto
Miron has quit [Remote host closed the connection]
Snowstormer has quit [Remote host closed the connection]
orolo has joined #ruby
Fusl has quit [Ping timeout: 245 seconds]
<eam> perl had labels which could be next/last/goto'd, but ruby removed them (and decided the use case was just a joke)
Kruppe has joined #ruby
qualiabyte has joined #ruby
x1337807x has quit [Client Quit]
fabrice31 has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
spastorino has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
ht__th has quit [Remote host closed the connection]
dmfranc has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Scotteh has joined #ruby
simplyaubs has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simplyaubs has quit [Client Quit]
<atmosx> Guys using this models https://github.com/atmosx/pritory/blob/master/models/init.rb I noticed tha every 'source' I create has the same exact date (time object is the same). How can I better adjust this?
pwh_ has quit []
postmodern has quit [Quit: Leaving]
weaksauce has quit [Quit: Linkinus - http://linkinus.com]
ndrei has joined #ruby
benzrf is now known as benzrf|offline
IrishGringo has quit [Ping timeout: 268 seconds]
j_mcnall_ has joined #ruby
jottr_ has joined #ruby
j_mcnall_ is now known as j_mcnally
yfeldblum has joined #ruby
icebourg has quit []
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
patrick99e99 has joined #ruby
Fusl has joined #ruby
cesarstafe has quit [Ping timeout: 272 seconds]
dh64 has joined #ruby
<shevy> omg...
<shevy> firefox requires python 2.7.x to compile from source
<shevy> which does not compile on my current system. I have python 2.6.9, and I have python 3.4.x something...
m8 has joined #ruby
lw has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
<shevy> eam are you sure ruby had goto?
patrick99e99 has quit [Ping timeout: 252 seconds]
<atmosx> shevy: weird, most programs I know of use python2.7
<atmosx> I mean it's kinda stick, with the flames python3 received, we're stuck with 2.7
ph8 has quit [Excess Flood]
<shevy> yeah this sucks
<atmosx> How can I sort a hash of arrays, per specific hash value?
<shevy> you use scripting languages to install software
<atmosx> err
<atmosx> no
motto has quit [Ping timeout: 240 seconds]
<shevy> but their version changes
<atmosx> an array of hashes
itspots has quit [Remote host closed the connection]
<centrx> Python is dead
<centrx> Netcraft confirms it
<shevy> we'd really need something like JVM for all scripting languages, just without java
<shevy> tiobe disagrees
lxsameer has quit [Quit: Leaving]
seamon has quit [Quit: Zzzzzzz]
redondos_ has joined #ruby
ph8 has joined #ruby
<shevy> python is now before php!
<redondos_> some ruby scripts cause nokogiri to rebuild every time. how can i debug this?
<banister> centrx use throw/catch
Jackneill has quit [Read error: Connection reset by peer]
<centrx> ah good idea
<centrx> I don't know I try to avoid using exceptions for control flow
kaspergrubbe has quit []
rbenv has quit [Quit: Textual IRC Client: www.textualapp.com]
Vile` has quit [Ping timeout: 276 seconds]
hsps__ has quit [Ping timeout: 272 seconds]
io_syl has quit []
<havenwood> shevy: i think not good to be on the north side of that horizontal line... more questions than use :P
maestrojed has joined #ruby
<havenwood> shevy: you wanna be in the southeast
<havenwood> (right where Ruby is, muahhahaa)
<havenwood> i guess not so far south >.>
* havenwood pokes Common Lisp
IrishGringo has joined #ruby
cirn0 has joined #ruby
sdwrage_ has quit [Quit: Leaving]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> waah
<shevy> only common lisp is in the southeast
<shevy> it's like the desert area where nobody returns
<banister> centrx they aren't exceptions :)
<havenwood> shevy: i guess questions aren't so bad ;P
<banister> centrx raise/rescue are for exceptions, try/catch is for exactly your use case
<havenwood> shevy: some stack overflow is prolly good, does show popularity not just obtuseness
lw has quit [Quit: s]
<shevy> somehow I think havenwood is drunk right now
<havenwood> shevy: false!
<pontiki> atmosx: did you get an answer to your question above about created_at times?
<atmosx> pontiki: I'm explicitly calling the time object (the TZinfo to get local time) at every create call
dcoxall has joined #ruby
<atmosx> pontiki: but it's not a dynamic solution, however... The thing is that you launch the rack server, the object is created and the date won't change.
darkxploit has quit [Ping timeout: 272 seconds]
<atmosx> I mean these values are read only once, that's the prob there I think and either I have to do something 'weird' to create a new object at every request or I shouuld explicitly call it from elsewhere.
Zesty has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
cirn0 has quit [Ping timeout: 246 seconds]
<pontiki> what i see is you're setting the default for created_at. what I'm not seeing is where you're saving a record into that table
timonv^ has joined #ruby
davedev24_ has joined #ruby
rockdon|away has quit [Ping timeout: 245 seconds]
<atmosx> pontiki: yeah, sure it's in the roots.
<atmosx> er routes
redondos_ has left #ruby [#ruby]
<atmosx> althought that code is a bit outdated, a couple of commits out, the Source.create calls are k
<atmosx> now I've changed them, added a created_at: ...
pwh has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
rockdon_ has joined #ruby
kenne____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
ahmads has joined #ruby
Vile` has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maestrojed has quit [Quit: Computer has gone to sleep.]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
jeroenvisser101 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
jeroenvisser101 has quit [Client Quit]
decoponio has quit [Quit: Leaving...]
cesarstafe has joined #ruby
<cajone> guys fromthe core docs String class there is an example for the include? method ie "hello".include? ?h , how to you intepret the ?h part
darkxploit has joined #ruby
grokdancer has quit [Quit: Leaving.]
sinkensabe has joined #ruby
andrewjanssen has joined #ruby
<cajone> I guess its a single char expetance within the string, but I dont know if thats correct
<shevy> >> ?h
<eval-in____> shevy => "h" (https://eval.in/189462)
<shevy> cajone it is like using "" around it
<shevy> I don't like it btw, I prefer .include? "h"
<atmosx> is there any diff in performance is call a method as 'sorted.last' or x = sorted.last; x ?
mkaesz has quit [Remote host closed the connection]
<cajone> shevy: thanks and IMHO I agree with you
<atmosx> I mean between assigning a value to variable and calling a sort every tmie.
mary5030 has quit [Remote host closed the connection]
<shevy> assignment should be slower
emocakes has joined #ruby
pu22l3r has joined #ruby
<shevy> though if you have to do that more than once
<shevy> go and assign
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> shevy: how so?
pwh has quit []
<atmosx> if I use a :value = sorted.last ?
saarinen has quit [Quit: saarinen]
<shevy> that is a symbol
<atmosx> shevy: I call the sorted.last 4-5 times hm
<shevy> what's up with you man
<atmosx> yeah, I mean isn't faster/less memory consumpting?
mkaesz has joined #ruby
<shevy> did rails make you dumber :D
<atmosx> totally
<shevy> well a symbol always stays the same
emocakes__ has quit [Ping timeout: 260 seconds]
<shevy> >> :atmosx.object_id
<eval-in____> shevy => 210328 (https://eval.in/189463)
<shevy> >> :atmosx.object_id
<eval-in____> shevy => 210328 (https://eval.in/189464)
<shevy> see
<atmosx> I'm in 100% dump mode, I've been writing code non-stop from yesterday night, I didn'tnew I could be so productive on one hand I've lost too many hours debugging stupid errors on the other. I can't even do simple things like sort an array of hashes
<shevy> but you can't do much with it
<shevy> like use it like a variable
_1_Nitromk has joined #ruby
<_1_Nitromk> sap
maestrojed has joined #ruby
<shevy> hehe
<_1_Nitromk> wats fresh
sinkensabe has quit [Read error: Connection reset by peer]
<atmosx> shit
sinkensabe has joined #ruby
<_1_Nitromk> r u 4 real
benzrf|offline is now known as benzrf
mskaesz has joined #ruby
<_1_Nitromk> nskaez sap
TheNet has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
mskaesz has quit [Read error: Connection reset by peer]
mkaesz_ has joined #ruby
<atmosx> I think I must stop now
<_1_Nitromk> atmosx
ptrrr has joined #ruby
<_1_Nitromk> y aay that
wald0 has joined #ruby
<atmosx> _1_Nitromk: is your keyboard setup correctly? Do you have an osteoarthritis condition?
<shevy> lol
<atmosx> shevy: I didn't pass my clinical pharmacology exam
<atmosx> jesus fucking christ I have t do it again :-(
<atmosx> October
<shevy> ewww
mkaesz has quit [Ping timeout: 264 seconds]
mkaesz_ has quit [Ping timeout: 245 seconds]
<pontiki> atmosx: wondering if the created_at is working?
<atmosx> pontiki: what do you mean?
TheNet has quit [Quit: Leaving...]
<atmosx> pontiki: when I'm explicitly calling it it's working, e.g. https://github.com/atmosx/pritory/blob/upd/routes/user.rb#L60
<pontiki> half hour ago you were adding created_at to your record creates. is it doing what you expect now?
<atmosx> pontiki: yes sure
Net has joined #ruby
<pontiki> is Sequel supposed to handle that magically like AR does?
<atmosx> pontiki: totally
maestrojed has quit [Quit: Computer has gone to sleep.]
<atmosx> and utterly!
<atmosx> hehe, yes it's an ORM, best alternative to AR as far as I can tell.
cirn000 has joined #ruby
hamakn has joined #ruby
hsps__ has joined #ruby
Net has quit [Client Quit]
TheNet has joined #ruby
gdoteof has joined #ruby
<gdoteof> when i do apt-get install ruby, i get "settingu p ruby 1.9.1"
<gdoteof> if i do ruby -v, it says 1.9.3p484
<gdoteof> when i try and install compass, i get complaints about 1.9.1
<gdoteof> and if i do ls /usr/lib/ruby it only has 1.9.1 in there
<gdoteof> i just did a purge/reinstall and its all the same, ic an't tell wtf is going on
<gdoteof> im on ubuntu 14.04
<pontiki> in AR, though, you don't nail the created_at default to the table creation time
<pontiki> or if you did, i'd expect the same behaviour
cirn00 has quit [Ping timeout: 276 seconds]
_1_Nitromk has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
troyready has quit [Ping timeout: 255 seconds]
deric_skibotn has joined #ruby
claymore has quit [Quit: Leaving]
wald0 has quit [Quit: Lost terminal]
cirn000 has quit [Quit: Leaving]
pu22l3r has joined #ruby
jack_rabbit has joined #ruby
andrewjanssen has joined #ruby
JohnFord has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
jimmykarily has quit [Quit: leaving]
io_syl has joined #ruby
glebm has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
SCHAAP137 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
yeboot has joined #ruby
<pontiki> yeah, that's exactly what it does
<pontiki> atmosx: leave off the default on the created_at fields and see if you get what you want
dapz has joined #ruby
ch0ke has quit [Ping timeout: 260 seconds]
<atmosx> pontiki: my idea (of the default) was flawed anyway, at the time of writing seemed right but it wasn't :-P
io_syl has quit []
sinkensabe has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
ovoraptor has joined #ruby
anshin has quit [Quit: signing off due to storms]
pu22l3r has quit [Remote host closed the connection]
freerobby has joined #ruby
jimms has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
JetsekaiYori has quit [Ping timeout: 255 seconds]
TrueJet has joined #ruby
TorpedoSkyline has joined #ruby
jimms has quit [Client Quit]
TorpedoSkyline has quit [Client Quit]
britneywright has joined #ruby
nobitanobi has quit [Remote host closed the connection]
butblack has joined #ruby
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
crdpink has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
mkaesz has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sinkensabe has quit [Remote host closed the connection]
PsionTheory has quit [Remote host closed the connection]
timonv^ has quit [Remote host closed the connection]
sepp2k has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
b06464f377 has quit [Quit: leaving]
nobitanobi has joined #ruby
<jhass> gdoteof: the 1.9.1 in the package name and the paths is the ABI version, not the interpreter version. The ABI version of the ruby 1.9.x series is 1.9.1
butblack has left #ruby [#ruby]
mkaesz has quit [Ping timeout: 272 seconds]
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
Spami has joined #ruby
andrewlio has quit [Remote host closed the connection]
Mars has joined #ruby
<Mars> Anyone have issues with ruby after upgrading to Mavericks?
Mars is now known as Guest9420
<havenwood> Guest9420: Nope, what are you running into?
<havenwood> Guest9420: Works well on Yosemite too.
jimms has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
ptrrr has quit [Quit: ptrrr]
axsuul has quit [Ping timeout: 260 seconds]
heftig_ is now known as heftig
davedev24_ has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
havenwood has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Inhaling_ has joined #ruby
hsps__ has quit [Ping timeout: 268 seconds]
davedev24_ has joined #ruby
farn has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
farn has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
<preyalone> Is there a Ruby library to help search for and apply configuration dotfiles, per-directory?
pwh has joined #ruby
<preyalone> something like defaults.reek, .cane, .excellent.yml, .rubocop.yml, but more general
doritostains has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
CpuID has joined #ruby
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
crdprink2 has joined #ruby
britneywright has joined #ruby
codecop has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 245 seconds]
cesarstafe has quit [Quit: leaving]
patrick99e99 has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby
Lewix has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit [Client Quit]
pwh_ has joined #ruby
pwh has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
Bumptious has joined #ruby
ptierno has quit [Quit: leaving]
yeboot has quit [Ping timeout: 272 seconds]
melik has quit [Quit: Computer has gone to sleep.]
grenierm has joined #ruby
shock_one_ has quit [Quit: Computer has gone to sleep.]
Inhaling_ has quit [Remote host closed the connection]
ahmads has quit [Read error: Connection reset by peer]
rubytor has quit [Ping timeout: 255 seconds]
<shevy> can I pass a block to a method, and inside the method instantly delegate that passed block to a class?
siwica has joined #ruby
<shevy> I want to set some slots on that object, but without the object.message notation - the block message has the instructions as to which methods on that object to call
rockdon_ is now known as rockdon|away
cirn0 has joined #ruby
kireevco has joined #ruby
grenierm has quit [Quit: grenierm]
InhalingPixels has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
siwica has quit [Client Quit]
Cooler_ has quit [Ping timeout: 240 seconds]
TrueJet has quit [Ping timeout: 255 seconds]
rubyonrailed has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has joined #ruby
<waxjar> if you get a reference to the block you can just pass it around, no?
cirn0 has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rbenv has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc__ has quit [Remote host closed the connection]
<shevy> hmm a moment, let me test
lucianosousa has joined #ruby
Photism has joined #ruby
maletor has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
chrishough has joined #ruby
<shevy> ok here is an example:
<shevy> error is: `block in <main>': undefined method `method1' for main:Object (NoMethodError)
doodlehaus has quit [Remote host closed the connection]
<shevy> I kinda have to tell the class to assume that these are methods on self
<shevy> but I am unsure how
mercwithamouth has quit [Ping timeout: 245 seconds]
<waxjar> you can get a reference to it at &block in the method definition
<waxjar> you can pass it on to W.new as a block with &block
mkaesz has joined #ruby
<waxjar> *with &block
Takle has joined #ruby
jaake has joined #ruby
pwh has joined #ruby
<waxjar> it's executed in the context where it was "defined", btw, that's why you get the NoMethodError
<shevy> aha
<matti> shevy: !
m8 has quit [Quit: Sto andando via]
<shevy> when I use &block, I get a Proc, right?
<waxjar> yea, you can use block as a Proc
pwh_ has quit [Ping timeout: 240 seconds]
carbon_ has joined #ruby
<Nowaker> hmm, out of curiosity, is there any way to make it work as shevy wants?
<shevy> I think there is, sinatra manages it too or?
<shevy> but right now it is over my head, I am moving to simpler things
mkaesz has quit [Ping timeout: 268 seconds]
<Nowaker> hmmm... overriding self somehow. its called binding.
dcoxall has quit []
niklas has joined #ruby
<jhass> classic instance_eval
Takle has quit [Ping timeout: 260 seconds]
<jhass> >> class Foo; def initialize(&block); instance_eval(&block); end; def foo; puts 'hi'; end; end; Foo.new { foo }
<eval-in____> jhass => hi ... (https://eval.in/189520)
<niklas> a
<shevy> huh
<shevy> why do we have to use &block twice?
<jhass> instance_eval is a method call
<jhass> we pass the block we capture onto it
<waxjar> with the & in front you sort of say "this parameter is a block"
<jhass> >> Object.new.instance_eval(&:object_id)
<eval-in____> jhass => 554389150 (https://eval.in/189521)
<waxjar> that's why stuff like #map &:to_s works, Symbol#to_proc returns a proc that you pass as a block to #map
jimms has joined #ruby
Guest9420 has quit [Remote host closed the connection]
niklas has quit [Quit: Leaving]
<shevy> aha
niklas has joined #ruby
JetsekaiYori has joined #ruby
rubytor has joined #ruby
JohnFord has joined #ruby
<shevy> this is cool
JohnFord has quit [Read error: Connection reset by peer]
JohnFord has joined #ruby
weaksauce has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Quit: Leaving]
<shevy> can python do this as well?
t0rc has joined #ruby
niklas3 has joined #ruby
niklas has quit [Quit: Leaving]
carbon_ has quit [Quit: leaving]
niklas3 has quit [Client Quit]
starkhallo has joined #ruby
niklas has joined #ruby
autochthon has quit [Ping timeout: 272 seconds]
niklas has quit [Client Quit]
starkhalo has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
niklas has joined #ruby
havenn has joined #ruby
<wasamasa> shevy: no, you'd insist that in python it's good style to write out names
<wasamasa> shevy: and forego instance_eval and all of its evils
havenn has quit [Client Quit]
kireevco has left #ruby [#ruby]
IrishGringo has joined #ruby
niklas has quit [Client Quit]
<shevy> this example has a clear advantage
xenogis has quit [Ping timeout: 240 seconds]
niklas has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sent-hil has joined #ruby
<wasamasa> shevy: the scariest metaprogramming I've seen in python involved decompiling emitted bytecode to generate an AST, then running it through monadic optimizers and creating the desired bytecode from their results
iamjarvo has joined #ruby
<shevy> cool
<shevy> can we generate bytecode in ruby?
<wasamasa> I'm pretty sure that happens all the time
<wasamasa> the thing's just that the ruby executable does not spit it out into a file it can run instead of the original as python does
w3pm has joined #ruby
<wasamasa> shevy: if you want to have it explained in more detail, watch the videos about ponyorm
<w3pm> how can i pass an interpolated string into system()? doesnt seem to work
<w3pm> system( "#{test}" ) literally tries to run #{test}
niklas has quit [Client Quit]
niklas123 has joined #ruby
<w3pm> nevermind
marr has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
<havenwood> shevy: we can!
Deele has quit [Ping timeout: 276 seconds]
<havenwood> in manyfold and myriad ways
<havenwood> shevy: there's straightforward ways to, like with rbx and mruby
<havenwood> there're*
<havenwood> too*
shevy has quit [Ping timeout: 264 seconds]
deric_skibotn has quit [Ping timeout: 240 seconds]
doritostains has quit [Quit: doritostains]
Vile` has quit [Quit: .]
coreycondardo has joined #ruby
yeboot has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
bruno- has joined #ruby
dc__ has joined #ruby
fabrice31 has joined #ruby
niklas123 has quit [Quit: Leaving]
codergeek121 has joined #ruby
datreh has quit [Quit: Computer has gone to sleep.]
astav has joined #ruby
codergeek121 has quit [Client Quit]
niklas123 has joined #ruby
zenojis has joined #ruby
charliesome has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
IrishGringo has quit [Ping timeout: 240 seconds]
t0rc has left #ruby ["WeeChat 1.0"]
OffTheRails has quit [Ping timeout: 272 seconds]
niklas123 has quit [Client Quit]
codergeek123 has joined #ruby
synergyz has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 246 seconds]
kireevco has joined #ruby
IrishGringo has joined #ruby
codergeek123 has quit [Client Quit]
niklas123 has joined #ruby
shevy has joined #ruby