<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]
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).
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
<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
<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
<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
<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?
<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.
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
<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 }
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>
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
<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]
<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.
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
<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
<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
<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]
<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]
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]
<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>
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]
<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.
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]
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…]
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
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.
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.
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]
<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
<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