apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
uptownhr has joined #ruby
Megtastique has quit []
<porfa> hahahaha bradland! im doing something else, im awake for 32 hours i need some sleep!
<porfa> i just need to finish this here scurpt
<porfa> script
<bradland> sleep is always good
<porfa> just waiting for the startcraft ost to end
shime_ has joined #ruby
Xeago has joined #ruby
russt has quit [Quit: russt]
<Dolphi> ?
<Dolphi> StarCraft?
JDiPierro has joined #ruby
kirun has quit [Quit: Client exiting]
<bradland> StarCraft. Confidence interval, 99%.
<bradland> (I made that up)
<Dolphi> What league do you play in?
<Dolphi> I'm high gold, but I haven't played for about 2 weeks now.
shime has quit [Ping timeout: 252 seconds]
<bradland> haven't played starcraft in about 417 weeks.
<bradland> approximately
<Dolphi> bradland: Haha, nice.
<Dolphi> How have you been man? I've been working on HTML & CSS with Codecademy.
<Dolphi> Started my first web project. It is a little gaming blog for myself. I'll probably never host it, but I'm having fun building it at least.
ta has joined #ruby
<bradland> nice! i'm actually going through the codeacademy ruby class right now
<bradland> so i know what the heck people are asking about when they come here
<bradland> pro-tip
<bradland> put everything you do on github
Tricon has quit [Ping timeout: 272 seconds]
C1V0 has quit []
<bradland> and ask people to review it and give feedback (in the appropriate channel, of course)
<bradland> it won't always be nice, and you won't always learn something, but occassionally, you'll get that gem of knowledge that you'd have never found on your own
martinium has joined #ruby
martinium has joined #ruby
carvantes has joined #ruby
<Dolphi> The ruby course won't work on my laptop for some reason, and I'm not sure why. Python as well. All others work fine, I believe.
<bradland> strange
<bradland> what browser?
apxm has joined #ruby
<Dolphi> Firefox, of course.
<bradland> bizarre. i'd expect it to work in firefox.
<bradland> Windows?
<Dolphi> I've also tried on Chrome.
<Dolphi> Yes, Windows.
<Dolphi> The only thing that I can really think of is maybe my web security won't let it load properly or something?
<Dolphi> I use Kaspersky Internet Security.
<bradland> that's quite possible
<bradland> it's JS heavy, i'm sure
j0n3 has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Ping timeout: 244 seconds]
<bradland> time to build yourself a Ubuntu virtual machine!
<Dolphi> Build it myself? Haha..
<bradland> if you're going to do web dev, might as well start learning linux
jerematic has joined #ruby
<Dolphi> I've actually heard that Linux is the go-to operating system for developers of all kinds.
sundjango has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 272 seconds]
tier has joined #ruby
teddyp1cker has joined #ruby
scripore has joined #ruby
mac__ has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
jerematic has quit [Ping timeout: 244 seconds]
lzco has quit [Remote host closed the connection]
towski__ has joined #ruby
towski__ has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 245 seconds]
lzco has joined #ruby
JDiPierro has quit [Remote host closed the connection]
towski_ has joined #ruby
<porfa> imam make a machine that lets you punch code in the mouth, then i’ll be rich and i’ll hire all of you to code for me
greenbagels has quit [Read error: Connection reset by peer]
jack_rabbit has joined #ruby
^wald0 has quit [Quit: ^wald0]
ta has joined #ruby
greenbagels has joined #ruby
apeiros has joined #ruby
tkuchiki has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
nfk has quit [Quit: yawn]
n008f4g_ has quit [Ping timeout: 255 seconds]
arrubin has quit []
ta has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
^wald0 has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
tkuchiki has quit [Ping timeout: 245 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
bklane has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 244 seconds]
uptownhr has quit [Quit: uptownhr]
schickung has quit [Quit: schickung]
timonv_ has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
CpuID has joined #ruby
djdarkbeat has joined #ruby
fgo has joined #ruby
kaspertidemann has quit []
sevenseacat has joined #ruby
larissa has quit [Quit: Leaving]
martinium has quit [Remote host closed the connection]
iMe has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
uptownhr has joined #ruby
ta has joined #ruby
bklane has joined #ruby
athan has quit [Quit: No Ping reply in 180 seconds.]
fgo has quit [Ping timeout: 246 seconds]
athan has joined #ruby
CpuID2 has joined #ruby
sinkensabe has joined #ruby
CpuID has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
mferrier has joined #ruby
ta has quit [Ping timeout: 276 seconds]
carvantes has quit [Ping timeout: 265 seconds]
lzco has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 245 seconds]
Tricon has joined #ruby
n008f4g_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
freerobby has quit [Client Quit]
ta has joined #ruby
josephndenton has quit [Ping timeout: 252 seconds]
_5kg has quit [Ping timeout: 264 seconds]
xxneolithicxx has joined #ruby
chipotle has quit [Quit: cheerio]
Tricon has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
skinux has joined #ruby
mroach has joined #ruby
mferrier has quit [Ping timeout: 264 seconds]
<skinux> I'm doing tutorial at CodeAcademy, and it says this code isn't writing anything to console. A little help please? https://gist.github.com/skinuxgeek/d478b9b670f22c425006
_5kg has joined #ruby
uptownhr has quit [Quit: uptownhr]
ta has quit [Ping timeout: 255 seconds]
odin22 has joined #ruby
klmlfl has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 244 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
<gr33n7007h> skinux, what do you want it to print to console, keys, values, key/values ?
<skinux> only values
_5kg has quit [Ping timeout: 244 seconds]
uptownhr has joined #ruby
<gr33n7007h> >> lunch_order.each_key {|k| puts lunch_order[k] }
<eval-in_> gr33n7007h => undefined local variable or method `lunch_order' for main:Object (NameError) ... (https://eval.in/244442)
<gr33n7007h> skinux, lunch_order.each_key {|k| puts lunch_order[k] }
<skinux> That worked.
mrmargolis has joined #ruby
Channel6 has joined #ruby
startupality has quit [Quit: startupality]
<gr33n7007h> skinux, puts lunch_order.values
<skinux> I'm onto the next lesson
<gr33n7007h> cool :)
TheNet has quit [Remote host closed the connection]
_5kg has joined #ruby
uptownhr has quit [Ping timeout: 245 seconds]
TheNet has joined #ruby
charliesome has quit [Quit: zzz]
ARCADIVS has joined #ruby
tkuchiki has joined #ruby
bklane has quit [Read error: Connection reset by peer]
<waxjar> skinux, gr33n7007h: puts lunch_order.values :)
ta has joined #ruby
<waxjar> ah, i was scrolled up. never mind.
xxneolithicxx has quit [Remote host closed the connection]
<skinux> lol
<waxjar> the only downside of os x's disappearing scrollbars :P
<skinux> They disappear on Ubuntu Linux as well
hmsimha has quit [Ping timeout: 252 seconds]
<pontiki> i very much dislike that
astrobunny has joined #ruby
chipotle has joined #ruby
jheg has joined #ruby
zwer_h is now known as zwer
ta has quit [Ping timeout: 276 seconds]
iMe has quit [Ping timeout: 240 seconds]
xxneolithicxx has joined #ruby
iMe has joined #ruby
josephndenton has joined #ruby
<Dolphi> I'm actually about to learn Ubuntu Linux skinux. I am, however, a complete newbie in the programming world. Hopefully I'm not biting off to much to swallow.
<Dolphi> I'm going to use it via VirtualBox.
jheg has quit [Ping timeout: 240 seconds]
cajone has quit [Remote host closed the connection]
<pontiki> grand idea. :_
<pontiki> :) i meant
<Dolphi> pontiki: I partially feel like that is sarcasm, haha.
<pontiki> Dolphi: are you going to be learning it's UI as well, or just as a server?
<pontiki> it wasn't meant as sarcasm in any way
mrmargolis has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 276 seconds]
<Dolphi> I didn't know that it had two parts to learn.
freerobby has joined #ruby
<Dolphi> I suppose both then.
<pontiki> well, there's a GUI that runs like a desktop
<pontiki> and it's a bit of a different experience than OS/X or Windows
dc_ has quit [Remote host closed the connection]
<pontiki> otherwise one can strictly stay with the command line experience
cajone has joined #ruby
<Dolphi> Which do you use?
<Dolphi> Doing everything from the command line seems like a lot of work.
<pontiki> just the command line, but I am probably a reprobate as well in that I don't really like GUIs
<pontiki> even on OS/X i do practically everything from the command line
x77686d has quit [Quit: x77686d]
dfinninger has joined #ruby
taiansu has joined #ruby
<Dolphi> But I keep hearing good things about Linux, and bradland (I believe he was the first person that I ever talked to on IRC :') ) suggested it to me, so I figured I would give it a try.
<pontiki> i do think it's a great idea
<Dolphi> What advantage does that have?
<pontiki> i do all my development work that way
shime_ has quit [Remote host closed the connection]
<pontiki> it's the same environment i typically deploy to
<pontiki> i have *never* , in fact, deployed to anything but linux-based systems
<Dolphi> Really?
it0a has quit [Quit: WeeChat 1.1]
* pontiki nods
<Dolphi> I actually haven't even heard of Linux until about a month ago.
<pontiki> never to a windows server, never to an OS/X server, never to a *BSD server
<sevenseacat> i deployed to an IIS system once. that was painful.
<Dolphi> (When I first started reading up about programming)
shime has joined #ruby
<Dolphi> What exactly is a server?
<xxneolithicxx> Linux is a lot easier to setup programming environments in as depending on the language it might already be there by default
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
<pontiki> Dolphi: there are a few definitions. 1) a machine, real or virtual, that runs applications but does not have a dedicated graphical display
pdoherty has joined #ruby
<Dolphi> As in like a web hosting server?
<pontiki> the application or application resources are also referred to as servers: web server, file server, database server
<pontiki> yes
taiansu has quit [Ping timeout: 264 seconds]
<Dolphi> Ah, I understand. So a file and database server could be used in lets say, an office environment? You could link local computers to the server to share data quickly?
<Dolphi> I'm trying to wrap my head around all of this.
<pontiki> when you hear people say "the cloud", that's generally referring to machines serving files, running applications and services, from somewhere else
<pontiki> Dolphi: i've been doing this sort of thing for decades, so it's sometimes hard for me to figure out what and how to explain
Adran has quit [Remote host closed the connection]
<Dolphi> It's alright, I'll be in your shoes one day, hopefully. For now I'm just a greenhorn trying to learn what I can from the veterans. :)
<pontiki> it's all good
<pontiki> this is the most fun work in the world, i think
<xxneolithicxx> another way to look at it is that a server is meant to offer services a user or a software service offering (website, ftp server, email) uses vs a typical desktop environment is GUI based and meant for end users to work on
<blizzy> so, I'm trying to use RestClient, however I get this error: 301 Moved Permanently (RestClient::MovedPermanently).
pdoherty has quit [Ping timeout: 272 seconds]
lamasnik has quit [Ping timeout: 245 seconds]
<waxjar> that's not an error, that's a response :)
Adran has joined #ruby
<xxneolithicxx> blizzy is that typo in the URL fixed
<pontiki> RestClient doesn't automatically follow redirects?
bronson has joined #ruby
ta has quit [Ping timeout: 276 seconds]
bashusr has joined #ruby
<blizzy> this is why I love and hate programming.
<blizzy> thanks, xxneolithicxx.
<blizzy> oh, I still get the error
<xxneolithicxx> then what pontiki said
fgo has joined #ruby
<blizzy> it's not a redirect
<xxneolithicxx> it may have an extra option to explicitly allow redirects if one is provided
<pontiki> a 301 is a redirect
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
<pontiki> there should be a Location header that says where it moved to
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
gawd has quit [Quit: Leaving]
astrobunny has quit [Read error: Connection reset by peer]
<blizzy> thank you, pontiki and xxneolithicxx.
amclain has quit [Ping timeout: 245 seconds]
amclain has joined #ruby
havenwood has quit [Remote host closed the connection]
<xxneolithicxx> blizzy: http://www.rubydoc.info/gems/rest-client/1.7.2 check out result handling section
<blizzy> thanks again, xxneolithicxx.
bronson has quit [Ping timeout: 265 seconds]
dc_ has joined #ruby
freerobby has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 255 seconds]
Sgeo has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby
fgo has joined #ruby
pauly_oc has quit [Ping timeout: 272 seconds]
JDiPierro has joined #ruby
ta has joined #ruby
fgo has quit [Client Quit]
gmcintire has joined #ruby
<skinux> I'm learning Ruby pretty quickly. But, then again, I've already known how to program in PHP, Python, and C#
JDiPierro has quit [Ping timeout: 244 seconds]
bklane has joined #ruby
athan has quit [Ping timeout: 252 seconds]
blizzy has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 244 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
blizzy has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
dfinninger has quit [Remote host closed the connection]
porfa has quit [Quit: porfa]
oo_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 265 seconds]
ikeike443 has joined #ruby
ta has joined #ruby
charliesome has joined #ruby
iMe has joined #ruby
lamasnik has joined #ruby
athan has joined #ruby
ta_ has joined #ruby
chendry has joined #ruby
cantonic has quit [Quit: cantonic]
luriv has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 255 seconds]
cantonic has joined #ruby
ta has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
arrubin has joined #ruby
it0a has joined #ruby
ta has joined #ruby
teddyp1cker has joined #ruby
JDiPierro has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Sgeo has joined #ruby
russt has joined #ruby
it0a has quit [Client Quit]
einarj has joined #ruby
it0a has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
francisfish has joined #ruby
pico-pete has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.1]
hephaestus_rg has joined #ruby
diegoviola has joined #ruby
kotk_ has joined #ruby
kotk has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
chrishough has joined #ruby
chendry has quit [Quit: ircII EPIC4-2.10.5 -- Are we there yet?]
freerobby has joined #ruby
timonv_ has joined #ruby
ta has quit [Ping timeout: 245 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
freerobby has quit [Client Quit]
krz has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
taiansu has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 256 seconds]
athan has quit [Ping timeout: 252 seconds]
taiansu has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
shime has quit [Ping timeout: 265 seconds]
martinium has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
ta has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
nateberkopec has joined #ruby
ta has quit [Ping timeout: 276 seconds]
iMe has joined #ruby
Dolphi has quit [Ping timeout: 244 seconds]
Megtastique has joined #ruby
cocotton has joined #ruby
ta has joined #ruby
Xeago has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
JoshGlzBrk has joined #ruby
freerobby has joined #ruby
bashusr has quit [Ping timeout: 265 seconds]
bashusr has joined #ruby
SparkMasterTape has joined #ruby
PanPan has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
taiansu has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
omosoj has quit [Quit: leaving]
Ankhers has joined #ruby
it0a has quit [Quit: WeeChat 1.1]
n008f4g_ has quit [Ping timeout: 255 seconds]
Dolphi has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
Channel6 has quit [Quit: Leaving]
scripore has joined #ruby
mac__ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dfinninger has joined #ruby
ta has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
JDiPierro has quit [Remote host closed the connection]
JoshGlzB_ has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 245 seconds]
JoshGlzB_ has quit [Client Quit]
iMe has joined #ruby
ta_ has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
krz has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
snath has joined #ruby
ta has quit [Ping timeout: 272 seconds]
^wald0 has quit [Quit: ^wald0]
ta_ has quit [Ping timeout: 276 seconds]
hanachin has joined #ruby
MrSamuel has quit [Read error: Connection reset by peer]
maximski has quit []
Tricon has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
kl has quit [Ping timeout: 252 seconds]
kapil__ has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
kl has joined #ruby
pragmaticivan has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
zorak8 has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
DadoCe has joined #ruby
towski_ has joined #ruby
bronson has joined #ruby
hamakn has joined #ruby
AlexRussia has joined #ruby
ta has joined #ruby
nateberkopec has joined #ruby
<scottstamp> I'm trying to override String.truncate, but I'm getting an error when I try to alias the original method, "undefined method `truncate' for class `String' (NameError)", here's my code - http://pastie.org/9839370
<scottstamp> any thoughts?
odin22 has quit [Quit: Lost terminal]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
DadoCe has quit [Ping timeout: 246 seconds]
towski_ has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 276 seconds]
djdarkbeat has joined #ruby
ta has quit [Ping timeout: 264 seconds]
pdoherty has joined #ruby
martinium has joined #ruby
jerematic has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 244 seconds]
<xxneolithicxx> scottstamp: String class does not have a truncate method unless thats something rails specific
danzilio has joined #ruby
danzilio has quit [Max SendQ exceeded]
<scottstamp> D'oh, it is. :\ that explains it, then.
<scottstamp> Thanks xxneolithicxx
jerematic has quit [Ping timeout: 245 seconds]
<xxneolithicxx> based on your comment it looks like you want to be monkey patching TextHelper
<xxneolithicxx> not String
iMe has quit [Ping timeout: 244 seconds]
eka has joined #ruby
ta has joined #ruby
martinium has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
shellox has joined #ruby
<scottstamp> If I was actually using ActionView, I would be. ;P
djbkd has joined #ruby
Photism has joined #ruby
<scottstamp> This is a Rails-less app, just trying to get that functionality
iMe has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<shellox> Hi, I'm trying to read a csv file, append a line and save it again(including the headers). the reading and appending part work, but there's no header in the newly created file
<shellox> any idea what i do wrong here?
<scottstamp> http://pastie.org/9839390 there we go, that seems to work. :) lol thanks for saving me from a stupid mistake xxneolithicxx
JDiPierro has joined #ruby
ta has quit [Ping timeout: 276 seconds]
taiansu has quit [Remote host closed the connection]
kl has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 245 seconds]
<xxneolithicxx> shellox: try writing out products.headers first to csv_object before looping through the rest.
JDiPierro has quit [Ping timeout: 245 seconds]
ta has joined #ruby
krz has quit [Ping timeout: 256 seconds]
radic has joined #ruby
<shellox> xxneolithicxx: thanks. can you help me with another thing ;)
<shellox> do you see the lines under products << [] ?
<shellox> that's a terrible solution i think. i could append a row using products << ['product'], but I don't want to use the array notation
<shellox> i want to append stuff using the name
ta has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
^wald0 has joined #ruby
<scottstamp> hmm, any reason you're iterating over the products before pushing each element back into csv_object? Are you planning to do some other processing in that block?
<scottstamp> shellox:
davedev2_ has joined #ruby
nuck has joined #ruby
<scottstamp> I'm not sure if what you're doing adds any performance overhead, but there's a built in for that already, you can just do csv_object.append products
davedev24_ has quit [Ping timeout: 245 seconds]
<xxneolithicxx> product = CSV::Row.new(products.headers, []); product["Title"] = "Banana"; products << product; #something like this?
^wald0 has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
bklane has quit []
<shellox> scottstamp: thanks
<shellox> xxneolithicxx: cheers, i'll try it
pawprint has joined #ruby
icebourg has joined #ruby
^wald0 has joined #ruby
Dolphi has quit [Quit: Leaving]
AlexRussia has joined #ruby
Tricon has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
taiansu has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
<shellox> scottstamp: without the iteration the format is somehow different
<shellox> of the output
<shellox> let me make a gist
<scottstamp> Shouldn't be, but sure.
sea_local has joined #ruby
sea_local has quit [Remote host closed the connection]
ta_ has joined #ruby
sea_local has joined #ruby
kyb3r_ has joined #ruby
timonv_ has joined #ruby
teddyp1cker has joined #ruby
<shellox> 2.csv is the format i want to get
<mjuszczak> How can I convert JSON, such as http://pastebin.com/Xu8JQapD, to a ruby hash?
iMe has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
<xxneolithicxx> its already going to be a one element ruby hash when you load it
ta has quit [Ping timeout: 276 seconds]
<lampd1> looking for feedback on this script https://gist.github.com/reidblomquist/afee3998f7084f8165f8 (am a ruby noob, looking for any constructive criticism - am sure there are better ways to do some of the stuff in here)
iMe has joined #ruby
<scottstamp> heh, yeah that'd do it xxneolithicxx - wouldn't merge squash that empty element?
anaeem1 has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
<scottstamp> actually nvm, looking at the behavior now, it wouldn't
anaeem1 has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 272 seconds]
<xxneolithicxx> scottstamp: which discussion was that related to lol
anaeem1_ has joined #ruby
pengwynn has joined #ruby
<scottstamp> the spare element that shellox is talking about :P never mind me, I'm trying to squash a CSS bug right now, lol my feedback probably won't be too useful atm
icebourg has quit []
pengwynn has quit [Client Quit]
blizzy has quit [Read error: Connection reset by peer]
YamakasY has quit [Excess Flood]
asteros has quit [Quit: asteros]
tjohnson has quit [Quit: Connection closed for inactivity]
nateberkopec has quit [Quit: Leaving...]
YamakasY has joined #ruby
<xxneolithicxx> no i think he would have to change it << to push to get the first example to work without looping
zorak8 has quit [Ping timeout: 246 seconds]
<xxneolithicxx> csv_object.push(products)
<xxneolithicxx> that is assuming that open is returning a CSV::Table which according to that it always will if you set the headers option
martinium has joined #ruby
<shellox> xxneolithicxx: i get undefined method push
martinium has joined #ruby
martinium has quit [Changing host]
<shellox> undefined method `push' for #<CSV:0x000001020f74d8> (NoMethodError)
<xxneolithicxx> add the option write headers
<xxneolithicxx> its returning the base class then not the table, so that may not work in the open block
charliesome has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
<shellox> write_headers: true ?
asteros has joined #ruby
charliesome has joined #ruby
<xxneolithicxx> headers: true, write_headers: true
tus has quit []
taiansu has quit [Remote host closed the connection]
davedev2_ has quit []
ta_ has quit [Ping timeout: 276 seconds]
arup_r has quit [Quit: Leaving.]
bronson has joined #ruby
g-nom3 has quit [Quit: Leaving.]
Hobogrammer has quit [Read error: Connection reset by peer]
_2_Kerry has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
C1V0 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
Deele has joined #ruby
hmsimha has joined #ruby
odin22 has joined #ruby
JDiPierro has joined #ruby
MasterPiece has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
taiansu has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1]
ta has joined #ruby
Hobogrammer has joined #ruby
iMe has joined #ruby
Tricon has joined #ruby
_2_Kerry has quit [Ping timeout: 244 seconds]
JDiPierro has quit [Ping timeout: 240 seconds]
AlyssaDaemon has quit [Quit: leaving]
taiansu has quit [Ping timeout: 245 seconds]
felixjet has joined #ruby
hgl has quit [Ping timeout: 246 seconds]
xxneolithicxx has left #ruby [#ruby]
ta has quit [Ping timeout: 276 seconds]
Asher has quit [Quit: Leaving.]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
hgl has joined #ruby
Asher- has joined #ruby
mrdtt has joined #ruby
x1337807x has quit [Client Quit]
mrdtt has quit [Max SendQ exceeded]
ta has joined #ruby
hamakn has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
mrdtt has joined #ruby
Megtastique has quit []
_X_C_V_B_ has joined #ruby
AlyssaDaemon has joined #ruby
kp666 has joined #ruby
hamakn has joined #ruby
oo_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
scripore has joined #ruby
mac__ has joined #ruby
ta has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
josephndenton has joined #ruby
blizzy has joined #ruby
havenwood has quit [Remote host closed the connection]
snath has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
odin22 has quit [Quit: leaving]
hamakn has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
sdwrage has joined #ruby
spicerack2 has joined #ruby
teddyp1cker has joined #ruby
hamakn has quit [Remote host closed the connection]
ta has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 265 seconds]
user_name_boxx_ has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 276 seconds]
jerematic has joined #ruby
davedev24_ has joined #ruby
taiansu has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
Tricon has quit [Ping timeout: 272 seconds]
ta has joined #ruby
dseitz has joined #ruby
jerematic has quit [Ping timeout: 245 seconds]
g-nom3 has joined #ruby
sumark has joined #ruby
ta has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
ta has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
iMe has joined #ruby
user_name_boxx_ has quit [Read error: Connection reset by peer]
_X_C_V_B_ has quit [Quit: Leaving]
snath has joined #ruby
Mia has quit [Read error: Connection reset by peer]
pdoherty has quit [Ping timeout: 252 seconds]
ta has quit [Ping timeout: 245 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
taiansu has quit []
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Ulrike_Rayne is now known as ulrisaurus
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
ulrisaurus is now known as Ulrike_Rayne
AlexRussia has joined #ruby
tkuchiki has joined #ruby
skinux has quit [Quit: skinux]
teddyp1cker has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
kotk has joined #ruby
kotk_ has quit [Read error: Connection reset by peer]
mloveless has quit [Remote host closed the connection]
centrx has joined #ruby
alexblom has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
thejoecarroll has quit [Ping timeout: 264 seconds]
oleo has quit [Quit: Verlassend]
alexblom has joined #ruby
thejoecarroll has joined #ruby
krz has joined #ruby
JDiPierro has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
krz has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
lxsameer has joined #ruby
dfinninger has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
x77686d has joined #ruby
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv_ has joined #ruby
dfinninger has joined #ruby
hgl has quit [Ping timeout: 246 seconds]
ewnd9 has quit [Remote host closed the connection]
hgl has joined #ruby
martinium has quit [Remote host closed the connection]
dfinninger has quit [Read error: No route to host]
dfinninger has joined #ruby
audiodude has joined #ruby
ta has joined #ruby
timonv_ has quit [Ping timeout: 252 seconds]
josephcs has joined #ruby
dfinning_ has joined #ruby
cpt_yossarian has quit [Read error: Connection reset by peer]
dfinninger has quit [Read error: Connection reset by peer]
spicerack2 has quit [Remote host closed the connection]
MasterPiece has quit [Ping timeout: 264 seconds]
martinium has joined #ruby
uptownhr has joined #ruby
oo_ has joined #ruby
cpt_yossarian has joined #ruby
ta has quit [Ping timeout: 276 seconds]
hephaestus_rg has quit [Ping timeout: 246 seconds]
Sgeo has quit [Ping timeout: 244 seconds]
bronak has quit [Quit: Be back later ...]
az7ar has joined #ruby
arup_r has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
bronak has joined #ruby
MasterPiece has joined #ruby
dfinning_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 255 seconds]
josephcs has quit [Read error: Connection reset by peer]
josephcs has joined #ruby
iMe has joined #ruby
djbkd has quit [Remote host closed the connection]
SixiS has joined #ruby
mloveless has joined #ruby
teddyp1cker has joined #ruby
Xeago has joined #ruby
ta has joined #ruby
oo_ has joined #ruby
russt has quit [Quit: russt]
Xeago_ has joined #ruby
ta has quit [Ping timeout: 265 seconds]
mityaz has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 264 seconds]
goodenough has quit [Remote host closed the connection]
<superrorc> Hi there!
<centrx> hi
<superrorc> how can i puts variable like this - http://pastebin.com/raw.php?i=310PDXMQ
<centrx> You want to puts a variable, or a string with "" ?
bronak has quit [Ping timeout: 264 seconds]
ndrei has quit [Remote host closed the connection]
<superrorc> will read ip and mac from file
<superrorc> what is best approach?
rajeshchawla has joined #ruby
ndrei has joined #ruby
Sgeo has joined #ruby
charliesome has joined #ruby
<centrx> superrorc, The error message you got is because that's now how you do multi-line strings, use heredoc syntax: http://en.wikibooks.org/wiki/Ruby_Programming/Here_documents
<centrx> *not how you do multi-line strings
<centrx> actually I'm wrong, you can do multi-line strings that way
<centrx> but you have quotation marks " in the string, which are the same quotation marks you are using outside of the string
<centrx> The cleanest way to do it is with the heredocs
asteros has quit [Quit: asteros]
<centrx> You could also replace the enclosing double quotations marks ", with single quotes ', so that it does not conflict with the double quotation marks in the string
jonesthedolphin has joined #ruby
tagrudev has joined #ruby
pothepanda has joined #ruby
noop has joined #ruby
mclee has quit [Ping timeout: 244 seconds]
krz has joined #ruby
wallerdev has joined #ruby
rajeshchawla has quit []
rajeshchawla has joined #ruby
<superrorc> thanks a lot! will trying now
devdazed_ has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
<ips|malc> i have a file foo.rb with this content: @test_json = '{"items":true}'
<Xeago_> Anyone using aws ec2? Is there something better than e-mail notifications for instance notifications?
<ips|malc> how can i use that variable in my current script? i tried require 'foo' but i still can't access @test_json
<ips|malc> how can i use that variable in my current script? i tried require 'foo' but i still can't access @test_json
<ips|malc> argh, sry for double paste
goodenough has joined #ruby
lampd1 has quit [Remote host closed the connection]
apeiros__ has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
apeiros has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
iMe has joined #ruby
krz has quit [Ping timeout: 256 seconds]
<centrx> ips|malc, Works for me
codecop has joined #ruby
JDiPierro has joined #ruby
<ips|malc> hmm strange
<ips|malc> maybe because i'm in a describe -> it block ?
<centrx> Usually it's best to encapsulate things in objects, or at least methods
oo_ has quit [Remote host closed the connection]
<ips|malc> i just want some sample json to use inside of a test
<ips|malc> and i've read putting that stuff into /fixtures is best place
<ips|malc> now i'm trying to load that variable, that contains the json into my test
djbkd has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
apeiros__ has quit [Remote host closed the connection]
oo_ has joined #ruby
anarang has joined #ruby
tobago has joined #ruby
bronson has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
pawprint has quit [Ping timeout: 265 seconds]
audiodude has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Sawbones has joined #ruby
rajeshchawla has quit []
josephndenton has quit [Ping timeout: 264 seconds]
krz has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
bal has joined #ruby
timonv_ has joined #ruby
parduse has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
devdazed has joined #ruby
Sawbones has quit [Remote host closed the connection]
Obversity has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
devdazed_ has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
booly-yam-5635 has quit [Ping timeout: 265 seconds]
audiodude has joined #ruby
luriv has joined #ruby
Sawbones has joined #ruby
Obversity is now known as obversity
sinkensabe has joined #ruby
jerematic has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
ta has joined #ruby
obversity is now known as Sarchasm
omosoj has joined #ruby
<omosoj> what happens when i do $ruby program1.rb?
<omosoj> the script is compiled?
<Cope> it's 'interpreted'
krz has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
<SparkMasterTape> !give
<Cope> for (much) more details I recommend http://patshaughnessy.net/ruby-under-a-microscope
iMe has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 265 seconds]
<omosoj> by what?
keen__________37 has joined #ruby
El3k0n has joined #ruby
amclain has quit [Quit: Leaving]
keen__________36 has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
mloveless has quit []
blizzy has quit [Ping timeout: 245 seconds]
El3k0n has quit [Remote host closed the connection]
<omosoj> an 'interpreter'?
bronak has joined #ruby
<sevenseacat> yes.
jefus_ has joined #ruby
^wald0 has quit [Quit: ^wald0]
<omosoj> to go deeper, what is the interpreter? a process or something?
<sevenseacat> oh no, not this again.
iMe has quit [Quit: Bye Bye]
_Andres has joined #ruby
jefus has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
ta has joined #ruby
pdoherty has joined #ruby
bronak has quit [Ping timeout: 276 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
MuffinPimp has quit [Ping timeout: 265 seconds]
anarang has quit [Ping timeout: 245 seconds]
TheNet has quit [Quit: Leaving...]
kl has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
dc_ has quit [Remote host closed the connection]
kl has quit [Ping timeout: 245 seconds]
CpuID2 has quit [Ping timeout: 264 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
MrSamuel has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<MrSamuel> Why does "".split('.') return an empty array and not an array with [''] ?
bal has quit [Quit: bal]
dc_ has joined #ruby
commmmodo has quit [Read error: Connection reset by peer]
dc_ has quit [Remote host closed the connection]
Spami has joined #ruby
anarang has joined #ruby
commmmodo has joined #ruby
claptor has quit [Quit: this channel is bakas]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
JDiPierro has joined #ruby
CpuID has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
oo_ has quit [Remote host closed the connection]
MuffinPimp has joined #ruby
ta has joined #ruby
soxet has quit [Ping timeout: 245 seconds]
<Xeago_> MrSamuel: the definition of splitting something means getting two edges
dc_ has joined #ruby
<Xeago_> what would the edge of "" split by . be?
dc_ has quit [Remote host closed the connection]
mjuszczak has quit []
<Xeago_> "" + '.' + "" != ""
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<Xeago_> the value of #split(separator) should be the opposite of #join(separator)
JDiPierro has quit [Ping timeout: 272 seconds]
<Xeago_> such that when applying these functions in succession it should give back the original
oo_ has joined #ruby
<Xeago_> it is also irrelevant of the order: i.e. S(J(x)) is the same as J(S(X))
josephndenton has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<Xeago_> where S and J denote functions applying a #split(separator) and #join(separator) respectively
<MrSamuel> Xeago_, sure that makes sense, but it doesn't match up with reality, i.e. "x".split('.') gives ['x'] and ['x'].join('.') gives 'x', which is exactly the same as if it was just whitespace
bronson has joined #ruby
<MrSamuel> i.e. "".split('.') -> [''] and [''].join('.') gives '' which is absolutely valid
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<MrSamuel> unfortunately in Ruby's case "".split('.') gives [] which is an edge case and is documented
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
shime has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
unshadow has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
MasterPiece has quit [Ping timeout: 265 seconds]
chipotle has quit [Read error: Connection reset by peer]
<arup_r> I want to write something.. But before doing that I want to see how it works.. I am planning currently to write a standalone Ruby script to test this - http://techlearningforum.com/post/Bill-Desk-Payment-Gateway-Integration-Approach.aspx . One thing I don't have currently any website, which the page asking to put in the "ReturnUrl".. So without "ReturnUrl" any way I can receive the response.
last_staff has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<Xeago_> >> "".join('.')
<eval-in_> Xeago_ => undefined method `join' for "":String (NoMethodError) ... (https://eval.in/244528)
<Xeago_> wat
chipotle has joined #ruby
msgodf has joined #ruby
<arup_r> Xeago_: It is Array method
<arup_r> Not a String#join
Morkel has joined #ruby
terlar has joined #ruby
<MrSamuel> >> [""].join('.')
<eval-in_> MrSamuel => "" (https://eval.in/244529)
<MrSamuel> >> [].join('.')
<eval-in_> MrSamuel => "" (https://eval.in/244530)
<arup_r> >> Array.public_method_defined?(:join)
<eval-in_> arup_r => true (https://eval.in/244531)
bdamos has joined #ruby
dc_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dc_ has quit [Remote host closed the connection]
<MrSamuel> >> "".split('.')
<eval-in_> MrSamuel => [] (https://eval.in/244532)
<arup_r> >> String.public_method_defined?(:join)
<eval-in_> arup_r => false (https://eval.in/244533)
<MrSamuel> >> [""].join('.').split('.')
<eval-in_> MrSamuel => [] (https://eval.in/244535)
<arup_r> Xeago_: ^^^
exadeci has joined #ruby
cocotton has joined #ruby
<MrSamuel> so, that last one, the identity of the function is not preserved
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
soxet has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
kamilc__ has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 264 seconds]
LouisRoR has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
MasterPiece has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
antgel has joined #ruby
Kilo`byte has quit [Ping timeout: 264 seconds]
booly-yam-5635 has joined #ruby
livathinos has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
ta has joined #ruby
Kilo`byte has joined #ruby
audiodude has quit [Ping timeout: 276 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Sarchasm_ has joined #ruby
Sarchasm has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 276 seconds]
<Xeago_> MrSamuel: yea, I don't know what's up with that :|
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<Xeago_> Sorry.
sonOfRa has joined #ruby
nrsk has joined #ruby
timonv has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
ta has joined #ruby
mclee has joined #ruby
dc_ has joined #ruby
dc_ has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Quit: Leaving]
luriv has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einarj has joined #ruby
ta has quit [Ping timeout: 244 seconds]
bluenemo has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
mjuszczak has quit []
LouisRoR has quit [Ping timeout: 265 seconds]
jusmyth has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
ponga has joined #ruby
mroach has quit [Quit: mroach]
ta has joined #ruby
try has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
avril14th has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
ta has joined #ruby
sinkensabe has joined #ruby
alex88 has joined #ruby
<avril14th> morning
oo_ has quit [Remote host closed the connection]
bal has joined #ruby
oo_ has joined #ruby
jusmyth has quit [Quit: Leaving.]
tesuji has joined #ruby
tesuji has quit [Changing host]
tesuji has joined #ruby
dumdedum has joined #ruby
chepre has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
tesuji has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
pawprint has joined #ruby
frobs has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
unshadow has quit [Quit: leaving]
vdamewood has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
fandi has joined #ruby
bluenemo has quit [Quit: Verlassend]
jimmyhoughjr has quit [Ping timeout: 252 seconds]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
ghr has joined #ruby
LouisRoR has joined #ruby
pawprint has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
ferr has joined #ruby
francisfish has joined #ruby
jerematic has joined #ruby
vdamewood has quit [Client Quit]
sevenseacat has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
sdwrage has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 252 seconds]
jerematic has quit [Ping timeout: 252 seconds]
timonv has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
amundj has joined #ruby
jheg has joined #ruby
teddyp1cker has joined #ruby
nrsk has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
MasterPiece has quit [Quit: Leaving]
dfinninger has quit [Ping timeout: 244 seconds]
leafybasil has quit [Remote host closed the connection]
dc_ has joined #ruby
cocotton has joined #ruby
dc_ has quit [Remote host closed the connection]
<ferr> Hey, I need some advices. I need integrational tests to be structured: to configure app through UI, wait for some time until changes are applied, check if changes are applied and everything works. It has to be done by choosing tests order and skipping tests if configuration fails. What any of you would recommend? Rspec vs cucumber or any other suggestions?
chthon has joined #ruby
olivier_bK has joined #ruby
zarubin has joined #ruby
BlackGear has joined #ruby
MasterPiece has joined #ruby
cocotton has quit [Ping timeout: 276 seconds]
<MrSamuel> ferr, I prefer rspec
<MrSamuel> ferr, the tests seem more logical and structured and it handles complexity better
Hobogrammer has joined #ruby
bronak has joined #ruby
<ferr> Okay, we are currently with Rspec, but how would you solve this dependency issue? How do I run tests in order and skip it if configuration is failed?
n008f4g_ has joined #ruby
<MrSamuel> ferr each test file can be run independently
<MrSamuel> you could just group tests logically by file
rdark has joined #ruby
<superrorc> ^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$
<superrorc> for mac addr
<avril14th> the same?
<tobiasvl> superrorc: have you tested it?
<superrorc> yep
<superrorc> line.scan(^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$)
<ferr> Could you please give an example to grouping tests logically by files?
<tobiasvl> superrorc: and what's the problem?
<superrorc> read_clients.rb:5: syntax error, unexpected ']', expecting ')'
<tobiasvl> superrorc: you need / before and after that regex
<tobiasvl> line.scan(/^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/)
arup_r has joined #ruby
<superrorc> thanks!
gregf_ has joined #ruby
<superrorc> no errors but no one matchs
<superrorc> )
AlSquire has joined #ruby
lolmaus has joined #ruby
chepre has quit [Quit: Leaving]
<tobiasvl> the regex itself might not be perfect. I get two matches only (the last two parts).
<tobiasvl> but I do get matches
decoponio has joined #ruby
MiracleBlue_ is now known as MiracleBlue
n008f4g_ has quit [Ping timeout: 264 seconds]
MiracleBlue has quit [Changing host]
MiracleBlue has joined #ruby
MiracleBlue has joined #ruby
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goshdarnyou has quit [Quit: Connection closed for inactivity]
txyovn has joined #ruby
blizzy has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
bronak has quit [Ping timeout: 245 seconds]
sundjango has joined #ruby
aagdbl has joined #ruby
ndrei has joined #ruby
sandelius has joined #ruby
leafybasil has joined #ruby
banister has joined #ruby
pdoherty has joined #ruby
ponga has quit [Quit: Leaving...]
dmolina has joined #ruby
jbw has joined #ruby
AlSquire has quit [Quit: Quitte]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dimaursu16 has quit [Ping timeout: 276 seconds]
atmosx has joined #ruby
sigurding has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
atmosx has quit [Client Quit]
<apeiros> tobiasvl: scan with a regex containing capturing groups will yield arrays containing those groups
atmosx has joined #ruby
<apeiros> tobiasvl: and scan with ^$ regex means you'll only get matches for places where a full line matches the full regex
<atmosx> hello
<banister> apeiros what's up swiss-66
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
omosoj has quit [Quit: leaving]
<apeiros> 66? o0
bal has quit [Ping timeout: 264 seconds]
<apeiros> not much, working on my framework. you bani?
<ferr> MrSamuel: regarding dependent tests, what if I use global variables altogether with rspec pending?
jenrzzz has joined #ruby
<banister> apeiros martin luther king day in USA, so i have the day off
<banister> i'm just lying n bed watching retarded youtube vids
roolo has joined #ruby
uptownhr has quit [Quit: uptownhr]
uptownhr has joined #ruby
blizzy has quit [Ping timeout: 245 seconds]
uptownhr has quit [Client Quit]
timonv has joined #ruby
bronson has joined #ruby
nrsk has joined #ruby
ponga has joined #ruby
<ponga> hi
<ponga> shevy:
<ponga> he's sleeping :P
ta_ has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
<ddv> banister: Are you not located in the low lands?
<banister> ddv i'm in holland
davidhq has joined #ruby
<ddv> banister: So no day off for you
<banister> ddv i work for an american company
Zai00 has joined #ruby
<ddv> banister: This is ridiculous!
<tobiasvl> martin luther king day :o
<banister> ddv remote work :)
<ddv> banister: ah :-)
ferr has quit [Ping timeout: 245 seconds]
<tobiasvl> so the reason the US has all those weird holidays off is because you're completely non-religious, right? no religious holidays allowed
<tobiasvl> or something
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
jonathan_alban has joined #ruby
jonathan_alban has quit [Client Quit]
troubadour has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
mroach has joined #ruby
JDiPierro has quit [Ping timeout: 272 seconds]
kl___ has joined #ruby
n008f4g_ has joined #ruby
<arup_r> Any pointer please, how can I submit a post request using Ruby? here is the form - https://gist.github.com/aruprakshit/887470da482c66ae9398
Macaveli has joined #ruby
<arup_r> I don't have any webpage.. I just want to write a standalone script, which will submit data as the form does..
dfinninger has joined #ruby
sigurding has quit [Quit: sigurding]
rocknrollmarc has joined #ruby
banister has quit [Read error: Connection reset by peer]
nkts has joined #ruby
shime has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
iwishiwerearobot has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
dfinninger has quit [Ping timeout: 245 seconds]
dimaursu16 has joined #ruby
sdwrage has joined #ruby
norc has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
norc has quit [Changing host]
norc has joined #ruby
norc has joined #ruby
workmad3 has joined #ruby
<norc> Hi. I have an Array of the form [1,2,3,4,5,1,2,3,1,2,3,4] that I would like to transform into [[1,2,3,4,5],[1,2,3],[1,2,3,4]]. Can any come up with an elegant one liner to accomplish this?
<arup_r> What's the logic?
<arup_r> is this the pattern 5-3-4 ?
<arup_r> norc: ^^
sdwrage has quit [Client Quit]
<norc> arup_r: Sequences of numbers.
<arup_r> ahh.. Ok
sigurding has joined #ruby
<workmad3> norc: yes... but what's the logic of when you want to split?
<norc> workmad3: whenever the sequence resets
AlSquire has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<norc> I mean I have a simple solution with each_cons, but I was wondering how much ruby magick one can do to do this in a oneliner
<workmad3> norc: so goes back to 1? or when, given 2 consecutive elements 'a' and 'b', when a > b?
ponga has quit [Remote host closed the connection]
kl___ has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
teddyp1cker has joined #ruby
<norc> workmad3: Yes it goes back to 1.
<norc> I mean okay actually I just have to scan for 1s
<arup_r> >> a = [1,2,3,4,5,1,2,3,1,2,3,4] ; p a.slice_when {|i, j| i+1 != j }
<eval-in_> arup_r => #<Enumerator: #<Enumerator::Generator:0x40a5bd34>:each> ... (https://eval.in/244552)
<arup_r> >> a = [1,2,3,4,5,1,2,3,1,2,3,4] ; p a.slice_when {|i, j| i+1 != j }.to_a
<eval-in_> arup_r => [[1, 2, 3, 4, 5], [1, 2, 3], [1, 2, 3, 4]] ... (https://eval.in/244553)
<arup_r> norc: ^^^
<workmad3> arup_r: or just .slice_when {|_,j| j == 1}
<workmad3> but yeah... slice_when seems like the way to go (thanks arup_r, I'd not noticed that method before :) )
terlar has quit [Quit: WeeChat 1.1]
<norc> arup_r: Wow that is neat. Is slice_when relatively new?
<arup_r> I was trying my editor.. Didn't work as.. Rvm selected 2.0.0 here.. Now I understood.. :)
<arup_r> Yes...
<arup_r> 2.2.0
teddyp1c_ has joined #ruby
<arup_r> slice_when and a.slice_after 2 added..
<norc> Now Im jealous.
* norc wants ruby 2.2
<arup_r> norc: for what?
<arup_r> Awwww!!!!!!!
<arup_r> :)
<norc> hehe
<workmad3> hmm...
<arup_r> shevy: Around?
teddyp1cker has quit [Read error: Connection reset by peer]
<norc> arup_r: I mean, slice_when seems really really useful for lots of things Im doing right now
<workmad3> p [1,2,3,4,5,1,2,3,1,2,3,4].slice_before(1).to_a
<workmad3> >> p [1,2,3,4,5,1,2,3,1,2,3,4].slice_before(1).to_a
<eval-in_> workmad3 => [[1, 2, 3, 4, 5], [1, 2, 3], [1, 2, 3, 4]] ... (https://eval.in/244554)
<workmad3> arup_r: there's slice_before too ;)
<norc> workmad3: I told him to split whenever the sequence resets
<norc> So his solution was spot on
<norc> ÖP
<norc> :p
<arup_r> workmad3: Will now be chewing those methods
<workmad3> norc: you then said 'when it goes back to 1'
<workmad3> norc: so slice_before(1) is more elegant ;)
<norc> workmad3: Either way it is a solution :)
<norc> Now I just need to implement this method in ruby 2.0 somehow :D
Bishop has quit [Quit: Bishop]
g-nom3 has left #ruby [#ruby]
El3k0n has joined #ruby
ta_ has joined #ruby
<workmad3> arup_r: hmm... odd
aob has quit [Quit: leaving]
hanachin has quit [Remote host closed the connection]
kl__ has joined #ruby
bronak has joined #ruby
otertore has quit [Read error: Connection reset by peer]
otertore has joined #ruby
troubadour has quit [Quit: troubadour]
mroach has quit [Quit: mroach]
jonesthedolphin has quit [Remote host closed the connection]
pothepanda has quit [Quit: Leaving]
ta has quit [Ping timeout: 245 seconds]
kstuart has joined #ruby
kstuart has quit [Client Quit]
rodfersou has joined #ruby
MasterPiece has quit [Quit: Leaving]
ponga has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
teddyp1c_ has quit []
kstuart has joined #ruby
shay- has joined #ruby
kstuart has quit [Client Quit]
<arup_r> I want to come in this world again next time having some attitude like this guy - https://www.youtube.com/watch?v=Ozipf13jRr4 :)
dimaursu16 has quit [Ping timeout: 255 seconds]
ta has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
ldnunes has joined #ruby
sevenseacat has joined #ruby
ikanobori_ is now known as ikanobori
ikanobori has quit [Changing host]
ikanobori has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
sundjango has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
hgl has quit [Ping timeout: 272 seconds]
hgl has joined #ruby
nuck has quit [Ping timeout: 265 seconds]
bronak has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
dimaursu16 has joined #ruby
josephndenton has joined #ruby
jerematic has joined #ruby
Macaveli has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
fandi has quit [Quit: Leaving]
ferr has joined #ruby
Macaveli has joined #ruby
charliesome has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jerematic has quit [Ping timeout: 256 seconds]
<superrorc> How to run FOR loop for all elements array? help lps
<superrorc> in array*
Xeago has joined #ruby
<avril14th> superrorc: array.each ?
<avril14th> for (0..array.length - 1).each ?
<superrorc> will trying
<superrorc> ty for replay
astrobunny has quit [Remote host closed the connection]
marr has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
mroach has joined #ruby
Xeago_ has quit [Ping timeout: 240 seconds]
banister has joined #ruby
shredding has joined #ruby
Xeago_ has joined #ruby
ta has quit [Ping timeout: 256 seconds]
speaking1ode has quit [Remote host closed the connection]
vvhh1 has joined #ruby
nrsk has quit [Ping timeout: 252 seconds]
<superrorc> its works, and how can i puts all 1st elements of pairs - like this - array.each.first . my array - [["192.168.3.117", "c8:14:79:7e:93:dd"], ["192.168.3.115", "98:fe:94:21:9c:74"],
ta has joined #ruby
<superrorc> need to get only all ipaddrs
Xeago has quit [Ping timeout: 246 seconds]
<superrorc> array.each do
<superrorc> puts array.each.first
<superrorc> end
<superrorc> all times print 192.168.3.117
vvhh1 has quit [Client Quit]
vvhh1 has joined #ruby
El3k0n has quit [Remote host closed the connection]
bal has joined #ruby
vvhh1 has quit [Client Quit]
vvhh1 has joined #ruby
fgo has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
terlar has joined #ruby
vvhh1 is now known as vvoo
dimaursu16 has quit [Ping timeout: 255 seconds]
sundjango has joined #ruby
vvoo has quit [Remote host closed the connection]
vvhh has joined #ruby
vvhh has quit [Client Quit]
vvhh has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
jonesthedolphin has joined #ruby
dimaursu16 has joined #ruby
kstuart has joined #ruby
Darryl___ has joined #ruby
<ferr> Is there a term for tests which depend on each other?
<canton7> "shit"? :P seriously, dependent or interdependent
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
<avril14th> superrorc: puts array.map(&:first)
kaspertidemann has joined #ruby
<superrorc> avril14th: thanks a lot dude! got it
bayed has joined #ruby
bigkevmcd has joined #ruby
hgl has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
<norc> Here is a bit of a dumb question, but if I inherit from a class like Array, how can I implement a destructive method?
hgl has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<avril14th> norc: what's "destructive" ?
withnale_ has joined #ruby
martinium has quit [Remote host closed the connection]
<tobiasvl> a method that modifies its array in-place?
<norc> tobiasvl: Yes.
<norc> avril14th: Think .flatten! as opposed to .flatten
<avril14th> well, just reference the array with self?
vvhh has quit [Quit: vvhh]
<avril14th> ah
<avril14th> got it
ponga has joined #ruby
vvhh has joined #ruby
<avril14th> may I ask what's the method doing? can it be a combinaison of array standard bang methods?
<tobiasvl> what do you want to do in the method? can you just call Array's own methods with no receiver, or do you need completely new behavior?
<norc> Im implementing a new behavior. Basically it's stacked arrays that Im rearranging a lot.
terlar has quit [Ping timeout: 246 seconds]
<norc> Ah, guess I can just use self.replace to change the array itself.
<tobiasvl> yeah, you can do that
troubadour has joined #ruby
sundjango has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 255 seconds]
<shevy> what exactly does ||= mean?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<Xeago_> a || a = b
<Xeago_> with the addition that if a is undefined it doesn't fail
<norc> shevy: It assigns to the variable only if the variable equates to false
shime has joined #ruby
<Xeago_> >> a || a = b
<eval-in_> Xeago_ => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/244572)
<Xeago_> norc: :)
<canton7> s/equates to false/is fasly/ - both false and nil are falsy
<shevy> hmm
bluOxigen has quit [Ping timeout: 245 seconds]
<Xeago_> canton7: what about undefined?
<norc> undefined is the case this is for.
<Xeago_> >> true if a
<eval-in_> Xeago_ => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/244573)
<Xeago_> a is not falsy nor truethy in that context
<norc> Yeah that was my bad. Either way, I only ever see it being used to assign to a variable if its not defined yet.
<canton7> Xeago_, I'm not ignoring your 'with the addition...' - that's still valid :P
<tobiasvl> >> a ||= 1
<eval-in_> tobiasvl => 1 (https://eval.in/244574)
<tobiasvl> ;)
sandelius has joined #ruby
bluOxigen has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
sandelius has quit [Client Quit]
<tobiasvl> shevy: anyway, syntactically `a ||= b` means `a || a = b` just like `a += b` means `a = a + b`. and because of precedence it means `(a || (a = b)`, so if a is not truthy the right side of || will be evaluated because it's truthy no matter what
startupality has quit [Quit: startupality]
<tobiasvl> unless of course the right hand side throws a NameError
AlexRussia has quit [Ping timeout: 264 seconds]
<shevy> I understand a +=b, I am having a much harder time with a ||= b
pdoherty has joined #ruby
<tobiasvl> still having problems after my awesome explanation?
<shevy> I would never dare to admit so!
g-nom3 has joined #ruby
bronson has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
lamasnik has quit [Ping timeout: 264 seconds]
<shevy> with a += b it seems easy enough
<shevy> a = 0; b = 1; a += b means a is now 1
g-nom3 has joined #ruby
cantonic has quit [Quit: cantonic]
<shevy> I don't quite grok how to translate this into the ||
<tobiasvl> a = nil; b = 1; a ||= b means a is now 1
<tobiasvl> a = 2; b = 1; a ||= b means a is still 2
<tobiasvl> basically it means "if not a, set a to b"
zwer_s has joined #ruby
<scottstamp> It's kind of like shorthand for a = b if !a.nil?
<tobiasvl> hmm no, more like a = b if !a
<tobiasvl> or well hmmmmmm
pdoherty has quit [Ping timeout: 244 seconds]
<tobiasvl> how to translate this into code that doesn't throw a NameError? :P
Joufflu has quit [Ping timeout: 245 seconds]
<scottstamp> Use a defined? check first.
ta_ has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
<tobiasvl> yes, good
<scottstamp> ||= won't save you if you're trying to apply it to an object that doesn't exist
<tobiasvl> because your check sets a only if it's NOT nil, which is kinda backwards
bronson has quit [Ping timeout: 252 seconds]
<tobiasvl> sure it will.
<tobiasvl> >> non_existant ||= "hello"; puts non_existant
<eval-in_> tobiasvl => hello ... (https://eval.in/244576)
<scottstamp> oh, derp, you're right
red_horned_rihno has joined #ruby
<scottstamp> http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html "Undefined Variables: Another Tricky Case" > "That is, a variable assignment, even if not run, immediately summons that variable into being."
patric100e99 has joined #ruby
patrick99e99 has quit [Read error: Connection reset by peer]
bronak has joined #ruby
sigurding has joined #ruby
<tobiasvl> hoho
<scottstamp> Ruby: if there's an edge case, there's probably an accompanying blog post.
ta_ has quit [Ping timeout: 276 seconds]
<scottstamp> :D
oo__ has quit [Remote host closed the connection]
josephcs has quit [Quit: (null)]
n008f4g_ has quit [Ping timeout: 246 seconds]
kp666 has quit [Remote host closed the connection]
kt2 has joined #ruby
shredding has quit [Quit: shredding]
mroach has quit [Quit: mroach]
sundjango has joined #ruby
troubadour has quit [Quit: troubadour]
jerematic has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
oo_ has joined #ruby
kirun has joined #ruby
sigurding has quit [Quit: sigurding]
fgo_ has joined #ruby
jerematic has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
bronak has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 265 seconds]
ferr has quit [Ping timeout: 252 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
BlackGear has joined #ruby
ta_ has joined #ruby
joonty has joined #ruby
JDiPierro has quit [Ping timeout: 272 seconds]
<shevy> guys
<workmad3> shevy:
<shevy> you explained it
<shevy> and even then made mistakes
<shevy> !!!
<shevy> like scottstamp!
<tobiasvl> in MY defense, I said "means", not "is equivalent to" ;)
<tobiasvl> but yeah, seems it's more advanced than I thought too
postmodern has quit [Quit: Leaving]
<scottstamp> nobody said explaining things made you correct! :3
<banister> watch wit me
tkuchiki has quit [Ping timeout: 276 seconds]
lamasnik has joined #ruby
<workmad3> banister: drats, I don't have a spare 45m right now
<banister> :(
SparkMasterTape has quit [Quit: Leaving]
kl__ has quit [Ping timeout: 255 seconds]
gccostabr has joined #ruby
<workmad3> banister: give me about 10 mins to finish some bits off, I'll watch over lunch :P
Allaman has joined #ruby
kl___ has joined #ruby
Quintasan has left #ruby [#ruby]
goodenough has quit [Remote host closed the connection]
BlackGear has quit [Remote host closed the connection]
BlackGear has joined #ruby
kiddo__ has joined #ruby
<kiddo__> Delayed job start a process for each new job. I would like use a queue system that would use the same memory cache for all the jobs on the queue. Is there such a system?
bluOxigen has quit [Ping timeout: 276 seconds]
hiyosi has joined #ruby
amil has joined #ruby
<scottstamp> Resque/Sidekiq with memcached for your object store maybe?
roolo has quit [Remote host closed the connection]
kamilc__ has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
Macaveli has quit [Remote host closed the connection]
n1lo has joined #ruby
sundjango has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
BlackGear has quit [Remote host closed the connection]
BlackGear has joined #ruby
ponga has joined #ruby
withnale_ has left #ruby ["Be back later ..."]
Squarepy has joined #ruby
BlackGear has quit [Remote host closed the connection]
<avril14th> Sidekiq is redis only IIRC
bluOxigen has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
BlackGear has joined #ruby
sundjango has joined #ruby
blackoperat has joined #ruby
<scottstamp> eh both are from the looks of things - could just run the Redis db without write to disk *shrug*
ponga has quit [Ping timeout: 276 seconds]
aagdbl has quit [Quit: Connection closed for inactivity]
psy_ has quit [Read error: Connection reset by peer]
nrsk has joined #ruby
shime_ has joined #ruby
cantonic has joined #ruby
El3k0n has joined #ruby
kiddo__ has quit [Ping timeout: 246 seconds]
ta__ has joined #ruby
BlackGear has quit [Quit: ZZZzzz…]
ta has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
El3k0n has quit [Remote host closed the connection]
ponga has joined #ruby
bluOxigen has quit []
Photism has joined #ruby
function90 has quit [Read error: Connection reset by peer]
function90 has joined #ruby
tkuchiki has joined #ruby
josephndenton has joined #ruby
Pumukel has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
txyovn has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 252 seconds]
rebcabin has joined #ruby
Macaveli has joined #ruby
larissa has joined #ruby
nrsk has quit [Remote host closed the connection]
ayhhpi has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
terlar has joined #ruby
kaspertidemann has quit []
bronak has joined #ruby
blizzy has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bMalum has joined #ruby
troubadour has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
shredding has joined #ruby
B1n4r10 has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
JDiPierro has joined #ruby
iamninja has joined #ruby
Allaman has quit [Quit: No Ping reply in 180 seconds.]
troubadour has quit [Ping timeout: 245 seconds]
Allaman has joined #ruby
bronak has quit [Ping timeout: 244 seconds]
aclearman037 has joined #ruby
socash has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Ping timeout: 264 seconds]
socash has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
jerematic has joined #ruby
joonty has quit [Quit: joonty]
rocknrollmarc has quit [Ping timeout: 256 seconds]
martinium has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
Guest78582 has quit [Changing host]
Guest78582 has joined #ruby
dc_ has quit [Remote host closed the connection]
Guest78582 is now known as daynaskully
bjornar has joined #ruby
rocknrollmarc has joined #ruby
kl___ has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
Akuma has joined #ruby
schickung has joined #ruby
schickung has quit [Client Quit]
DaniG2k has quit [Ping timeout: 245 seconds]
d10n-work has joined #ruby
cocotton has joined #ruby
Akuma has quit [Client Quit]
hanmac1 has joined #ruby
nomadicoder has joined #ruby
az7ar is now known as az7ar_away
brb3 has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
russt has joined #ruby
kaspertidemann has joined #ruby
DaniG2k has joined #ruby
pragmaticivan has quit [Remote host closed the connection]
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
bronson has joined #ruby
robertt_dex has joined #ruby
nomadicoder has quit [Quit: Leaving.]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
shadeslayer has joined #ruby
bal has quit [Quit: bal]
kiddo__ has joined #ruby
psy_ has joined #ruby
<kiddo__> scottstamp: was you're reply for me?
pontiki` has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 276 seconds]
ta has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
fandi has joined #ruby
Morkel has quit [Quit: Morkel]
pdoherty has joined #ruby
bMalum has quit [Quit: bMalum]
icbm has quit [Quit: Computer sleeping]
charliesome has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
davidhq has joined #ruby
Photism has quit [Quit: Leaving]
pdoherty has quit [Ping timeout: 246 seconds]
MasterPiece has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
function90 has quit [Ping timeout: 272 seconds]
maxsilver has joined #ruby
roshanavand has joined #ruby
dfinninger has joined #ruby
roshanavand has quit [Max SendQ exceeded]
joonty has joined #ruby
roshanavand has joined #ruby
ta has quit [Ping timeout: 245 seconds]
anarang has quit [Quit: Leaving]
<shevy> when I redirect stdout
<shevy> do I have to use StringIO.new ?
function90 has joined #ruby
pontiki` has quit [Quit: going to work]
<waxjar> it's not mandatory
nateberkopec has joined #ruby
<shevy> hmm
dfinninger has quit [Ping timeout: 276 seconds]
troubadour has joined #ruby
nrsk has joined #ruby
Photism has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
<waxjar> hmm, which API would #ruby prefer? https://gist.github.com/britishtea/6fa8a6b9b4c78e253e69
ta has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
<shevy> >> RubyToken.class
<eval-in_> shevy => uninitialized constant RubyToken (NameError) ... (https://eval.in/244603)
avril14th has quit [Remote host closed the connection]
ferr has joined #ruby
<shevy> man
<shevy> >> require 'irb/ruby-token'; RubyToken.class
<eval-in_> shevy => Module (https://eval.in/244604)
<shevy> waxjar you could offer both
<shevy> waxjar I prefer the first because I love []
<shevy> I dont have to remember anything when I use []
<shevy> another advantage is that [] is shorter there
<shevy> :-)
<Rylee> [] is a very stylistically Ruby construct
<waxjar> my worry is that you have to do a lot of output checking, because it could return a boolean, a String or an Array.
<Rylee> you already have to handle the modes separately in every IRC lib and IRC impl ever
Morkel has joined #ruby
hmnhf has joined #ruby
roshanavand has quit [Quit: Leaving.]
<shevy> it can return three different values?
<Rylee> this is made simpler by the fact that modes are separated in the ISUPPORT by their type
<shevy> ah now I see
<shevy> you merged two methods into []
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
<Rylee> "CHANMODES=eIbq,k,flj,CFLMPQScgimnprstz" -- list-likes, always has a parameter, only has a parameter when set, and never has a parameter -- see http://www.irc.org/tech_docs/005.html
<waxjar> think i'll go with the first one then, thanks guys :)
<Rylee> have fun!
sevenseacat has quit [Remote host closed the connection]
roshanavand has joined #ruby
davedev24_ has joined #ruby
DaniG2k has quit [Ping timeout: 272 seconds]
tier has joined #ruby
bronak has joined #ruby
solars has joined #ruby
<solars> is there something that for a particular method, shows all the references (files/lines/other methods) that call it?
<waxjar> git grep :p
<shevy> don't think ruby has this kind of live-code show solars
djbkd has joined #ruby
<ddv> solars: during runtime?
<solars> nope
<ddv> solars: my ide supports it, probably some other editors and ide's as well
<solars> which one?
<ddv> solars: intellij
<solars> alright, thanks
<kiddo__> Job server using ruby cached objects for different jobs. How can I do it?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
zarubin has quit [Remote host closed the connection]
DaniG2k has joined #ruby
grn has joined #ruby
<wasamasa> redis, redis, redis, redis
kl___ has joined #ruby
sundjango has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
dblessing has joined #ruby
rdark has quit [Quit: leaving]
<solars> resque to be more specific
<kiddo__> wasamasa: with resque?
sundjango has joined #ruby
<wasamasa> doesn't really matter, but it sounds like the most convenient option
<ddv> sidekiq
<ddv> activejob
<kiddo__> delayed jobs launches an independent process for each job. Is resque only one process?
metadave has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robertt_dex has quit [Remote host closed the connection]
kl__ has joined #ruby
davidhq has quit [Client Quit]
it0a has joined #ruby
<kiddo__> I have to load a lot of data for each job. So the server just blows up with delayed job because different jobs are not sharing the cached objects. With sidekiq or resque will this problem go away?
grn has quit []
martinium has joined #ruby
zarubin has joined #ruby
sundjango has quit [Ping timeout: 272 seconds]
Morkel_ has joined #ruby
jerius has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
yeticry has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Squarepy has quit [Ping timeout: 265 seconds]
cpruitt has joined #ruby
JDiPierro has joined #ruby
bronak has quit [Ping timeout: 240 seconds]
ta has quit [Read error: No route to host]
juanpablo______ has joined #ruby
<ddv> kiddo__: yes
<ddv> kiddo__: well I don't know about resque
<ddv> >>> Sidekiq uses threads to handle many jobs at the same time in the same process.
<eval-in_> ddv => /tmp/execpad-9933a10b91a9/source-9933a10b91a9:2: syntax error, unexpected '>' ... (https://eval.in/244616)
roolo has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
cantonic has joined #ruby
kamilc__ has joined #ruby
amil has quit [Ping timeout: 255 seconds]
<kiddo__> ddv: thanks
martinium has quit [Ping timeout: 272 seconds]
<kiddo__> I guess I will try sidekiq then since it is so popular nowadays
<kiddo__> Anyone favours resque over sidekiq in any extent?
cocotton has joined #ruby
<banister> kiddo__ you've been talking this for the last 2 hours, if you don't figure it out soon, everyone in this channel is gonna beat u with sticks and chase u out of town
<ddv> :)
B1n4r10 has joined #ruby
ta has joined #ruby
wpp has joined #ruby
<ddv> no violence on martin luther king day, banister
ARCADIVS has quit [Quit: ARCADIVS]
arup_r has quit []
<kiddo__> banister: don't you fancy sidekiq or what?
<wpp> I'm on ruby 2.2.0p0
<ddv> wpp: congratz
<banister> ddv we'll save the violence up for tomorrow then
<wpp> ddv?
<banister> kiddo__ only thing im interested in now are documentaries on mass extinctions
cocotton has quit [Ping timeout: 264 seconds]
<wpp> I can't find any special characters in vim (:set list) but something is screwing this string up
<kiddo__> banister: I thought so
kl__ has quit [Ping timeout: 245 seconds]
kl___ has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
ta__ has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<kiddo__> Just for conclusion: resque works single-threaded just like delayed jobs. So sidekiq is the winner.
bronson has joined #ruby
kl__ has joined #ruby
kl___ has joined #ruby
<wpp> File.read seems to work, but somehow I can't freaking paste this into irb
Pisuke has quit [Quit: WeeChat 1.1-rc1]
<workmad3> wpp: are you trying to do something like set 'c' equal to the string 'IN IP4 ...'?
<workmad3> wpp: and is that gist meant to be ruby?
rebcabin has quit [Quit: Leaving.]
<workmad3> wpp: or are you just trying to do 'some_var = "<entire contents of that gist>"'?
nateberkopec has quit [Quit: Leaving...]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
josephndenton has quit [Ping timeout: 272 seconds]
bzeu has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<wpp> workmad3 thats something I get from my browser and I originially wanted to paste it into irb to get the length of the string
<bzeu> Hey guys. About to start some web development and my language of choice was Python. But as I read the internet, people do suggest Ruby even though you might never hear of Ruby if you are a novice.
<wpp> workmad3 but somehow it screws up the string if I try to paste it
<bzeu> What do you think of Ruby nowdays?
<workmad3> wpp: screws up how?
<bzeu> PS: I'm not a novice
<workmad3> wpp: as it looks fine to me
AFKGeek has joined #ruby
<workmad3> bzeu: unsurprisingly, us lot here think ruby is pretty good :P
j416 has joined #ruby
<banister> bzeu ruby jobs pay more than python jobs, and ruby devs are rarer :)
silkfox has joined #ruby
<workmad3> banister: and more awesome... </shameless-ego-stroking> ;)
<banister> workmad3 hehe, ya.
<wpp> workmad3 there is some random arrangement, haha I cant describe it. but from_file.length => 1909, from_clipboard.length
<bzeu> I don't care about the money right now but the possibilities. Could I use Ruby for an entire website (large) one or would Asp .NET / Java be better? Never really used Ruby before so I kinda suck.
<wpp> workmad3 1888
josephndenton has joined #ruby
<ddv> bzeu: well there is a framework called Rails
<apeiros> Asp? *shudder*
psy_ has quit [Ping timeout: 245 seconds]
<wpp> workmad3 for example the candidate lines: a=candidate ... look fine in the gist, when I paste it one is suddenly a=1.
Tricon has joined #ruby
<ddv> bzeu: it's pretty popular...
<bzeu> Yea heard of Rails.
Xeago has joined #ruby
<bzeu> Oh dang didn't know :)
<bzeu> How quickly do you think I can pick it up? Previous C/C++ programmer.
C1V0 has quit []
<bzeu> And *PHP*
<ddv> bzeu: in a day, mastering it can take years
yxhuvud has joined #ruby
<bzeu> ddv: Of course I'm aiming at mastering it :)
<workmad3> wpp: hmm... odd... when I paste it in, some of the newlines... vanish
<bzeu> Any recommended books for modern ruby?
<wpp> workmad3 YES
<workmad3> wpp: are you on yosemite?
<wpp> workmad3 yes
<kiddo__> bzeu: Are you a windows or linux guy?
<workmad3> wpp: hmm... at a guess, it's a readline or similar bug then
Xeago_ has quit [Ping timeout: 256 seconds]
<kiddo__> bzeu: or ios?
<workmad3> wpp: as the newlines are still there if I paste elsewhere
<wpp> workmad3 do you see any special characters?
<workmad3> wpp: I see several newlines... there seem to be 9 missing
<bzeu> kiddo__: Linux ofc
<workmad3> wpp: which would account for the 18 character discrepancy
tier_ has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
n80_ has joined #ruby
bashusr has quit [Ping timeout: 256 seconds]
<kiddo__> So you should have no problems with ruby and rails
<kiddo__> bzeu: vim?
<bzeu> kiddo__: Why does this matter?
<kiddo__> Because it's all about the mindset for me
bronak has joined #ruby
<kiddo__> If you're a command line coder you will rock in ruby land
<bzeu> I'm not a linux pro either but I will be using only linux from now on.
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
oleo has joined #ruby
bashusr has joined #ruby
<ddv> kiddo__: sounds bullshit to me
<bzeu> kiddo__: Not 24/7 but I love command line coding.
<kiddo__> Imagine that you can just create classes and methods in runtime
cocotton has joined #ruby
rebcabin has joined #ruby
<kiddo__> And completely rebuild you're entire program
vvhh1 has joined #ruby
<workmad3> wpp: it's even worse if I try it in pry...
tier has quit [Ping timeout: 276 seconds]
<workmad3> banister: do you know if there's any limits to the amount of lines you can paste in one go using readlines or similar?
<kiddo__> Plus, open source as everything you need. No hidden gotchas
<wpp> workmad3 lol I dont have pry installed...hang on...
<kiddo__> bzeu: But very important: TDD
<kiddo__> Never skip a test
<banister> workmad3 no, but it'll be worse in pry cos of the way we manipulate each line as it's entered (we rewrite it, color it, indenti it, so on)
<kiddo__> And thats about all you need to know.
<kiddo__> bzeu: Hands on code and welcome to ruby world
<bzeu> kiddo__: Hah thanks
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<bzeu> kiddo__: How long have you been into Ruby?
<kiddo__> Plus, community is fantastic
kreantos has joined #ruby
<workmad3> banister: yeah... it's like there's a 10 or 11 line limit, and then newlines start to go screwy... with pry, it first complains about the " being left open, and then it complains because of invalid syntax :)
MasterPiece has quit [Quit: Leaving]
<kiddo__> bzeu: 2007
<bzeu> kiddo__: I see.
vvhh has quit [Ping timeout: 276 seconds]
B1n4r10 has joined #ruby
<bzeu> One more thing I would like to know is, how's the flow? For example I have seen people creating websites with Java and sometimes a part that seems easy to do in python would take hours in Java. How's ruby? Fast/Slow? Depended on a group or can you do pretty good stuff alone? I would like a realistic answer and not because you love Ruby :D
<kl___> thing I don't like about the Ruby community: it doesn't have a great interest in supporting dependency injection containers (at least we have Dim from the late Jim Weirich) or AOP
vvhh1 has quit [Ping timeout: 244 seconds]
<kiddo__> What is great in Rails and Ruby is that it let's you take the maximum of the surrounded infrastructure
ndrei has quit [Ping timeout: 245 seconds]
<kiddo__> bzeu: Ruby is the fastest you can get
<bzeu> kiddo__: Is this your heart talking?
<workmad3> kiddo__: please avoid unproven superlatives
<kiddo__> bzeu: And this is not because I love ruby. :-)
<banister> bzeu rails/ruby makes extensive use of metaprogramming to generate code for you
<wpp> workmad3 I dunno seems like another string works just fine (17 lines)
<workmad3> wpp: weird
cocotton_ has joined #ruby
mjuszczak has joined #ruby
<kiddo__> workmad3: OK
Pharaoh2 has joined #ruby
<banister> bzeu so long as you follow the conventinos, you can rely on the framework to do most of the plumbing for u, which in other frameworks you'd have to do manually
kamilc__ has quit [Ping timeout: 272 seconds]
Pharaoh2 has quit [Max SendQ exceeded]
ferr has quit [Ping timeout: 244 seconds]
<banister> bzeu for example you don't have to explicit wire up controllers to views
<banister> explicitly
Macaveli has joined #ruby
cocotton_ has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<kiddo__> bzeu: workmad3: banister: Banister did the kindness of putting into english words my superlativism. ;-)
rebcabin has quit [Quit: Leaving.]
cocotton_ has joined #ruby
<bzeu> But is that safe to let the framework do it for you? I don't like to rely on frameworks, maybe I'm wrong.
happyface has joined #ruby
Spami has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
<workmad3> bzeu: you can do a lot of good stuff solo, and depending on what you need there is plenty of support, e.g. full stack - rails, simple APIs - sinatra, static sites - jekyll/middleman... some types of site aren't currently best suited to ruby tools, and a lot of the stuff in rails of convention over configuration has been copied into other languages now too... but on the whole, rails is very good for CRUD-sty
<workmad3> le webapps, pretty good for JSON apis and has decent support for playing around and doing interesting stuff client and server-side
bashusr has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 264 seconds]
thsig has joined #ruby
vvhh has joined #ruby
vvhh has quit [Client Quit]
vvhh1 has joined #ruby
vvhh1 has quit [Remote host closed the connection]
<workmad3> bzeu: define 'safe' in this context
bashusr has joined #ruby
El3k0n has joined #ruby
<workmad3> bzeu: although I'd suggest that if you have concerns or worrys, you could take a stroll through the tests for rails or sinatra... they both have pretty comprehensive test coverage, and core elements in rails (such as the convention-based autowiring) is very solidly tested
pawprint has joined #ruby
ta has quit [Read error: No route to host]
Macaveli has quit [Ping timeout: 265 seconds]
crueber has joined #ruby
slawrence00 has joined #ruby
oo_ has joined #ruby
kaspertidemann has quit []
<workmad3> bzeu: out of curiosity... do you have a mainly PHP background in web dev? or a mainly java background?
icbm has joined #ruby
<workmad3> (those are the two communities I've found with the most resistance to frameworks, for differing reasons)
noop has quit [Quit: Leaving]
krz has joined #ruby
jefus_ is now known as jefus
ta has joined #ruby
ndrei has joined #ruby
<ddv> a lot of php'ers like to constantly reinvent the wheel
pawprint has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
dfinninger has joined #ruby
<bzeu> workmad3: Yes in php
<banister> bzeu lol php
<banister> (sry)
kl___ has quit [Read error: Connection reset by peer]
kl__ has quit [Read error: Connection reset by peer]
russt has quit [Ping timeout: 245 seconds]
goodenough has joined #ruby
<ddv> mosty amateurs use php
kl has joined #ruby
kamilc__ has joined #ruby
kl__ has joined #ruby
athan has joined #ruby
krz has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
kaspergrubbe has quit [Quit: Changing server]
daqo has joined #ruby
daqo has quit [Client Quit]
enebo has joined #ruby
<workmad3> bzeu: ok... well a framework in ruby is somewhat different to a framework in PHP, because ruby is not a language that grew out of crappy CGI scripts and exists only with a 1990s concept of what a URL means
dfinninger has quit [Ping timeout: 265 seconds]
MasterPiece has joined #ruby
ta has quit [Ping timeout: 246 seconds]
bal has joined #ruby
<workmad3> ruby isn't even a primarily web-focussed language... it's more general purpose than PHP... as such, the framework isn't just about trying to impose a structure on scripts that will just-about hang together and work without a framework... it's there to actually provide the services from HTTP request up to application level
<workmad3> bzeu: if you went entirely without a framework in ruby or in python, you'd be basically working from the CGI library in the standard library (or even implementing an HTTP server using the socket library)
wpp has quit [Quit: ZZZzzz…]
<workmad3> bzeu: i.e. possible, but not a good starting point, especially if you want to do stuff rather than re-invent the wheel in yet another slightly bumpy ellipsoid shape
<kl> workmad3: can't believe i'm saying this, but I wish there was more of an "enterprisey" influence in Ruby
wald0 has joined #ruby
<banister> kl those jerks are starting to make an appearance recently
<kl> workmad3: in the ecosystem things like concurrency are suffering, DI containers, aspect-oriented programming
<banister> kl: all their DDD DCI bs
<kl> enterprise perhaps isn't quite the right word for what i'm talking about
dc_ has joined #ruby
ferr has joined #ruby
dc_ has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
<ddv> lol
ta has joined #ruby
<workmad3> kl: I can appreciate concurrency, although ruby does have some reasonable libraries eg. celluloid, eventmachine...
russt has joined #ruby
spyderman4g63 has joined #ruby
^wald0 has joined #ruby
Photism has quit [Quit: Leaving]
<workmad3> kl: but I'm personally not convinced that DI is a massively missing component, apart from for people that only think in terms of DI :P
<kl> workmad3: celluloid isn't good for distributed systems
<workmad3> kl: and I've not really seen a convincing case for AOP even in ecosystems that use it
lmickh has joined #ruby
<kl> workmad3: DI has let me simplify some of my applications *massively*
ixti has quit [Ping timeout: 255 seconds]
martinium has joined #ruby
martinium has joined #ruby
<kiddo__> workmad3: People use node over eventmachine. We should something about it. I believe Ruby is not well promoted on that field. What do you think?
Spami has quit [Quit: This computer has gone to sleep]
<kl> workmad3: and AOP - I want lots of logging in my application. But I don't want my business logic class to be obscured by a ton of logging logic.
<workmad3> kl: yay, you've identified maybe the only compelling case for AOP that exists
<kl> yep
<kl> and it's a big one
wald0 has quit [Client Quit]
n008f4g_ has joined #ruby
<kl> I'm not sure there's any other reason I'd want to use AOP - but that reason alone is ubiquitous
<workmad3> kl: I'm not convinced that logging alone is enough to introduce the complications that AOP entails
leonshalimov has joined #ruby
<workmad3> kl: as it's basically predicated on the assumption that AOP is the only way to reasonably handle logging in a sensible, controlled manner... which again, I'm unconvinced of
<banister> kl how is AOP hard to do in ruby? can't you just write decorators?
<ddv> astronaut architects, we need to get rid of them
dman777_alter has joined #ruby
<dman777_alter> how can I see a list of a objects attributes?
<banister> kl esp with ruby 2.1 decorators, you can even have nice syntax
martinium has quit [Ping timeout: 255 seconds]
daqo has joined #ruby
dcarmich has joined #ruby
jobewan has joined #ruby
<kl> banister: there exist AOP frameworks - aspector & aquarium - but both are missing features/development in their own ways
<kl> they otherwise do exactly what I want - and they look kinda complicated under the covers - wouldn't want to reinvent that
ta has quit [Ping timeout: 276 seconds]
<workmad3> kl: btw, I'm perfectly open to hard data showing that apps that use AOP or DI are developed significantly faster, have shorter lead times on bugs, etc. but without that, we're basically just arguing preferences and opinion
dcarmich has quit [Client Quit]
<kl> workmad3: yeah I'm not even arguing development speed. But my projects look nicer with DI
<banister> kl then file an issue or give a PR
<workmad3> kl: so pull out your DI stuff, turn it into a DI container and open it up to the community... make your case by producing code and show us all how much nicer it looks :P
alexblom has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
norc has quit [Quit: Page closed]
kamilc__ has quit [Ping timeout: 265 seconds]
<kl> banister: taking over old AOP projects just for this would be quite a mission creep
<kl> especially considering i'm not *solid* on AOP being the solution yet
<banister> kl: surely you can work on more than one thing at once ;)
<workmad3> kl: the few scraps of studies out there on AOP seem to indicate that it's not particularly worthwhile btw ;)
^wald0 has quit [Quit: ^wald0]
<workmad3> kl: it's one of those things that sounds really good, but while the jury is still out, the grumblings from their room seems to be on the negative side ;)
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kl> workmad3: gotcha. In that case, I'd like to try and understand the better solution to the detangling of business logic from logging logic
<workmad3> kl: I'm not aware of any studies done on DI though...
alexblom has joined #ruby
ixti has joined #ruby
shay- has left #ruby [#ruby]
<workmad3> kl: heh :) I have a suspicion the studies were done on AOP compared to just munging it all together
krz has joined #ruby
<workmad3> kl: and AOP still came out badly
bronak has quit [Quit: Bye]
alexblom has quit [Remote host closed the connection]
alexblom has joined #ruby
<kl> workmad3: what alternative might there be to AOP or munging it all together
dfinninger has joined #ruby
alexblom has quit [Remote host closed the connection]
ta has joined #ruby
<banister> kl monads!!!!~
<workmad3> kl: http://www.sciencedirect.com/science/article/pii/S0950584910000819 (paper doing a meta-study on all the empirically supported papers out there they could find on AOP)
MasterPiece has quit [Quit: Leaving]
<kl> banister: which ones? :P
hanmac1 has quit [Quit: Leaving.]
alexblom has joined #ruby
<banister> kl the Writer monad iirc
<workmad3> kl: what should be most worrying... out of over 3000 papers on AOP, they only managed to find 22 that did empirical studies on AOP vs non-AOP techniques
freerobby has joined #ruby
<banister> kl iirc the Writer monad is the functional programming solution to logging
alexblom has quit [Remote host closed the connection]
hmnhf has quit [Quit: Konversation terminated!]
alexblom has joined #ruby
russt has quit [Ping timeout: 240 seconds]
russt has joined #ruby
larissa has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 245 seconds]
devyn has quit [Read error: Connection reset by peer]
devyn has joined #ruby
Xeago_ has joined #ruby
<kl> banister: doesn't look like the business logic is disentangled from the business logic any more with Writer, though
<kl> from the logging logic* :)
<banister> business logic, business logic, business logic
ndrei has joined #ruby
<banister> stfu
<banister> and throw away your martin fowler
pdoherty has joined #ruby
<banister> wannabe architecture astronaut
whoisjake has joined #ruby
El3k0n has quit [Remote host closed the connection]
rippa has joined #ruby
ta has quit [Ping timeout: 252 seconds]
<ddv> lol
russt has quit [Ping timeout: 245 seconds]
yjmsf20 has joined #ruby
russt_ has joined #ruby
tvw has joined #ruby
shazaum_ has joined #ruby
perturbation has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
luksaur has joined #ruby
shazaum has quit [Ping timeout: 265 seconds]
frobs has quit [Quit: Konversation terminated!]
luksaur has quit [Max SendQ exceeded]
<kl> banister: haha. find me a better term for "shit that isn't logging"
<banister> :P
luksaur has joined #ruby
luksaur has quit [Changing host]
luksaur has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
DivineEntity has quit [Quit: Lost terminal]
failshell has joined #ruby
<kl> What was that about decorators in 2.1? I can't find anything to do with that
luksaur has quit [Max SendQ exceeded]
alexblom has quit [Remote host closed the connection]
kreantos has quit [Ping timeout: 265 seconds]
luksaur has joined #ruby
<banister> kl oh it's just that 'def' now returns the method name
bronson has joined #ruby
startupality has joined #ruby
mikepack has joined #ruby
larissa has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
<kl> banister: oh I see now. I'm not sure how to make use of that though!
larissa is now known as Guest91079
soxet has quit [Ping timeout: 245 seconds]
amundj has quit [Ping timeout: 276 seconds]
<workmad3> kl: means you could write decorator methods that look like method modifiers
<banister> kl cos you can grab the method using `instance_method` and decorate it
Aswebb_ has joined #ruby
<banister> kl i.e: memoize def sum(x, y) x + y; end
ayhhpi has quit [Remote host closed the connection]
<banister> where memoize would be a decorator that wraps the sum method
alexblom has joined #ruby
<kl> oh I see
Channel6 has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
kaspertidemann has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
alexblom has quit [Remote host closed the connection]
^wald0 has joined #ruby
alexblom has joined #ruby
havenwood has joined #ruby
arup_r has joined #ruby
last_staff has quit [Quit: last_staff]
alexblom has quit [Remote host closed the connection]
JDiPierro has joined #ruby
alexblom has joined #ruby
akas has joined #ruby
Tricon has joined #ruby
Jackneill has joined #ruby
AFKGeek has quit [Quit: Off to fly a kite]
pontiki has joined #ruby
greenarrow has joined #ruby
booly-yam-5635 has quit [Ping timeout: 256 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
<greenarrow> How do I convert tthis json to a hash ? { "filter": {} }
spider-mario has joined #ruby
kl has quit [Ping timeout: 245 seconds]
perturbation has quit [Ping timeout: 264 seconds]
clocKwize has quit [Disconnected by services]
clocKwize_ has joined #ruby
oo_ has quit [Remote host closed the connection]
kl__ has quit [Ping timeout: 265 seconds]
josephnd1nton has joined #ruby
bal has quit [Quit: bal]
ta has joined #ruby
<pontiki> require 'json'; JSON.parse("{\"filter\":{}}")
kl__ has joined #ruby
kl has joined #ruby
<greenarrow> if you wanted to create a hash then call .to_json on it too look like that json how would it look
allcentury has quit [Ping timeout: 246 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
<workmad3> huh?
perturbation has joined #ruby
alexblom has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
aclearman037 has quit [Ping timeout: 244 seconds]
<pontiki> i can see this is a waste of time
djbkd has joined #ruby
alexblom has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
zwer_s is now known as zwer
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
josephnd1nton has quit [Ping timeout: 245 seconds]
alexblom has quit [Remote host closed the connection]
<greenarrow> nvm solved
alexblom has joined #ruby
<greenarrow> thanks
ta has quit [Ping timeout: 276 seconds]
greenarrow has quit [Quit: 500]
kl__ has quit [Read error: Connection reset by peer]
kl__ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathin_ has joined #ruby
livathin_ has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
djbkd has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
delianides has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
whoisjake has quit []
<shevy> <3 pontiki
Pharaoh2 has quit [Max SendQ exceeded]
wallerdev has joined #ruby
Pharaoh2 has joined #ruby
daqo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ponga has quit [Quit: Leaving...]
<banister> pontiki is the bomb
^wald0 has quit [Quit: ^wald0]
kiddo__ has left #ruby [#ruby]
jborica has joined #ruby
x77686d has joined #ruby
<pontiki> i am fit to explode, as well
revoohc has joined #ruby
dsferreira has joined #ruby
<dsferreira> #ruby-core
Megtastique has joined #ruby
<pontiki> core breach?
Sembei has joined #ruby
icebourg has joined #ruby
<dsferreira> pontiki: Using webclient of freenode and don't know how to open an additional tab if not like this sorry
thoraxe_ is now known as thoraxe
GaryOak_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
<pontiki> try /join #ruby-core
<dsferreira> Great thanks
im_ has joined #ruby
paulfm has joined #ruby
Tricon has quit [Ping timeout: 245 seconds]
aclearman037 has joined #ruby
Tricon has joined #ruby
Morkel has quit [Quit: Morkel]
byprdct has joined #ruby
Megtastique has quit []
chrishough has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Guest91079 has quit [Read error: No route to host]
<dsferreira> Ruby benchmarks in CI environment. What would be the best approach?
DivineEntity has joined #ruby
g-nom3 has quit [Remote host closed the connection]
rubytor has joined #ruby
FifthWall has left #ruby ["Textual IRC Client: www.textualapp.com"]
mrmargolis has joined #ruby
FifthWall has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
Trynemjoel2 has quit [Ping timeout: 256 seconds]
davidhq has joined #ruby
Hobogrammer has joined #ruby
im_ has quit [Quit: Page closed]
realmavbozo has joined #ruby
<havenwood> dsferreira: Like using minitest/benchmark?
mbff has joined #ruby
<havenwood> dsferreira: Does your testing framework have benchmarking?
davidhq has quit [Client Quit]
davidhq has joined #ruby
zarubin has joined #ruby
roadt has joined #ruby
codezomb has joined #ruby
davidhq_ has joined #ruby
diegoviola has joined #ruby
noop has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathinos has joined #ruby
davidhq has quit [Read error: No route to host]
krz has quit [Quit: WeeChat 1.0.1]
Pharaoh2 has joined #ruby
russt_ has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
realmavbozo has quit [Quit: Leaving]
davidhq_ has quit [Ping timeout: 240 seconds]
livathinos has quit [Client Quit]
davidhq has quit [Client Quit]
paulfm has quit [Quit: Zzzzz...]
liamkeily has joined #ruby
davidhq has joined #ruby
Megtastique has joined #ruby
rocknrollmarc has quit [Quit: BitchX-1.2.1 -- just do it.]
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
booly-yam-5635 has joined #ruby
davidhq has quit [Client Quit]
zarubin has quit [Quit: Leaving.]
zarubin has joined #ruby
shredding has quit [Quit: shredding]
Aswebb_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
brb3 has quit [Quit: ZZZzzz…]
kaspertidemann has quit []
<atmosx> dsferreira: what is CI?
commmmodo has joined #ruby
porfa has joined #ruby
<porfa> hello!
russt has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
<shevy> hey Porfa
zarubin has quit [Client Quit]
<banister> atmosx continuous integration
zarubin has joined #ruby
pawprint has joined #ruby
msgodf has quit [Remote host closed the connection]
luksaur has quit [Ping timeout: 265 seconds]
ferr has quit [Remote host closed the connection]
n1lo_ has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
n1lo has quit [Ping timeout: 264 seconds]
luksaur has joined #ruby
deric_skibotn has joined #ruby
<atmosx> banister: psss I like these terms makes you fee like a ninja
ptrrr has joined #ruby
n1lo_ has quit [Client Quit]
psy_ has joined #ruby
<pontiki> true enlightenment
pawprint has quit [Ping timeout: 265 seconds]
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
ZoanthusR has joined #ruby
uptownhr has joined #ruby
Aswebb_ has joined #ruby
fgo_ has joined #ruby
joonty has quit [Quit: joonty]
josephnd1nton has joined #ruby
zarubin has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 252 seconds]
<porfa> I'm at work, i came here to see if anyone is associated with any sorts of mailing services or something, because in my company we are needing some of that.. so… since it envolves money, id rather give it to someone i can talk directly to. we need to send about 25.000 mails a day in one, two hours. (marketing mails, low weight mails, images and stuff are in our server)
timonv has quit [Ping timeout: 240 seconds]
<porfa> or.. were i can rent some smtp's reliable servers and i'll just make some phplist install on this side..!
rubytor has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
lodgenbd has joined #ruby
martinium has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
JDiPierro has quit [Remote host closed the connection]
zarubin has joined #ruby
josephnd1nton has quit [Ping timeout: 245 seconds]
<workmad3> Porfa: I'd probably suggest taking a look at sendgrid if you have high-volume email needs
francisfish has quit [Remote host closed the connection]
<pontiki> yeah, sendgrid or mailchimp seem to fit those parameters
michaeldeol has quit [Client Quit]
francisfish has joined #ruby
fgo_ has quit [Ping timeout: 255 seconds]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
atmosx has joined #ruby
ta has joined #ruby
Tricon has quit [Ping timeout: 264 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
michaeldeol has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
nomadicoder has joined #ruby
maximski has quit []
ta has quit [Ping timeout: 276 seconds]
neoxquick has joined #ruby
jheg has quit [Quit: jheg]
maletor has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
JDiPierro has joined #ruby
nanoyak has joined #ruby
DaniG2k has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
whoisjake has joined #ruby
<bzeu> Any book you guys would recommend for ruby?
larissa has joined #ruby
<banister> bzeu the ruby programming language
ta has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
slawrenc_ has joined #ruby
<havenwood> +1 The Ruby Programming Language
<havenwood> "The Sparrow"
dotix has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
giuseppesolinas has joined #ruby
troubadour has quit [Quit: troubadour]
<Senjai> bzeu: We have our new hires do the koans first
<banister> havenwood i thought it was called "the swallow" ;)
<Senjai> bzeu: http://rubykoans.com/
daqo has joined #ruby
baroquebobcat has joined #ruby
<cantonic> since using ruby 2.2.0 with rails 4.1.9 I get this error: “/Users/cantonic/.rvm/gems/ruby-2.2.0@schoolapp/gems/actionpack-4.1.9/lib/abstract_controller/helpers.rb:154:in `rescue in block in modules_for_helpers': Missing helper file helpers//users/cantonic/sites/schoolapp/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError)”
ta has quit [Ping timeout: 276 seconds]
<cantonic> this seems like a bug in ruby 2.2.0
bronson has joined #ruby
<Senjai> bzeu: Then we usually get them going with rails, picking up anything else as they go
<havenwood> banister: Oh gosh, so many types of birds! >.>
liamkeily has quit [Quit: This computer has gone to sleep]
JDiPierro has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
skinux has joined #ruby
daqo has quit [Client Quit]
apeiros has joined #ruby
mjuszczak has joined #ruby
bashusr has quit [Ping timeout: 276 seconds]
<havenwood> skinux: drop the `call`
neoxquick has quit [Ping timeout: 255 seconds]
elfuego has joined #ruby
<skinux> undefined method `cupertino' for #<Context:0xebd0ac>
cocotton has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
cocotton has joined #ruby
tus has joined #ruby
tus has quit [Changing host]
tus has joined #ruby
<havenwood> skinux: cubertino != cupertino
<skinux> Can't believe I missed that.
bronson has quit [Ping timeout: 256 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
pdoherty has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
tus has quit [Client Quit]
Aswebb_ has quit [Remote host closed the connection]
sagittarian has joined #ruby
chthon has quit [Ping timeout: 240 seconds]
daqo has joined #ruby
tus has joined #ruby
perturbation has quit [Ping timeout: 245 seconds]
SolarSailor has joined #ruby
daqo has quit [Client Quit]
SolarSailor has quit [Client Quit]
SolarSai_ has joined #ruby
yjmsf20 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has joined #ruby
dc has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
maximski has joined #ruby
<Senjai> skinux: What language do you come from :P
SolarSai_ has quit [Client Quit]
bashusr has quit [Ping timeout: 272 seconds]
shivamib has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
SolarSailor has joined #ruby
earfin has joined #ruby
allcentury has joined #ruby
Allaman has quit [Remote host closed the connection]
diegoviola has joined #ruby
maximski has quit [Max SendQ exceeded]
bashusr has joined #ruby
ndrei has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
ta has joined #ruby
adriancb has joined #ruby
jenrzzz has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
ta has quit [Ping timeout: 276 seconds]
thsig has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
dmolina has quit [Ping timeout: 252 seconds]
sundjango has joined #ruby
towski_ has joined #ruby
brb3 has joined #ruby
thsig has joined #ruby
ddd has joined #ruby
ghr has joined #ruby
noop has quit [Ping timeout: 245 seconds]
sundjango has quit [Ping timeout: 246 seconds]
asmodchan has quit [Read error: Connection reset by peer]
tier_ has quit [Ping timeout: 245 seconds]
tier has joined #ruby
wallerdev has quit [Quit: wallerdev]
ghr has quit [Ping timeout: 240 seconds]
alex88 has quit []
kyb3r_ has joined #ruby
havenwood has quit [Remote host closed the connection]
dsferreira has quit [Ping timeout: 246 seconds]
bzeu has quit [Ping timeout: 272 seconds]
JDiPierro has joined #ruby
ta has joined #ruby
goshdarnyou has joined #ruby
jheg has joined #ruby
vandemar has joined #ruby
n008f4g_ has joined #ruby
neoxquick has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1]
zacstewart has joined #ruby
Aswebb_ has joined #ruby
ta has quit [Ping timeout: 240 seconds]
JDiPierro has quit [Remote host closed the connection]
asmodlol has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
fgo_ has joined #ruby
<vandemar> Besides gsub, is there's a simple way to .strip that also removes \u00a0?
paulfm has joined #ruby
ta has joined #ruby
skinux has quit [Quit: skinux]
kamilc__ has joined #ruby
<vandemar> I guess I can understand why non-breaking space isn't really semantically a space, I just wish I didn't have to chain in a gsub
dc has joined #ruby
dc has quit [Remote host closed the connection]
MrSparkle has joined #ruby
SolarSailor has quit [Max SendQ exceeded]
martinium has quit [Remote host closed the connection]
^wald0 has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
fgo_ has quit [Ping timeout: 255 seconds]
atmosx has quit [Quit: Let him that would move the world first move himself. - Socrates]
atmosx has joined #ruby
x77686d has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
B1n4r10 has quit [Ping timeout: 272 seconds]
x77686d has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
juanpablo______ has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
nomadicoder has quit [Quit: Leaving.]
kl__ has quit [Ping timeout: 264 seconds]
nomadicoder has joined #ruby
kl has quit [Ping timeout: 272 seconds]
cocotton has quit [Quit: Leaving...]
goodenough has quit [Remote host closed the connection]
kl has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
kl__ has joined #ruby
<atmosx> whre is shelling__
<atmosx> oops shevy
<centrx> at the PHP conference
liamkeily has joined #ruby
<atmosx> centrx: hahahahah that's a good one
az7ar has joined #ruby
<atmosx> centrx: let me guess, he prepared a "Life shouldn't be so miserable: Enter Ruby" presentation...
jenrzzz has joined #ruby
<atmosx> I setup the mail server, the dovecot the sinatra app at startup (unicorn) but... couldn't manage to make openvpn and pf play good together. I still need to load pf manually.
athan has quit [Ping timeout: 255 seconds]
vozcelik has joined #ruby
slester has joined #ruby
Morkel has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
_Andres has quit [Read error: Connection reset by peer]
liamkeily has quit [Client Quit]
dc has joined #ruby
dc has quit [Remote host closed the connection]
mjuszczak has quit []
livathinos has joined #ruby
chipotle has quit [Quit: cheerio]
_Andres has joined #ruby
failshell has joined #ruby
havenwood has joined #ruby
Dolphi has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
jarjar_prime has joined #ruby
solars has quit [Ping timeout: 245 seconds]
LouisRoR has quit [Ping timeout: 244 seconds]
pietr0 has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
whoisjake has quit []
delianides has quit []
tobago has quit [Remote host closed the connection]
mjuszczak has joined #ruby
klue has joined #ruby
JDiPierro has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
nfk has quit [Ping timeout: 244 seconds]
az7ar has quit []
zacstewart has quit [Remote host closed the connection]
az7ar_away is now known as az7ar
jenrzzz has quit [Ping timeout: 264 seconds]
mjuszczak has quit [Client Quit]
hydrozen has joined #ruby
AlexRussia has joined #ruby
happyface has quit [Quit: Connection closed for inactivity]
gregf has joined #ruby
kl__ has quit [Ping timeout: 255 seconds]
josephnd1nton has joined #ruby
failshell has quit [Remote host closed the connection]
kl has quit [Ping timeout: 264 seconds]
j0n3 has joined #ruby
bzeu has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
18VAB0DX1 has joined #ruby
artgoeshere has quit [Ping timeout: 244 seconds]
dc has joined #ruby
dc has quit [Remote host closed the connection]
artgoeshere has joined #ruby
andikr has quit [Remote host closed the connection]
josephnd1nton has quit [Ping timeout: 244 seconds]
jonesthedolphin has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
nfk has joined #ruby
neoxquick has quit [Ping timeout: 272 seconds]
nomadicoder has left #ruby [#ruby]
<bzeu> Why are most metasploit scripts written in ruby?
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> because Ruby is awesome?
<bzeu> Sure but what's the main reason?
<banister> bzeu because it's a ruby project?
<atmosx> bzeu: the author probably thought that ruby is better suited for him to write his project(s) in ruby.
<atmosx> bzeu: that said, it's a rather stupid question.
<atmosx> bzeu: why are rails written in ruby and not in python? Who the fuck knows..
<yxhuvud> atmosx: I'm reasonably certain dhh has a pretty good idea of that.
mjuszczak has joined #ruby
<apeiros> "because the author preferred ruby"
<atmosx> apeiros: absolutely
jerius has quit []
<atmosx> apeiros: why don't you write your framework in javascript?
<atmosx> apeiros: or in rust? in go?
Pharaoh2 has quit [Ping timeout: 256 seconds]
<apeiros> who says I don't?
<atmosx> I say you dont.
ndrei has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
<apeiros> you're mistaken :)
LouisRoR has joined #ruby
<atmosx> apeiros: you wrote your framework in rust?
<apeiros> no
<atmosx> apeiros: why not, it's an awesome language.
<atmosx> apeiros: will make your framework fast
<apeiros> but I do plan on writing suppliers in other languages than ruby
adriancb has quit [Remote host closed the connection]
<atmosx> apeiros: not to mention it would be widely adopted as it would one of the first frameworks in the lang.
dfinninger has joined #ruby
<atmosx> apeiros: suppliers okay, but why did you chose ruby?
ndrei has joined #ruby
<apeiros> i.e., it should be easily possible to have parts of your app in rust and parts in ruby with that framework.
Pharaoh2 has joined #ruby
<apeiros> because I'm insanely fast coding in ruby.
<apeiros> so that's my starting point
<apeiros> other languages will follow once the concept has proven itself.
<atmosx> apeiros: Of course you are!
Terens has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
<Terens> xasan
__main__ has joined #ruby
18VAB0DX1 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<arup_r> bzeu: Yo
Pharaoh2 has quit [Max SendQ exceeded]
roshanavand has quit [Quit: Leaving.]
<havenwood> bzeu: You find that suprizing? What would you expect on top?
<atmosx> bzeu: 99% of the lits I see have JS framework as No1, RoR is somewhat declining although there is surely a big market for ror apps
<atmosx> err ror devs
tier has quit [Remote host closed the connection]
dc has joined #ruby
dc has quit [Remote host closed the connection]
<atmosx> havenwood: Node, JQuery
deric_skibotn_ has joined #ruby
pipework has joined #ruby
pipework has joined #ruby
<havenwood> atmosx: Are there a lot of people looking for JSers? Seems more Ruby demand here. I'm sure it varies by where you are.
ghr has joined #ruby
banister has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
goodenough has joined #ruby
oo_ has joined #ruby
jerius has joined #ruby
<atmosx> havenwood: yeah, last graph I saw a couple of days ago... Can't recall if it was on twitter or HN, was showing clearly a higher demand for JS (various frameworks) than RoR
<havenwood> atmosx: I guess a RoR dev is expected to know JQuery, kinda a subset.
kyb3r_ has quit [Quit: Leaving]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
martinium has quit [Remote host closed the connection]
<atmosx> havenwood: that said, some frameworks and RoR play together so... You find many job requests where they want a RoR hacker which is also an Angular Hacker, Ember Hacker, Redis Hacker and a couple of more words with "hacker" thing attached.
deric_skibotn has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
<atmosx> havenwood: maybe no idea
<arup_r> you are right! havenwood: :(
deric_skibotn_ is now known as deric_skibotn
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
<arup_r> atmosx: Humm Humm :(
pawprint has joined #ruby
<atmosx> arup_r: fear not, we will survive! lol
jenrzzz has joined #ruby
juanpablo_ has quit [Quit: (null)]
dumdedum has quit [Quit: foo]
juanpablo_ has joined #ruby
JDiPierro has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
sinkensabe has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 240 seconds]
tier has joined #ruby
<havenwood> Maybe soon it'll be people looking for Volt devs or whatever else. There are a dizzying number of web framework language options.
jonesthedolphin has joined #ruby
ascarter has joined #ruby
<atmosx> havenwood: hm, I think JS is here to stay
mloveless has joined #ruby
<atmosx> havenwood: runs on the client...
djbkd has joined #ruby
<atmosx> huge support from the industry
oo_ has quit [Ping timeout: 256 seconds]
<atmosx> maybe not ideal for backend shit but for frontned is basically the standard and it's still on the rise.
diegoviola has quit [Client Quit]
govg has quit [Quit: leaving]
govg has joined #ruby
rajeshchawla has joined #ruby
anaeem1_ has joined #ruby
pawprint has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Remote host closed the connection]
<apeiros> I thought swift was the new shit, no?
<havenwood> atmosx: Options like Clojure/ClojureScript, Ruby/Opal, etc seem to be gaining momentum with few downsides over JavaScript. Maybe they're just a stopgap that spares us until Native Client or something of that ilk catches on.
juanpablo_ has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
<havenwood> apeiros: Nim
last_staff has joined #ruby
rpag has joined #ruby
lolmaus has joined #ruby
Tricon has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
athan has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
<havenwood> apeiros: Maybe if Apple had released Swift cross platform and open source. Maybe they still will?
bayed has quit [Quit: Connection closed for inactivity]
disperso has quit [Remote host closed the connection]
fgo_ has joined #ruby
* havenwood daydreams of a post-JavaScript world.
Fire-Dragon-DoL has quit [Quit: Leaving.]
banister has joined #ruby
leonshalimov has quit [Ping timeout: 265 seconds]
<rpag> havenwood, doubt that so so much.
<centrx> Damn you Netscape
<rpag> have they ever done that? a cross platform language.
anaeem1_ has quit [Read error: Connection reset by peer]
<rpag> in fact sometimes they do the opposite, look at macruby =)
wald0 has joined #ruby
anaeem1 has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 252 seconds]
az7ar is now known as az7ar_away
govg has quit [Remote host closed the connection]
<havenwood> rpag: Objective-C was at least cross-platform. They don't seem to be opposed to the BSD license, but yeah I wouldn't count on it for Swift.
<rpag> objective-c isn't that great without cocoa though
<havenwood> is a bit better than C enough?
chrishough has joined #ruby
<rpag> sure
<dman777_alter> http://dpaste.com/1FMVK61 am I handling ruby hashes correctly? Elasticsearch is angerly complaining it can not parse 'yo'...however with curl it has no issues with the same json
<havenwood> I've heard folk debating between RubyMotion and Swift lately. I'd be curious to try RubyMotion, I just need to finagle a license I guess.
bronson has joined #ruby
<havenwood> Oh, 30-day free trial. That's easy enough.
solars has joined #ruby
function90 has quit [Quit: Textual IRC Client: www.textualapp.com]
zacstewart has joined #ruby
lkba_ has joined #ruby
uptownhr has quit [Quit: uptownhr]
bronson has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 265 seconds]
govg has joined #ruby
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
billy_ran_away has joined #ruby
govg is now known as Guest65831
klue has quit [Quit: leaving]
Cache_Money has joined #ruby
sdwrage has joined #ruby
<vandemar> havenwood: if not javascript, what should be the primary client-side scripting language? luajit?
ixti has joined #ruby
jefus_ has joined #ruby
jespada has joined #ruby
porfa has quit [Quit: Porfa]
<havenwood> vandemar: I'd imagine it'll probably end up being whatever language you prefer. Something along the lines of NaCl: https://developer.chrome.com/native-client
axisys has joined #ruby
Tricon has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
<pipework> vandemar: Anything that emscripten can handle, I guess.
jefus has quit [Ping timeout: 245 seconds]
goodenough has quit []
icbm has quit [Ping timeout: 240 seconds]
zacstewart has quit [Remote host closed the connection]
n80_ has quit [Quit: n80_]
az7ar_away is now known as az7ar
<havenwood> NaCl support in Ruby since 2012: https://github.com/ruby/ruby/blob/trunk/configure.in#L80-L192
<pipework> That's neat.
chrishough has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
chrishough has joined #ruby
<rpag> havenwood, javascript can be annoying yeah, but it's not the worst
josephnd1nton has joined #ruby
failshell has joined #ruby
<pipework> It really isn't the worst.
<rpag> i like it most of the time
<pipework> I read a hilarious article about how the author couldn't get their mind around "prototypical" object orientation.
<havenwood> stockholm syndrome!
TL has joined #ruby
<rpag> lol
<ericwood> I don't mind JS too much
<ericwood> it's really easy to write it in a way that ignores the warts
<ericwood> ES6 will make it pretty awesome
<rpag> what is the shorthand function syntax?
<ericwood> the ruby lambda syntax?
<ericwood> >> -> { puts 'hello' }
<eval-in_> ericwood => #<Proc:0x40505088@/tmp/execpad-7c7d81822b33/source-7c7d81822b33:2 (lambda)> (https://eval.in/244738)
<rpag> the new one in ES6
zacstewart has joined #ruby
<ericwood> oh idk I've put off learning it until I can actually make use of it
<rpag> i think its =>
<rpag> but im not sure how its written
<mozzarella> yeah it's =>
<rpag> => (foo) { console.log(foo); } ?
<ericwood> I can dig that
<mozzarella> (v, i) => v + i
tier_ has joined #ruby
<rpag> can it spawn across multiple lines if you use {} ?
<ericwood> probs
JDiPierro has quit [Remote host closed the connection]
<ericwood> lol if anyone actually uses this
<mozzarella> rpag: yes
<rpag> =D
uri_ has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
josephnd1nton has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 264 seconds]
kl has joined #ruby
<ericwood> oooh nice reference
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit [Ping timeout: 244 seconds]
powder has joined #ruby
x1337807x has joined #ruby
ascarter has joined #ruby
kl__ has joined #ruby
ascarter has quit [Max SendQ exceeded]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
sambao21 has joined #ruby
Guest65831 has quit [Ping timeout: 245 seconds]
ascarter has quit [Max SendQ exceeded]
govg has joined #ruby
agjacome has quit [Quit: leaving]
ascarter has joined #ruby
govg has quit [Client Quit]
ascarter has quit [Max SendQ exceeded]
Darryl___ has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
ascarter has joined #ruby
startupality has joined #ruby
neoxquick has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
rodfersou has quit [Quit: leaving]
ghr has joined #ruby
maletor has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
towski_ has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
adriancb has joined #ruby
mjuszczak has quit []
jerius has quit []
livathinos has quit [Remote host closed the connection]
blackmesa has joined #ruby
sambao21 has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
zacstewart has quit [Remote host closed the connection]
jerius has joined #ruby
zB0hs has joined #ruby
ta has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
JohnBat26 has joined #ruby
last_staff has quit [Quit: last_staff]
leonshalimov has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
perturbation has joined #ruby
zacstewart has joined #ruby
reset has joined #ruby
znst has joined #ruby
VBlizzard has joined #ruby
Anthony__ has joined #ruby
VBlizzard has quit [Read error: Connection reset by peer]
Anthony__ has quit [Read error: Connection reset by peer]
<znst> I'm looking for documentation on #return , I haven't found much on the web. Please, could someone help me find a resource
mjuszczak has joined #ruby
JohnBat26 has quit [Client Quit]
fgo_ has joined #ruby
JohnBat26 has joined #ruby
x1337807x has quit [Ping timeout: 256 seconds]
jschoolcraft has joined #ruby
<jhass> znst: got some code you don't understand?
shazaum_ has quit [Quit: This computer has gone to sleep]
<znst> jhass: I'm trying to explain return behavior to somebody and I realized it's not crystal clear to me
^wald0 has quit [Quit: ^wald0]
<jhass> so, first of all, return is a keyword, not a method, so writing #return makes not much sense, since we use Object#method to refer to instance methods of a class
<jhass> so, you got that every method has a return value?
<znst> yes
<jhass> return immediately returns to the method call, providing the passed argument as return value
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> >> def foo; return :a; :this_is_never_reached; end; foo
<eval-in_> jhass => :a (https://eval.in/244748)
ldnunes has quit [Quit: Leaving]
<jhass> you can make it conditional
_1_Fire has joined #ruby
<_1_Fire> hh
francisfish has joined #ruby
<jhass> >> def foo(bar); return :a if bar; :this_is_sometimes_reached; end; [foo(true), foo(false)]
<eval-in_> jhass => [:a, :this_is_sometimes_reached] (https://eval.in/244749)
fgo_ has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
kenneth has joined #ruby
sagittarian has quit [Ping timeout: 252 seconds]
nrsk has quit [Ping timeout: 252 seconds]
jerius has quit []
nrsk has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
<jhass> znst: does that help already?
booly-yam-5635 has quit [Remote host closed the connection]
Spami has joined #ruby
nrsk has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<znst> jhass: yes, it's helpful. I'm having a difficult time finding where the return keyword is defined
mnemon has joined #ruby
<jhass> in the parser
<jhass> it's a keyword, it's like asking where is class defined, or if, or while, or def or ...
allcentury has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
<jhass> so somewhere deep in parse.y, which you never want to look at :P
tubuliferous has left #ruby ["Textual IRC Client: www.textualapp.com"]
ta has joined #ruby
<znst> jhass: great, thanks
<znst> it's difficult to look up "return"
jerematic has quit [Ping timeout: 240 seconds]
bl4ckdu5t has joined #ruby
JBreit has left #ruby [#ruby]
bl4ckdu5t is now known as Guest44629
jerius has joined #ruby
Jarboe has joined #ruby
neoxquick has quit [Ping timeout: 265 seconds]
<znst> jhass: how do I begin to learn about parsers? it never came up in my CS study
sambao21 has quit [Quit: Computer has gone to sleep.]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> good question
<jhass> I guess it's a good book topic
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
_1_Fire has quit [Remote host closed the connection]
icbm has joined #ruby
dc has joined #ruby
sambao21 has joined #ruby
porfa has joined #ruby
ShadowCruiser has joined #ruby
dc has quit [Ping timeout: 256 seconds]
Guest44629 has quit [Ping timeout: 252 seconds]
bl4ckdu51 has joined #ruby
jerematic has joined #ruby
Dolphi has quit [Ping timeout: 255 seconds]
mnemon has quit [Ping timeout: 252 seconds]
nrsk has quit [Read error: Connection reset by peer]
mnemon has joined #ruby
nrsk|2 has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
Tomasso has joined #ruby
ta has joined #ruby
Trynemjoel has joined #ruby
<Tomasso> whats a good graphical debugger... cant make any ide debugger work,. im using rvm with ruby 2.2.0 in a mac.. i need to debug
booly-yam-4014 has joined #ruby
ShadowCruiser has quit [Read error: Connection reset by peer]
<pipework> I like ruby's debugger, though the graphics are limited to text.
<dfinninger> Tomasso: can you not use Pry? I don't know of any /graphical/ debuggers...
<Tomasso> mm le me check
VBlizzard has joined #ruby
dstarh has joined #ruby
deric_skibotn has joined #ruby
<Tomasso> text modee aaaahhh , i remember to have useed the aptana oone, or netbeans, but for netbeans there seems not to be more plugin and the aptana cant make it work
<havenwood> Tomasso: You might want to check out pry-byebug to compliment Pry: https://github.com/deivid-rodriguez/pry-byebug#readme
<Tomasso> RubyMine lasts 30 day..
slester has quit [Remote host closed the connection]
<havenwood> Tomasso: Was going to say, RubyMine.
<havenwood> Tomasso: As a community we tend to use text and terminal.
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
<Tomasso> yee.. well commands seem not to complicated at lest
failshell has joined #ruby
kl has quit [Ping timeout: 245 seconds]
kl__ has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
upsell5 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
francisfish has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
sklik has joined #ruby
olivier_bK has joined #ruby
allcentury has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
kl has joined #ruby
blizzy has quit [Ping timeout: 252 seconds]
commmmodo has quit [Ping timeout: 244 seconds]
dc has joined #ruby
kl__ has joined #ruby
audiodude has joined #ruby
mjuszczak has quit []
allcentury has quit [Ping timeout: 255 seconds]
timanema has quit [Quit: leaving]
timanema has joined #ruby
uptownhr has joined #ruby
ascarter has joined #ruby
iamninja has quit [Remote host closed the connection]
codezomb has joined #ruby
Morkel has quit [Quit: Morkel]
djbkd has joined #ruby
blizzy has joined #ruby
^wald0 has joined #ruby
shime_ has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
timanema has quit [Client Quit]
n80_ has joined #ruby
Jackneill has quit [Remote host closed the connection]
timanema has joined #ruby
adriancb has quit [Remote host closed the connection]
blizzy has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
omosoj has joined #ruby
Dolphi has joined #ruby
<omosoj> anyone here spend any time understanding yarv?
athan has quit [Ping timeout: 245 seconds]
<pipework> I study how much money yarv has helped me make.
<Dolphi> What is yarv?
leafybasil has joined #ruby
liamkeily has joined #ruby
<omosoj> it is the ruby interpreter
asmodchan has joined #ruby
asmodchan has quit [Remote host closed the connection]
ghr has joined #ruby
rpag has quit [Quit: Leaving]
<pipework> It's the VM that was merged into 1.9.
<omosoj> pipework, what does that mean? virtual machine? how is it different than a program?
asmodlol has quit [Ping timeout: 264 seconds]
<pipework> omosoj: It's a large subject. You might want to look up how dynamic programming languages work.
<omosoj> a VM is a type of program, right?
az7ar is now known as az7ar_away
<omosoj> k
cantonic has quit [Quit: cantonic]
<omosoj> static:dynamic::compile:interpret?
ghr has quit [Ping timeout: 252 seconds]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
thsig has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
klmlfl has quit [Remote host closed the connection]
akas has quit [Remote host closed the connection]
michaeldeol has joined #ruby
pietr0 has quit [Quit: pietr0]
tier_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
bronson has joined #ruby
maximski has quit [Read error: Connection reset by peer]
maximski has joined #ruby
lxsameer has quit [Quit: Leaving]
allcentury has joined #ruby
pietr0 has joined #ruby
einarj has joined #ruby
fgo_ has joined #ruby
<wasamasa> omosoj: well, someone has modeled a virtual machine with a simplified CPU that is able to execute all ruby programs
Atrumx has joined #ruby
mrmargolis has quit [Remote host closed the connection]
<wasamasa> omosoj: this is done by parsing the ruby code and turning the generated tree into bytecode that's pretty much instructions for that virtual machine
Atrumx has quit [Changing host]
Atrumx has joined #ruby
uptownhr has quit [Quit: uptownhr]
<wasamasa> omosoj: yes, that thing happens every time you execute ruby code and is a common approach for other programming languages, too
Joufflu has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
klmlfl has joined #ruby
dman777_alter has quit [Quit: Lost terminal]
timanema has quit [Quit: leaving]
Joufflu_ has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
blizzy has joined #ruby
<omosoj> wasamasa, i see, i'm reading about it now. the bytecode is an 'intermediate representation', right?
Fire-Dragon-DoL has joined #ruby
<wasamasa> omosoj: pretty much
<omosoj> so the VM is itself a process on the OS, which creates another process (the actual ruby program)?
<wasamasa> the VM is part of the ruby process executing the ruby file
Joufflu has quit [Ping timeout: 245 seconds]
<omosoj> oh, interesting
dotix has quit [Quit: Leaving]
mac__ has joined #ruby
scripore has joined #ruby
<omosoj> this stuff is fascinating :))
<vandemar> this is probably a dumb question but is there a nice way to rewrite if (var = expression) { do stuff with var } to a block without assignment first? Like, the regex match idiom /pattern/.match("haystack") {|matchdata| do stuff } but I want something more generic, like compute_result().if {|val_from_compute_result| do stuff }. Do I have to monkey patch all objects in the system to get this, or is t
<vandemar> here an existing way that's as nice?
LouisRoR1 has joined #ruby
<wasamasa> omosoj: I've heard good things about the Ruby Under A Microscope book
<wasamasa> omosoj: perhaps it will help you understanding the finer details
wald0 has quit [Ping timeout: 245 seconds]
Lingo___ has joined #ruby
x1337807x has joined #ruby
<omosoj> wasamasa, yeah i have the book and i've read a few chapters. but i find that i understand and remember much more when i follow my immediate passions. following someone else's train of thought for 2 or 300 pages has its place, but it's a last resort for me! :)
LouisRoR has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
jherbst has joined #ruby
Ankhers` has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
m8 has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
hmsimha has joined #ruby
<wasamasa> hehe
<wasamasa> well, good for you to know
scripore has joined #ruby
mac__ has joined #ruby
zacstewart has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
thsig has joined #ruby
kl__ has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kl has quit [Ping timeout: 264 seconds]
josephnd1nton has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
suy|BNC has joined #ruby
seal has joined #ruby
n80_ has quit [Quit: n80_]
Alina-malina has joined #ruby
lamasnik has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
byprdct has quit [Ping timeout: 276 seconds]
failshell has quit [Ping timeout: 245 seconds]
n80_ has joined #ruby
pdoherty has joined #ruby
thsig has quit [Ping timeout: 256 seconds]
adriancb has joined #ruby
mikepack has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 264 seconds]
livathinos has joined #ruby
hasrb has joined #ruby
devdazed_ has joined #ruby
zacstewart has joined #ruby
n80_ has quit [Quit: n80_]
hakunin has joined #ruby
devdazed has quit [Ping timeout: 256 seconds]
audiodude has quit [Ping timeout: 245 seconds]
lsmola_ has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
^wald0 has quit [Read error: Connection reset by peer]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jzigmund has joined #ruby
^wald0 has joined #ruby
Limix has joined #ruby
nanoyak has joined #ruby
B1n4r10 has joined #ruby
Limix has quit [Client Quit]
sundjango has joined #ruby
revoohc has quit [Quit: revoohc]
aclearman037 has quit [Quit: I'm out!]
livathinos has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
uri_ has quit [Ping timeout: 244 seconds]
ghostlines has joined #ruby
znst has quit [Ping timeout: 246 seconds]
kl has joined #ruby
byprdct has joined #ruby
djbkd has quit [Remote host closed the connection]
kl__ has joined #ruby
startupality has quit [Quit: startupality]
studiotate has joined #ruby
codezomb has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 276 seconds]
lsmola_ has joined #ruby
codezomb has joined #ruby
codezomb has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
mbff has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 276 seconds]
Megtastique has quit []
CpuID has joined #ruby
lamasnik has joined #ruby
oleo is now known as Guest17124
oleo__ has joined #ruby
TeresaP has joined #ruby
elfuego has quit [Quit: elfuego]
<TeresaP> If I have a string with this syntax: {0, 1, 2, 3} what kind of object can I convert it to?
<jheg> an array?
<TeresaP> If it were in brackets, I would assume an Array
<TeresaP> But it's in curly braces
<TeresaP> Array doesn't take it when I use try_convert
n80_ has joined #ruby
<jheg> hmm
<jheg> regex?
Lingo___ has quit [Quit: (null)]
<TeresaP> Yes I can use regex to replace { with [
<TeresaP> Just wondering if there were any obvious existing data types
ernetas has left #ruby [#ruby]
Guest17124 has quit [Ping timeout: 255 seconds]
fgo_ has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
^wald0 has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
Ankhers` has quit [Ping timeout: 250 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
<jhass> Set ?
<jhass> hard to tell from that sample
^wald0 has joined #ruby
<jhass> TeresaP: where do you get it from is the question
baroquebobcat has quit [Quit: baroquebobcat]
suy|BNC is now known as suy
<jheg> '{1,2,3,4}'.gsub(/[^0-9]/, '')
<jheg> ^ that will at least give you the numbers
<TeresaP> jhass objective c is sending me this: "UIEdgeInsets: {64, 0, 0, 0}"
<TeresaP> I just wanted the first number out of it right now
<jhass> I doubt objective C is doing that, some program written in it might
<TeresaP> sigh
studiotate has quit [Quit: Computer has gone to sleep.]
<jhass> and then the question is whether that program defines a protocol
mloveless has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
<TeresaP> Alright get ready for a brain dump
fgo_ has quit [Ping timeout: 276 seconds]
suy_ has joined #ruby
<TeresaP> We have an app written in Objective C. Our test framework runs on a service attached to our app that can speak with the app. I can ask it for things, call public methods, get public properties. I am currently asking a specific UIScrollView for one of the properties. That is the value that is being returned to my irb console
huddy has quit [Quit: Connection closed for inactivity]
<TeresaP> It's easier if I just skip the details
^wald0 has quit [Read error: Connection reset by peer]
shime has joined #ruby
maximski has quit [Ping timeout: 244 seconds]
studiotate has joined #ruby
havenn has joined #ruby
<jhass> smells like some string representation of some UI frameworks object, not a proper serialization or protocol then
fikse has joined #ruby
<TeresaP> Yes.
fikse has left #ruby [#ruby]
uptownhr has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
<jhass> so since you don't seem to care to properly transfer data, you probably don't care about properly parsing it
<jhass> the heuristic for the first number is received_string[/\d+/]
<jhass> .to_i
^wald0 has joined #ruby
<TeresaP> jhass it feels like you are attacking me with that statement
havenwood has quit [Ping timeout: 250 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TeresaP> I work in an enterprise environment, and am writing methods in our test framework to work with the existing application structure.
^wald0 has quit [Read error: Connection reset by peer]
<atmosx> TeresaP: yeap, he is somewhat socially inept. But he knows ruby.
<TeresaP> I presented my question in an easy to digest way, and you asked me for more details so I gave them
<jhass> I'm just saying that it feels to me like you're working on a hack that'll likely will fall apart on the slightest change in one of the components, I've just seen too many of these
hephaestus_rg has joined #ruby
<atmosx> TeresaP: you should probably serialize
<TeresaP> I'm actually trying to avoid that. But I have certain limitations.
<TeresaP> atmosx I do not have much control over what the app is sending to me
<TeresaP> our developers have it rather locked down
<atmosx> TeresaP: then talk to someone who has and thell them to serialize. I don't understand half of what you're saying but that's clearly bad design.
brb3 has quit [Quit: <.<]
<atmosx> TeresaP: so jhass has a point.
<TeresaP> sigh.
adriancb has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 264 seconds]
^wald0 has joined #ruby
<TeresaP> I appreciate the help I've gotten here, but I really hesitate to even ask for it when I get lectured about things I have no control over.
<atmosx> TeresaP: well, he gave you a regexp tha twill work out if you only get numbers that is.
cantonic has joined #ruby
cantonic has quit [Client Quit]
^wald0 has quit [Read error: Connection reset by peer]
<TeresaP> Yes, thank you for that jhass.
m8 has quit [Quit: Sto andando via]
sinkensabe has quit [Remote host closed the connection]
<atmosx> jhass: see? they don't bite.
<jhass> I just don't think I help people by making them think they got a good solution
einarj has joined #ruby
DadoCe has joined #ruby
<jheg> TeresaP: this should work if you havent yet found a solution
<jheg> num = '{1,2,3,4}'.gsub(/[^0-9]/, '')
<jhass> you should know when you're not doing optimal things, I'm not saying you can always avoid it, but you should know what to aim for
<jheg> num.split(//)
it0a has quit [Quit: WeeChat 1.1]
<TeresaP> Thanks jheg, I have something that should work until something better can be put in place :)
<jhass> .split(//) is .chars
nuck has joined #ruby
<TeresaP> jhass I do know when I'm doing something suboptimal here. I also realize I am going on maternity leave in a few days and need to have something in place until something better can be done.
^wald0 has joined #ruby
studiotate has quit [Quit: Lingo - http://www.lingoirc.com]
Tomasso has quit [Quit: Leaving...]
roadt has quit [Ping timeout: 245 seconds]
<jheg> jhass: nothing like a quick reality check :)
<atmosx> TeresaP: wow congrats.
<TeresaP> Thank you atmosx
^wald0 has quit [Read error: Connection reset by peer]
<atmosx> if only my mother knew how to code..
<jhass> so, if you don't describe your problem in full, and state that you already know it's not a good way, I can only assume you don't
<atmosx> I would be a programmer now!
<jhass> because that actually reflects reality a lot better in my experience
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> as sad as that is
<atmosx> reallity or experience?
<TeresaP> jhass being able to boil down a problem into the core question is not a bad skill.
<TeresaP> I didn't want to give you all the details
timanema has joined #ruby
<jhass> that usually ends up in describing a solution you want and not your actual problem
<TeresaP> They were irrelivant to solving my problem
<TeresaP> irrelevant*
<jhass> which always has the possibility of excluding better solutions that might not be apparent to you
lektrik has quit [Quit: c ya!]
omosoj has quit [Quit: leaving]
<TeresaP> sigh.
<TeresaP> I'm done arguing, but thanks for your help
<atmosx> I'm going to bed, it's late
<atmosx> night all
TL has quit [Ping timeout: 240 seconds]
<TeresaP> good night atmosx
nanoyak has quit [Quit: Computer has gone to sleep.]
<atmosx> night, take care
^wald0 has joined #ruby
x1337807x has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
deric_skibotn has quit [Ping timeout: 265 seconds]
jheg has quit [Quit: jheg]
tvw has joined #ruby
<jhass> TeresaP: just google a few of many the "how to ask good questions" guides when you're bored next time, they explain that a lot better than I can ;)
roshanavand has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
roshanavand has quit [Max SendQ exceeded]
<TeresaP> holy hell you don't give up
zorak8 has joined #ruby
maximski has joined #ruby
<TeresaP> I'm going to bow out as well, since clearly this isn't going to end well
<TeresaP> take care
TeresaP has left #ruby [#ruby]
ta has quit [Remote host closed the connection]
roshanavand has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
roshanavand has quit [Max SendQ exceeded]
ping-pong has joined #ruby
uptownhr has quit [Quit: uptownhr]
n80_ has quit [Quit: n80_]
roshanavand has joined #ruby
bl4ckdu51 has quit [Ping timeout: 252 seconds]
bl4ckdu5t has joined #ruby
nrsk|2 has quit [Ping timeout: 252 seconds]
mnemon has quit [Ping timeout: 252 seconds]
^wald0 has joined #ruby
mnemon has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
bl4ckdu5t is now known as Guest33998
ta has joined #ruby
einarj has quit [Read error: Connection reset by peer]
gkra_ has joined #ruby
gkra_ is now known as gkra
uptownhr has joined #ruby
nrsk|2 has joined #ruby
Xaitec has joined #ruby
Xaitec has quit [Remote host closed the connection]
einarj has joined #ruby
roshanavand has left #ruby [#ruby]
roshanavand has joined #ruby
^wald0 has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
SixiS has quit [Quit: SixiS]
petejkim has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
^wald0 has joined #ruby
petejkim has left #ruby [#ruby]
^wald0 has quit [Read error: Connection reset by peer]
petejkim has joined #ruby
agjacome has joined #ruby
seal has quit [Ping timeout: 265 seconds]
echevemaster has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
DrCode has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
^wald0 has joined #ruby
tvw has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
^wald0 has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
^wald0 has quit [Read error: Connection reset by peer]
josephndenton has joined #ruby
roshanavand has left #ruby [#ruby]
^wald0 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinning_ has joined #ruby
perturbation has quit [Quit: Leaving]
^wald0 has quit [Read error: Connection reset by peer]
lodgenbd has quit [Quit: Leaving]
failshell has joined #ruby
mikepack has joined #ruby
^wald0 has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
^wald0 has quit [Read error: Connection reset by peer]
sundjango has quit [Ping timeout: 265 seconds]
^wald0 has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
^wald0 has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
arescorpio has quit [Max SendQ exceeded]
deric_skibotn has joined #ruby
^wald0 has joined #ruby
x1337807x has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
jobewan has quit [Quit: Leaving]
failshell has quit [Ping timeout: 245 seconds]
^wald0 has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
antgel has quit [Ping timeout: 276 seconds]
echevemaster has quit [Ping timeout: 245 seconds]
blackmesa has quit [Client Quit]
^wald0 has joined #ruby
freerobby has quit [Quit: Leaving.]
^wald0 has quit [Read error: Connection reset by peer]
antgel has joined #ruby
jerius has quit []
CpuID has quit [Quit: This computer has gone to sleep]
josephndenton has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
petejkim has quit [Quit: petejkim]
last_staff has joined #ruby
n80_ has joined #ruby
kirun has quit [Quit: Client exiting]
Aswebb_ has quit [Remote host closed the connection]
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
^wald0 has joined #ruby
mikepack has quit [Remote host closed the connection]
eightyeights has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
CpuID has joined #ruby
agjacome has quit [Quit: leaving]
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
CpuID has quit [Changing host]
CpuID has joined #ruby
r0bby_ has quit [Changing host]
r0bby_ has joined #ruby
speakingcode has joined #ruby
metadave has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
CpuID has quit [Client Quit]
^wald0 has joined #ruby
cantonic has quit [Quit: cantonic]
n80_ has quit [Quit: n80_]
upsell5 has quit [Quit: upsell5]
crazydiamond has joined #ruby
sambao21 has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
pontiki has quit [Remote host closed the connection]
mikepack has joined #ruby
sdwrage_ has joined #ruby
^wald0 has joined #ruby
juanpablo_ has quit [Quit: (null)]
^wald0 has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
sdwrage has quit [Ping timeout: 252 seconds]
n80_ has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
djbkd has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
DadoCe has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
^wald0 has joined #ruby
DadoCe has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
CpuID has quit [Client Quit]
mjuszczak has quit []
juanpablo_ has quit [Ping timeout: 256 seconds]
^wald0 has joined #ruby
jgt1 has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 265 seconds]
fgo_ has joined #ruby
^wald0 has quit [Read error: Connection reset by peer]
sdwrage_ has quit [Quit: Leaving]
parduse is now known as Guest72861
avahey91 has joined #ruby
pardusf has joined #ruby
Guest72861 has quit [Ping timeout: 245 seconds]
deuterium has joined #ruby
einarj has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
CpuID has joined #ruby
CpuID has joined #ruby
Salatfreak has joined #ruby
^wald0 has joined #ruby
iceden has quit [Read error: Connection reset by peer]
^wald0 has quit [Read error: Connection reset by peer]
n80_ has quit [Quit: n80_]
fgo_ has quit [Ping timeout: 245 seconds]
<Salatfreak> Hello Rubyers! Is it still a good Idea to read "Learning Ruby" from 2007 for a ruby beginner? Are there in-depth online resources worth reading? Any suggestions?
AlexRussia has joined #ruby
josephndenton has joined #ruby
^wald0 has joined #ruby
enebo has quit [Quit: enebo]
<seanmarcia> Salatfreak I always recommend Learn to Program by Chris Pine as a first book. If you have a programming background and just want to pick up Ruby style, Pine's book might be a little basic and you should probably start with Eloquent Ruby by Russ Olsen.
nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has quit [Quit: WeeChat 1.1]
* porfa later
porfa has quit [Quit: porfa]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
klmlfl has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
dfinning_ has quit [Remote host closed the connection]
seal has joined #ruby
icbm has quit [Quit: Computer sleeping]
uptownhr has quit [Quit: uptownhr]
thomas has quit [Quit: leaving]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
thomas has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
Guest33998 is now known as bl4ckdu5t
Tricon has quit [Ping timeout: 265 seconds]
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
klmlfl has joined #ruby
hasrb has left #ruby [#ruby]
<shevy> seanmarcia I also always recommend the one by chris pine, it gives a good intro
hiyosi has joined #ruby
fivetwentysix has joined #ruby
coderhs has joined #ruby
zemlya has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
coderhs has quit [Client Quit]
^wald0 has quit [Quit: ^wald0]
uptownhr has joined #ruby
iceden has joined #ruby
reinaldob has joined #ruby
maletor has quit [Read error: Connection reset by peer]
leonshalimov has quit [Ping timeout: 252 seconds]
<Salatfreak> seanmarcia: Hm, I think I would start with the Olsen book. But unfortunatelly it's not in my university's library and I don't really want to pay 30$ for it... Are there equally good books? I already learned some other languages and I would mainly wan't to learn to learn rails afterwards. Are there good books explaining both at once maybe?
antgel has quit [Ping timeout: 245 seconds]
deric_skibotn has joined #ruby
<havenn> Salatfreak: The Ruby Programming Language and The Well-Grounded Rubyist Second Edition are both very good.
<seanmarcia> Agreed! The Well Grounded Rubyist is fantastic :)
jgt1 has joined #ruby
crueber has quit [Quit: Leaving.]
NivenHuH has joined #ruby
dorei has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reset has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
Photism has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
mischief has joined #ruby
Limix has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
Limix has quit [Client Quit]
<mischief> hi, i'm having to learn ruby and have some questions. how do i get the documentation of a function/package/class etc on the cli? how do i manage packages without 'sudo gem install ...'
pdoherty has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
x77686d has quit [Read error: Connection reset by peer]
last_staff has quit [Ping timeout: 255 seconds]
mjuszczak has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1]
<Salatfreak> Cool, "The ruby programming language" (2008) is freely availlable on the internet. I'll go with that one. Thanks! And for rails afterwards? What can you suggest? ^^
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
sevenseacat has joined #ruby
<jhass> mischief: 1) with the ri tool, 2) by adding install: --user-install to your ~/.gemrc
freerobby has joined #ruby
x77686d has joined #ruby
<jhass> Salatfreak: 2008 is way too old for ruby
sklik has quit [Remote host closed the connection]
astrobunny has joined #ruby
<mischief> jhass: does documentation really expire that quickly
<jhass> we had 1.9, 2.0 and 2.1 since
<jhass> 1.8 -> 1.9 was a major shift
<Salatfreak> jhass: Uhhh :(
<dorei> i think matz's book is focued towards 1.9
<dorei> focused
pdoherty has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 245 seconds]
<mischief> ri print
<mischief> Nothing known about .print
<jhass> Try Kernel#print
<jhass> might need to generate/install docs
giuseppesolinas has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
<dorei> or ri Object#print
<mischief> the hash is unfortunate :)
<jidar> those ri docks look pretty weak
<jidar> docks, lol... docs
reinaldob has quit [Remote host closed the connection]
<mischief> why would it be 'Object' *or* 'Kernel'?
znst has joined #ruby
<jhass> ri print actually works when you have docs available
Atrumx has quit [Quit: exit]
<jhass> Kernel is where the method is defined
<jhass> >> method(:print).owner
<eval-in_> jhass => Kernel (https://eval.in/244818)
martinium has quit [Remote host closed the connection]
reinaldob has joined #ruby
<jhass> Object includes Kernel
<jhass> >> Object.ancestors
<eval-in_> jhass => [Object, Kernel, BasicObject] (https://eval.in/244819)
<jhass> the toplevel is an instance of Object, sort of
<jhass> >> self.class
<eval-in_> jhass => Object (https://eval.in/244820)
LouisRoR1 has quit [Ping timeout: 265 seconds]
fedexo has joined #ruby
LouisRoR has joined #ruby
martinium has joined #ruby
<dorei> mischief: why not read the docs @ your browser?
Zai00 has quit [Quit: Zai00]
martinium has joined #ruby
martinium has quit [Changing host]
ZoanthusR has joined #ruby
thomas1 has joined #ruby
<mischief> i prefer a cli naturally
EasyCo has joined #ruby
djbkd has joined #ruby
znst has quit [Ping timeout: 245 seconds]
reinaldob has quit [Remote host closed the connection]
<Salatfreak> I could get "Metaprogramming Ruby 2 : program like the Ruby pros" from 2014. At it-ebooks.info there is "Programming Ruby 1.9 & 2.0" from 2010 availlable as well. Anybody know them?
<jhass> I know neither, but the former doesn't sound like a beginner book
<jhass> did you check chris pines book yet?
thomas has quit [Quit: Toodles.]
thomas1 is now known as thomas
B1n4r10 has joined #ruby
<mischief> where is .gemrc documented
liamkeily has quit [Quit: This computer has gone to sleep]
uptownhr has quit [Quit: uptownhr]
<mischief> got it.
reset has joined #ruby
uptownhr has joined #ruby