Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unclouded has quit [Ping timeout: 246 seconds]
<sharkman>
k
Cache_Money has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<Cache_Money>
I'm using Ubuntu 14.04. When I run `rbenv install --list` I only see 2.2.0-dev/preview1/preview2. I'm running 2.2.2p95 on my Mac. How do I install 2.2.2p95 on Ubuntu?
Melpaws has joined #ruby
<Cache_Money>
Or how do I get it to show up as an option when installing with rbenv?
chipotle has joined #ruby
tjbiddle has joined #ruby
<nofxx>
Cache_Money, my suggestion: add brightbox ruby repo, and avoid rbenv/rvm
<nofxx>
you'll install/update ruby with apt-get
mordocai has quit [Read error: No route to host]
baroquebobcat has quit [Quit: baroquebobcat]
bayed has quit [Quit: Connection closed for inactivity]
SenpaiSilver_ has quit [Quit: Leaving]
<sharkman>
this is listed as a start time on a webpage im scraping, 1442535900000, any ideas what format that is in? how i can make it a Date object?
<Ox0dea>
Linguistically, an epoch is just a period of time.
marr has quit [Ping timeout: 255 seconds]
ajafo has joined #ruby
ChasedSpade has quit [Quit: No reason specified.]
howdoico1 has quit [Ping timeout: 244 seconds]
dariasmc has joined #ruby
<Ox0dea>
In this case, it's just a timestamp that indicates the number of seconds since the midnight between 1969 and 1970.
<Ox0dea>
Unix is old.
<sharkman>
interesting that a website would choose to use that
<dariasmc>
is p the inspect version of puts in ruby? any help?
<Ox0dea>
sharkman: It's very common, which makes it convenient.
<sharkman>
ah i see
sepp2k has quit [Quit: Leaving.]
tjbiddle_ has joined #ruby
pauly_oc has quit [Ping timeout: 255 seconds]
<Ox0dea>
dariasmc: `p foo` is almost literally `puts foo.inspect`, yes.
tjbiddle has quit [Ping timeout: 265 seconds]
innpr0cess has quit [Client Quit]
tjbiddle_ is now known as tjbiddle
<Ox0dea>
But #puts returns `nil`, whereas #p returns the argument.
<dariasmc>
0x0Dea: thanks a lot
<Ox0dea>
Sure thing.
<dariasmc>
0x0dea: i started learning ruby today :D
haylon has joined #ruby
<Ox0dea>
Yay! <3
Timba-as has quit [Quit: Be back later ...]
<Ox0dea>
Where ya comin' from?
Timba-as has joined #ruby
siaw has joined #ruby
<siaw>
dariasmc: :p
<haylon>
Hey guys. Any idea on why the gem chef won't build on ubuntu because of libyajl2, even though its installed as well as the dev package?
<Ox0dea>
haylon: Post compilation errors.
<oddalot>
is it in your path?
<haylon>
extconf.rb:104:in `makemakefiles': unhandled exception and what I read said I needed make and gcc, yet those are already installed with build-essential
<sharkman>
can you sign up for an account on www.heritagesports.eu and let me use it? its a sports betting site
<sharkman>
i wont bet, just need it to log in and see the lines
<monoprotic>
why cant you?
<sharkman>
i have one. i use it to bet. i need another to log into with a computer program
<sharkman>
to scrape information
ndrei has quit [Ping timeout: 240 seconds]
<monoprotic>
why cant you sign up for a second oen
<sharkman>
they wont let me
<sharkman>
one account per address
linuxboy_ has joined #ruby
<monoprotic>
i see
<monoprotic>
make up an address
Contigi has joined #ruby
<sharkman>
i think my friend is doing it for me now. if he cant ill pay you, or someone else, a few dollars in bitcoins, if that makes it worth your time
<monoprotic>
not me, maybe someone else
pharaoh2 has joined #ruby
ndrei has joined #ruby
drewvanstone has joined #ruby
maletor has joined #ruby
mprelude has quit [Ping timeout: 256 seconds]
<sharkman>
boy im hungry. ive been working all day
<sharkman>
havent even eaten much
linuxboytoo has quit [Ping timeout: 240 seconds]
maletor has quit [Client Quit]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
r_baron has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
linuxboy_ has quit [Ping timeout: 256 seconds]
filip_ has joined #ruby
<filip_>
hi
<filip_>
since true/false is frozen i18n specs are failing.
SenpaiSilver_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
diego2 is now known as diegoviola
FernandoBasso has quit [Quit: WeeChat 1.3]
SenpaiSilver_ has joined #ruby
cina has quit [Ping timeout: 256 seconds]
SenpaiSilver_ has quit [Client Quit]
ndrei has quit [Ping timeout: 246 seconds]
SenpaiSilver_ has joined #ruby
ec\ has quit [Ping timeout: 240 seconds]
SenpaiSilver has quit [Ping timeout: 255 seconds]
webguynow has quit [Ping timeout: 250 seconds]
ipstatic_ has quit [Ping timeout: 240 seconds]
ec\ has joined #ruby
cina has joined #ruby
ndrei has joined #ruby
webguynow has joined #ruby
failshell has quit [Remote host closed the connection]
ipstatic has joined #ruby
nietzschette has joined #ruby
rushed has joined #ruby
tatsuya_o has joined #ruby
Guest61 has joined #ruby
robwri32 has joined #ruby
<Guest61>
Evening everybody
<sharkman>
hey i will pay someone $5 in bitcoins to make an account on a sports betting site to let me use. i wont deposit money. just want to use it to look at betting lines
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
<Guest61>
i've got a begininer question
ndrei has quit [Ping timeout: 250 seconds]
ndrei_ has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
<monoprotic>
Guest61 shoon
<monoprotic>
shoot
psk17_ has joined #ruby
webguynow has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psk17_ has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 246 seconds]
<Guest61>
ok so i'm taking this ruby and rails class really wrapping my head around the conecpts and all, now i'm wanting to work with some real data... i've got this csv file with some relevant data.
ledestin has joined #ruby
<Guest61>
whats the best way of doing this? i'm reading rake tasks, also i'm seeing some on the fly style variants.
<Guest61>
which is what i'm trying to accomplish at this point my fall back is try and seed the db some how
<Guest61>
so the error i'm getting relates to the file path of my csv file
<Guest61>
csv_text = File.read('files/demo.csv')
<monoprotic>
there is also a rails channel
<monoprotic>
#rubyonrails
<Guest61>
so this is a rails question?
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
<monoprotic>
just general advice
<Guest61>
@monoprotic i guess your right
joufflu has quit [Ping timeout: 246 seconds]
<Guest61>
can i still ask?
webguynow has quit [Ping timeout: 240 seconds]
kies has quit [Read error: Connection reset by peer]
webguynow has joined #ruby
kies has joined #ruby
<Guest61>
i guess my question is where should i put the file, currently it resides in app/assets/files/demo.csv but the error message i'm getting does provide much more info
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
xcesariox has quit [Ping timeout: 260 seconds]
mjuszcza_ has quit []
bmurt has joined #ruby
_djbkd has quit [Quit: My people need me...]
s00pcan has quit [Ping timeout: 246 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
sankaber has joined #ruby
filip_ is now known as bartuz
jenrzzz has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
pygospa has quit [Ping timeout: 252 seconds]
BraddPitt has quit [Quit: leaving]
umgrosscol has joined #ruby
kyle__ has quit [Ping timeout: 260 seconds]
BraddPitt has joined #ruby
webguynow has quit [Ping timeout: 272 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
kyle__ has joined #ruby
<pontiki>
Guest61: in Rails, the app/assets folder is for things which are supposed to be delivered to the user's client
dorei has quit []
webguynow has joined #ruby
<pontiki>
you shouldn't use it for your back end application data
<Guest61>
@pontiki i moved it over to a rake file and the csv into the db folder
* pontiki
nods
<Guest61>
@pontiki it seems to be connecting but i'm getting a new error
<RickHull>
particularly given that tools like git do line-oriented diffs
<RickHull>
i would avoid lines-in-isolation being misleading
ivanskie has joined #ruby
devbug has joined #ruby
<RickHull>
that is, any mutiline expression
<RickHull>
should have a trailing continuation token
<baweaver>
I would laugh, choose one, put it in a style guide, and then proceed to laugh harder at everyone else wasting hours debating pointless things like that.
<RickHull>
e.g. dot, equals
ngscheurich has quit [Ping timeout: 252 seconds]
beauby has quit [Ping timeout: 240 seconds]
<baweaver>
Bike shedding at its finest
rushed has quit [Quit: rushed]
<pontiki>
what colour is your shed, mate?
<RickHull>
so long as it's black
<RickHull>
to me, it's clear that you want to include the line-continuation token
<RickHull>
to avoid the line-oriented diff problem
devbug__ has joined #ruby
devbug_ has quit [Ping timeout: 250 seconds]
gener1c has joined #ruby
<RickHull>
both humans and ruby parsers operate top-to-bottom
<RickHull>
so why introduce an ambiguity (is this a complete expression?) at the top line?
devbug has quit [Ping timeout: 246 seconds]
webguynow has quit [Ping timeout: 250 seconds]
Guest61 has joined #ruby
robwri32 has joined #ruby
<RickHull>
thus, this decision is EZ-button
webguynow has joined #ruby
gener1c_ has quit [Ping timeout: 260 seconds]
umgrosscol has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
<RickHull>
I'd go so far as to question the judgment of anyone who thinks it's really a tossup
braincrash has quit [Quit: bye bye]
<RickHull>
(including Matz)
webguynow has quit [Ping timeout: 252 seconds]
umgrosscol has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
karapetyan has joined #ruby
matp_ has joined #ruby
beauby has joined #ruby
rezzack1 has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
joufflu has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
catcher has joined #ruby
matp has quit [Ping timeout: 250 seconds]
matp_ is now known as matp
stardiviner has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
ngscheurich has joined #ruby
opensource_ninja has joined #ruby
beauby has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
dopamean_ has quit [Read error: Connection reset by peer]
dopamean_ has joined #ruby
aaeron has quit [Quit: Leaving.]
hotguitar has quit [Ping timeout: 250 seconds]
psk17_ has joined #ruby
ndrei_ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
<pontiki>
i agree with you on this, but it's interesting to me that the norm in JavaScript is to do it the other way
<pontiki>
s/but/and/
bb010g has joined #ruby
dopie has joined #ruby
<RickHull>
oh god, don't get me started on trailing commas in JSON
rezzack has joined #ruby
<RickHull>
worst.decision.ever except for the WWII stuff
joufflu has quit [Ping timeout: 240 seconds]
rohit has quit [Quit: Leaving]
<Ox0dea>
Bletchley Park used JavaScript, you say?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull>
i was going to make a hitler or nazi analogy, then backed off
<Ox0dea>
Still Godwin's.
<RickHull>
just barely, i think i can still duck it
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
rushed has joined #ruby
Guest61 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robwri32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
segfalt`` has quit [Ping timeout: 240 seconds]
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
darkf has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
iateadonut has joined #ruby
failshell has joined #ruby
<Ox0dea>
RickHull: Still about?
ndrei has quit [Ping timeout: 265 seconds]
tatsuya_o has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
<RickHull>
the reading of the book was so long ago, and it doesn't have the sticking power of the metallica lyrics
<Ox0dea>
It's the same sentiment as expressed in "no man is an island", as I see it.
<RickHull>
the bell tolling, that is an information delivery? a signal?
<Ox0dea>
A death.
<RickHull>
oh
<RickHull>
not sure how i missed that critical bridge in all of it
<RickHull>
i was fascinated by the hemingway story of being a spanish guerilla
rakm has joined #ruby
<RickHull>
but not sure I got the big picture idea he was trying to send. a signal, if you will ;)
dopie has quit [Ping timeout: 252 seconds]
<RickHull>
> The book's title is taken from the metaphysical poet John Donne's series of meditations and prayers on health, pain, and sickness (written while Donne was convalescing from a nearly fatal illness) published in 1624 as Devotions upon Emergent Occasions, specifically Meditation XVII. Hemingway quotes part of the meditation (using Donne's original spelling) in the book's epigraph, which in turn refers to the practice of funeral tolling:
<RickHull>
> No man is an Iland, intire of it selfe; every man is a peece of the Continent, a part of the maine; if a Clod bee washed away by the Sea, Europe is the lesse, as well as if a Promontorie were, as well as if a Mannor of thy friends or of thine owne were; any mans death diminishes me, because I am involved in Mankinde; And therefore never send to know for whom the bell tolls; It tolls for thee.
<RickHull>
so it's something like coming face-to-face with one's own demise
moeabdol has joined #ruby
psk17_ has quit [Quit: Leaving]
<RickHull>
i'm not sure if it's about the futility of such -- don't even bother inquiring if it's for you or not -- it can't matter
<RickHull>
or if it's more about a life well-lived gives no consideration for such
dima_ has joined #ruby
charliesome has joined #ruby
<Ox0dea>
Art is about interpretation, you say?
<RickHull>
art is shite, say I
PlasmaStar has joined #ruby
<Ox0dea>
> Art is, for all its faults, at least selfless; a work of art gives, by its very nature and without even the possibility of reciprocation, the whole of itself. But WYGIWYS.
<RickHull>
in that art is a message, i agree
<Ox0dea>
Art is a mirror.
<RickHull>
the message has no concern for its sender, only the recipient
ivanskie has quit [Ping timeout: 255 seconds]
Lucky__ has joined #ruby
RickHull has quit [Read error: Connection reset by peer]
RickHull has joined #ruby
<RickHull>
i'm back, what did i miss
<RickHull>
just when it was starting to get gfood
moeabdol has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<pontiki>
you're referring to the artifact, not the art
<pontiki>
art is a process, and as such is entirely selfish
<RickHull>
i'm with you so far
<pontiki>
that's it :)
<RickHull>
it's a personal expression, that can only have external value
<RickHull>
if those who receive it value it as such
<pontiki>
the artifact
<pontiki>
but the process has instrinsic value
<pontiki>
*only* intrinsic value
ndrei has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
<pontiki>
then again, my photog teacher said "it's not art until the check clears the bank" :)
shinnya has quit [Ping timeout: 272 seconds]
devbug__ has quit [Ping timeout: 240 seconds]
<pontiki>
i love painting
<RickHull>
makes sense to me. though i disagree with your photog teacher
aaeron has joined #ruby
kp666 has joined #ruby
<pontiki>
oh, you know, he was joking (sommat)
<RickHull>
well it's a good sentiment to hold
David27 has quit [Ping timeout: 250 seconds]
<baweaver>
heh, then I've made a lot of art lately.
<RickHull>
i just disagree with its truth value / definition
tkuchiki has quit [Remote host closed the connection]
sdfgsdfg has joined #ruby
pharaoh2 has joined #ruby
aaeron1 has joined #ruby
<RickHull>
fundamentally, art is expression. it's when someone focuses on expression, particularly concerned with the resulting product, that process becomes art
Pathfinder has joined #ruby
towski_ has joined #ruby
<pontiki>
when i shuffle through my paintings, they don't have any extrinsic or intrinsic value in themselves. they invoke memories and learning
aaeron1 has quit [Client Quit]
<pontiki>
but it's not the thing itself
aaeron1 has joined #ruby
aaeron1 has quit [Client Quit]
aaeron has quit [Client Quit]
<pontiki>
all art is performance; all performance is art
<RickHull>
probably there is intrinsic value
dopie has joined #ruby
<RickHull>
i would say when there is an intention for creating extrinsic value, thus art
<pontiki>
nah, it's just paper and pigment
<RickHull>
the art may fail or succeed at creating extrinsic value
Exuma has joined #ruby
<RickHull>
it's the intention that matters
<pontiki>
i can imagine that's important
grenierm has quit [Quit: grenierm]
tejasmanohar has joined #ruby
catcher has quit [Quit: catcher]
ndrei has joined #ruby
arooni has quit [Quit: Leaving]
Rollabunna has joined #ruby
tobiasvl has quit [Ping timeout: 250 seconds]
grenierm has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
Rollabunna has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ndrei has joined #ruby
beauby has joined #ruby
RickHull has left #ruby [#ruby]
Exuma has quit [Quit: ZZZzzz…]
ngscheurich has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
braincrash has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
braincras has quit [Ping timeout: 252 seconds]
dgutierrez1287 has joined #ruby
Exuma has quit []
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
webguynow has joined #ruby
karapetyan has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
dima_ has quit [Quit: This computer has gone to sleep]
karapetyan has joined #ruby
RickHull1 has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
lkba_ has joined #ruby
iamninja has joined #ruby
grenierm has quit [Quit: grenierm]
jenrzzz has quit [Ping timeout: 256 seconds]
rohit has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
voltalio has joined #ruby
pawnbox has joined #ruby
poguez_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Melpaws has quit [Quit: Leaving.]
iamninja has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Luming has joined #ruby
vondruch has joined #ruby
youngbaks has joined #ruby
Rutix has quit []
wldcordeiro has joined #ruby
ndrei has joined #ruby
houhoulis has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
beauby has joined #ruby
dEPy has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
yfeldblum has joined #ruby
beauby has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
<dEPy>
Any way to check which gem is using another gem specified in Gemfile.lock?
pawnbox has quit [Remote host closed the connection]
astrobunny has joined #ruby
subshad has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
rushed has quit [Quit: rushed]
<pontiki>
it's in the hierarchy
ndrei has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
ndrei has joined #ruby
<nofxx>
when inside rescue how to re-raise the error? rescue Foo => e; ...... ; fail e ? raise e? super?
opensource_ninja has quit [Ping timeout: 240 seconds]
dEPy has quit [Quit: (null)]
gamov has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
Billias has quit [Read error: Connection reset by peer]
Pathfinder has quit [Ping timeout: 250 seconds]
Ox0dea has quit [Read error: No route to host]
Billias has joined #ruby
<gamov>
Hello. I have a fairly simple question that I can't figure out nor google. Basically, I want to set a default block if no implicit block is given to a method but I can't make it work:
<gamov>
assert_sorted array, &block
<gamov>
block ||= ->{|i,j| i <= j }
saddad has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<gamov>
assert array.each_cons(2).all?(&block)
pawnbox has quit [Remote host closed the connection]
MichaelSmith has left #ruby [#ruby]
ndrei has joined #ruby
AndChat-43764 has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 250 seconds]
Cache_Money has joined #ruby
tkuchiki has joined #ruby
mary5030 has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
lkba has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
dhjondoh has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
HAL2328 has joined #ruby
<apeiros>
gamov: you got the syntax wrong. it's ->(i,j) { i <= j }
tejasmanohar has joined #ruby
astrobunny has quit [Remote host closed the connection]
moeabdol has joined #ruby
Rickmasta has joined #ruby
sdfgsdfg has quit [Ping timeout: 256 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
moeabdol has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<nofxx>
✓✔✕✖✗✘➔➛➢➧ which are the coolest for a cli app? one of each
pawnbox has quit [Remote host closed the connection]
krz has joined #ruby
davedev24 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
ndrei has joined #ruby
amclain has quit [Quit: Leaving]
alexUaN has joined #ruby
Timba-as has joined #ruby
weemsledeux has joined #ruby
astrobunny has joined #ruby
tejasmanohar has left #ruby [#ruby]
youngbaks has quit [Ping timeout: 250 seconds]
drewvanstone has joined #ruby
Timba-as has quit [Client Quit]
bruno- has joined #ruby
RandyT has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
davedev24 has quit []
kp666 has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
HoloIRCUser4 has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
HoloIRCUser4 has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
Sembei has joined #ruby
<BraddPitt>
i use ⤳ for my terminal prompt
<BraddPitt>
i quite like it
Pisuke has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
miguelff has quit [Ping timeout: 250 seconds]
emilkarl has joined #ruby
pawnbox_ has joined #ruby
r0x0rZ has joined #ruby
stan has joined #ruby
<baweaver>
λ for me
pawnbox has quit [Ping timeout: 264 seconds]
<nofxx>
baweaver, that would make me want to play half life
eGGsha has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
miguelff has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
<certainty>
moin
<certainty>
+1 for λ
youngbaks has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<baweaver>
Lambda Calculus for me.
<certainty>
same here
* nofxx
glad I had much more fun on teenages
linux_dr has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
ndrei has joined #ruby
astrobunny has joined #ruby
miguelff has quit [Read error: Connection reset by peer]
<linux_dr>
I just submitted a PR to the Vagrant project, but am still trying to get the unit tests to pass… (Before I saw the Travis log, I didn’t know how to build or test my changes)… any suggestions?… I’m not sure quite what I’m reading in the unit tests… :-(
ghostlines has joined #ruby
<certainty>
nofxx: what's more fun than lambda calculus? xD
iamninja has quit [Ping timeout: 256 seconds]
pawnbox_ has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
pawnbox has joined #ruby
tatsuya_o has joined #ruby
khebbie has joined #ruby
devbug_ has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
devbug has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
cih has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
miguelff has joined #ruby
yfeldblum has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
zacts has quit [Quit: leaving]
cih has joined #ruby
<baweaver>
quick problem: Given an array of integers, find the integer that has an odd number of repetitions: [1,1,2] -> 2, [1,1,2,2,3,3,3] -> 3
<baweaver>
(I know the answer, but have fun)
ndrei has quit [Ping timeout: 256 seconds]
code4fun has joined #ruby
<tbuehlmann>
the one and only answer, I suppose
code4fun_ has joined #ruby
ndrei has joined #ruby
linux_dr has quit [Quit: linux_dr]
<baweaver>
oh there are multiple
<baweaver>
some involving hashes, others arrays, some with certain other fun bits
yfeldblum has quit [Ping timeout: 240 seconds]
<baweaver>
Ox0dea, why aren't you here for golf fun....
<shevy>
that dam golfing
cih has quit [Ping timeout: 240 seconds]
rezzack1 has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
cih has joined #ruby
skullcrasher has joined #ruby
dgutierrez1287 has joined #ruby
michael_mbp has joined #ruby
<baweaver>
shevy: care to take a swing?
diego1 has joined #ruby
diego1 has quit [Client Quit]
rezzack has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
<gamov>
mozzarella: sorry, went out for lunch. if I supply an empty array, it works, but not a full array… strange
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gamov>
mozzarella: with [], it passes but as long as something is in the array, it fails. looks like the calling method is not providing 2 parameters to the block. It's very strange, it's the same block…
khebbie has joined #ruby
CloCkWeRX has joined #ruby
<mozzarella>
just show your code and the error message
<maloik>
am I right in arguing that when you call a method "add_ns_records_to_domain", all logic about when or when not to add those methods is better off outside of the actual method?
michael_mbp has joined #ruby
<maloik>
to me this makes perfect sense, but a colleague has a bunch of guard conditions inside the method (that have to do with biz logic) that could make it return nil for a couple reasons and simply not do anything
pawnbox_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
<maloik>
in this case, he's calling the method on after_create for each dns record object, where I'm arguing you should call it after_create "if the dns record is the first for that domain and the record itself isnt an NS record"
<certainty>
shevy: some things map natural to things we know and are quite easily modeled as objects. What object would be a thing be that mirrors the identity function?
webguynow has quit [Ping timeout: 272 seconds]
<shevy>
the what?
<certainty>
identity function a function that returns it's argument
<certainty>
you probably end up with an object that has no data, is just behavior. So what's the point in these things? The lines are blurry
pyon is now known as nyon
<certainty>
shevy: also clojures and higher order functions is all you need to build things that embody most essential OO properties
<certainty>
as a fun experiment i let our new colleagues build a pair out of functions only. They build cons/car/cdr as known in lisp just with functions
<shevy>
you torture them :(
<certainty>
no
<certainty>
in the end they all found it very interesting
<certainty>
this version only create cons cells (a . b). so it's not equivalent to the cdr in case of lists
<certainty>
it's helps to realize that really data and code are really just two ways to see things
<certainty>
somewhat dual
<baweaver>
someone's been reading a lot of lisp.
<certainty>
i'm a scheme programmer at heart
<baweaver>
SICP was it?
<certainty>
it's not really about homoiconicity though. it's more general
<certainty>
baweaver: yeah sicp showed that as well
<certainty>
i love that book
<certainty>
but recently i fell in love with haskell
<certainty>
not good at it, but i really like it
ndrei has quit [Ping timeout: 255 seconds]
devyn has quit [Ping timeout: 240 seconds]
tobiasvl has quit [Quit: fedup 22]
havenwood has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 246 seconds]
devyn has joined #ruby
k3asd` has joined #ruby
chipotle has quit [Quit: cheerio]
baweaver has quit [Remote host closed the connection]
kedare has quit [Ping timeout: 256 seconds]
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
devyn has quit [Ping timeout: 246 seconds]
<flughafen>
oi oi oi!
<certainty>
hi flughafen. What's crackin' in the capitol?
<flughafen>
so much flying certainty !
<certainty>
i see
kedare has joined #ruby
<flughafen>
how are you doing certainty
<certainty>
flughafen: i'm doing fine. A bit bored today but fine :)
<certainty>
going to shop a new accoustic after work
Rollabunna has joined #ruby
<flughafen>
what are you going to get?
<certainty>
don't know yet. I wanted to try the taylor big baby
drewvanstone has quit [Ping timeout: 246 seconds]
<certainty>
i will try some
Denis_ has joined #ruby
x-light has joined #ruby
<certainty>
also i'll let them check the pickup the selector on my hagstrom. The bridge pickup sometimes just doesn't work. But i think it's a problem with the switch and not the circuitry or the pickup itself
<certainty>
maybe too OT. Sorry about that
banjara has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Ping timeout: 255 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devyn has joined #ruby
DoubleMalt has joined #ruby
<oddmunds>
certainty: let me know if you find a place where that is _on_ topic. i want to talk about guitars.
<certainty>
oddmunds: maybe #guitar ... don't know if that exists :)
lxsameer has quit [Quit: Leaving]
<oddmunds>
certainty: it does, let's go there
Pupeno has joined #ruby
Pupeno has joined #ruby
marr has joined #ruby
Denis_ has quit [Quit: Leaving]
pocketprotector has quit [Ping timeout: 272 seconds]
Burgestrand has joined #ruby
groovyshark has joined #ruby
Outlastsheep has joined #ruby
<groovyshark>
is math knowledge necessary for programming?
<Burgestrand>
No.
Motoservo has joined #ruby
<Burgestrand>
groovyshark: Sorry, forgot mention. Still no. :)
<groovyshark>
what about algorithms
<yorickpeterse>
morning
<Burgestrand>
groovyshark: No.
khebbie has quit [Remote host closed the connection]
<Burgestrand>
groovyshark: Both those things could help in certain cases, but in general programming doesn't require preparational skills to learn.
<groovyshark>
you're wrong
<Burgestrand>
groovyshark: You're wrong.
skade has joined #ruby
<groovyshark>
you can't code a solution without figuring out an algorithm and algorithms require knowledge of math to solve
<Burgestrand>
groovyshark: What kind of solution, to what problem?
<groovyshark>
to any
rushed has quit [Quit: rushed]
<Burgestrand>
groovyshark: I disagree.
<groovyshark>
okay, do you have limited math knowledge?
neanderslob has quit [Read error: Connection reset by peer]
<Burgestrand>
groovyshark: But perhaps your definition of algorithm is broader than mine.
<groovyshark>
exactly my moiunt
<groovyshark>
point*
<Burgestrand>
groovyshark: I could argue everything is an algorithm, but that doesn't help anyone it just makes learning to program scarier.
<groovyshark>
there is no specific definition of algorithm
<groovyshark>
no it makes programming what it is it's not scary nor is it not scary
<groovyshark>
it is what it is
<groovyshark>
and telling people that they don't need to know high level math is dangerous and not beneficial to beginners
<Burgestrand>
They don't.
<[k->
certainty: haskell is love, haskell is life! <3
<certainty>
[k-: :) .. i also meant to have a look at some dependently typed languages. Idris would be cool since haskell
<Burgestrand>
You don't need high-level math to hide an element in a web page, or to write a website to keep track of your books.
<groovyshark>
giving beginners an understanding what subjects they need to know to be at the level where people are working is crucial to saving time for everyone
<shevy>
and you know that all beginners need math
<groovyshark>
you need math
<shevy>
always
<groovyshark>
shevy: he said you don't before
<Burgestrand>
groovyshark: Your notion of "where people are working" is too specific.
pawnbox has joined #ruby
<shevy>
FileUtils.mkdir_p('/tmp/foo') # lots of math required here
slani has quit [Remote host closed the connection]
<shevy>
and he is completely right because it totally depends on what you are doing
<groovyshark>
Burgestrand: my notion is jr dev level
<groovyshark>
my definition&
allomov has joined #ruby
<groovyshark>
my definition*
<shevy>
ah, you are that gateway guy again :)
<groovyshark>
but saying that you don't need math is dangerous and wastes everyone's time
webguynow has quit [Ping timeout: 246 seconds]
<Burgestrand>
Yes there's trolling but it's also interesting. :)
<Burgestrand>
groovyshark: Jr Dev level is not the rest of the world.
<shevy>
Burgestrand :D
<groovyshark>
jr dev level is the rest of the world
<Burgestrand>
groovyshark: There's plenty of local businesses where they only want a simple website for simple needs, jr dev level is an illusion.
<karapetyan>
∑Ki=1R(N−i,K)
<groovyshark>
the sr to jr ratio is astronomical
<karapetyan>
that how it works!
webguynow has joined #ruby
<Burgestrand>
groovyshark: The jr to hobby is even more so.
<groovyshark>
there are a lot of jr developers and very few senior
<groovyshark>
the difference between jr and sr is efficiency and knowledge
<Burgestrand>
Just because your SF Bay Area startup is getting a lot of press coverage does not mean that's the norm.
startupality has joined #ruby
<groovyshark>
no 99.99 % of startups fail
<Burgestrand>
groovyshark: Your numbers are wrong.
<[k->
bring the debate to ?ot please
<groovyshark>
well i might have embellished a little
rattatmatt has quit [Quit: Leaving]
<groovyshark>
it's 90% but it's still just as bad
<Burgestrand>
[k-: Sorry, I'm used to how this channel used to be a few years back when there was no OT channel. :)
<shevy>
[k- is haskell offtopic!
<Burgestrand>
… actually, now that there is an OT channel I can't see a clear definition of what the topic would actually be, apart from "ruby".
skade has quit [Quit: Computer has gone to sleep.]
jgt1 has joined #ruby
jgt1 has quit [Client Quit]
<[k->
shevy: a debate that looks like an argument is off limits!
jgt has joined #ruby
iamninja has joined #ruby
<Burgestrand>
I would argue it's an argument that looks like a debate.
<Burgestrand>
;)
<groovyshark>
[k-: it's a debate that is trying to ensure beginner's won't fall into the trap of being given wrong advice that waste's everyone's time
bigkevmcd has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<certainty>
shevy: haskell is never offtopic :p
<groovyshark>
haskell is a shit language
<groovyshark>
it miserably tried to copy c
<groovyshark>
and it failed
<Burgestrand>
What do you use to serialize JSON nowadays? YourModel#as_json, ActiveModel::Serializers, JBuilder, something else entirely?
poguez_ has quit [Quit: Connection closed for inactivity]
webguynow has quit [Ping timeout: 250 seconds]
<[k->
please take your insults to ?ot
<groovyshark>
activerecord is what everyone uses
webguynow has joined #ruby
tjbiddle has joined #ruby
<Burgestrand>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<groovyshark>
[k-: it's not an insult... please learn to read and if you knew a lick of haskell you'd see how pointless that language is
<yorickpeterse>
groovyshark: also unless you have actual facts to back up statements like that, -> there's the door
<groovyshark>
haskell is a ripoff from c
<[k->
thanks yorickpeterse
Pathfinder has quit [Ping timeout: 255 seconds]
greenarrow has joined #ruby
<groovyshark>
why know haskell when you can do things more efficiently in c
<yorickpeterse>
groovyshark: then you literally don't know what C and Haskell are
<groovyshark>
knowing haskell is a waste of time
<atmosx>
yorickpeterse: programming languages?
<atmosx>
that was easy.
<groovyshark>
c is the most important language to know in the world
yfeldblum has quit [Ping timeout: 246 seconds]
<yorickpeterse>
groovyshark: this is also your last warning, keep it nice
<atmosx>
to know in the known world.
<groovyshark>
ruby is only useful to join the rails bandwagon
<groovyshark>
and get a 100k salary at a startup
<groovyshark>
literally all ruby libraries are written in c
Pathfinder has joined #ruby
felixr has joined #ruby
<atmosx>
groovyshark: I wanna 100k salary on a startup too, but I wanna work from home. No reason to hang around when there's git and slack.
tatsuya_o has joined #ruby
<groovyshark>
office orgies are a great reason to come to work at an office
<jhass>
groovyshark: got a Ruby question? else this is getting rather offtopic and I'd like to ask you to stop it to keep the channel free for Ruby related problems. Thanks!
<atmosx>
groovyshark: depends on the coworkers I guess. If you work for the 'Elite fashion agency' I'm all for it.
<groovyshark>
i'm starting a company soon and there will be no policies against sexual behavior of any kind
<shevy>
lol
<shevy>
he just asks for it
<groovyshark>
where is the offtopic channel?
<jhass>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<shevy>
and it was triggered the moment jhass wrote something ;)
<prosodyC>
That is key. Once we have threading it will be easier to read.
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<shevy>
so many gateways
gamov has quit [Quit: gamov]
radgeRayden has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 264 seconds]
<prosodyC>
shevy: Yea. You said it.
leafybasil has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
Hounddog has joined #ruby
solars has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
rikkipitt has joined #ruby
bigkevmcd has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
FastJack has quit [Quit: leaving]
tvw has joined #ruby
CustosL1men has joined #ruby
<shevy>
hmm we have .prepend on strings but no .append ?
Hounddog has joined #ruby
<jhass>
it's called <<
<certainty>
no Method#compose :(
<shevy>
yeah but it looks non-synergistic when I also use .prepend :(
<certainty>
also never create a document about how to write unmaintainable code in a way that is pleasing to the eye and easy to read :)
Rollabunna has quit [Ping timeout: 250 seconds]
<adaedra>
This lacks some Comic Sans
<shevy>
[k- yeah well I guess he refers to unmaintainable languages :)
Hrorek has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
SenpaiSilver_ has quit [Quit: Leaving]
<shevy>
epic quote from the page "Java is schizophrenic"
SenpaiSilver has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
dhjondoh has joined #ruby
timonv has joined #ruby
<adaedra>
Before I was schizophrenic. Now we're doing fine.
<shevy>
certainty you know, the 1990 era of the www
<shevy>
blinking marquee
Rutix has joined #ruby
Rutix has joined #ruby
<certainty>
shevy: oh yeah the good stuff
Burgestrand has joined #ruby
khebbie has joined #ruby
pimpin has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
ponga has joined #ruby
karapetyan has quit [Remote host closed the connection]
Rickmasta has joined #ruby
drewvanstone has joined #ruby
karapetyan has joined #ruby
devoldmx has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
drewvanstone has quit [Ping timeout: 246 seconds]
Pathfinder has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
khebbie has joined #ruby
dhjondoh has joined #ruby
Rollabunna has joined #ruby
hadrig has joined #ruby
iamninja has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
stamina has joined #ruby
karapetyan has joined #ruby
r_baron has joined #ruby
Hrorek is now known as Rurik
Rurik has quit [Changing host]
Rurik has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 255 seconds]
webguynow has joined #ruby
<izzol_>
I need to create nice console output from my code, I'm looking some nice gem which will help to me create some sort of tables, colors or whatever which will help to see the output correctly
<shevy>
hmm... how many ways do we have in ruby to create a directory... we can use fileutils mkdir ... and we could use system() too, e. g. to use coreutils mkdir. Are there any other ways?
youngbaks has joined #ruby
<workmad3>
shevy: do you count fileutils mkdir_p to be a different way?
skade has joined #ruby
<certainty>
that's more like creating a path :p
phutchins has joined #ruby
_MiW is now known as MiW
tkuchiki has joined #ruby
<shevy>
workmad3 would be same, I am more thinking whether there is some exotic way via ffi or something
<certainty>
Dir.mkdir
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
are you bored shevy? xD
<shevy>
I think we have a bit more variants when it comes to delete a file, at least, there is File.delete() but also a FileUtils* variant and the system() way
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<shevy>
certainty nope! I am working on something and using FileUtils right now to create a directory
<certainty>
shevy: and you want to find the most exotic way to do it?
<workmad3>
shevy: well, you could do all sorts of exotic things with ffi... you could use that to invoke C functionality... you could create a bridge between, say, PHP and ruby using FFI and use PHP's functionality... you could write a ruby program that outputs a python script to create a directory and execute it...
<izzol_>
certainty: shevy thanks! I will check it ;-)
<workmad3>
shevy: you could potentially write a C program that creates a directory by directly making system calls, and then invoke it from ruby using FFI...
<certainty>
you could probably fiddle with the inode table and make another file appear to be a directory
<certainty>
idk
<certainty>
or a kernel module
<workmad3>
certainty: yeah, I was wondering about that... seeing as directories in unix are just a special type of file, I wondered if you could write out a file with the correct contents and then set the directory bit on it
<shevy>
certainty all variants :)
<workmad3>
it required more than 10 seconds of googling to figure out though :)
Rollabunna has quit [Quit: Leaving...]
<certainty>
shevy: well you can create a file via many webservices xD
<certainty>
and directories
blueOxigen has joined #ruby
<certainty>
webdav also
rodfersou has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
<shevy>
workmad3 cool
webguynow has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
<shevy>
one more reason to use ffi one day!
nfk has joined #ruby
<workmad3>
heh :) write a sinatra service that creates a directory, run it on your machine, then write another sinatra service that will call back to that service when you hit it, run it on a remote server and then write a local ruby script that makes a request to the remote service
tcopeland has quit [Quit: Leaving.]
<certainty>
or make php call that service to get the round trip
<workmad3>
shevy: heh :) I doubt using FFI will replace FileUtils.mkdir as the goto method of creating directories ;)
leafybasil has quit [Remote host closed the connection]
<SebastianThorn>
not sure how i can fix this, any ideas?
andyrs has joined #ruby
segfalt has quit [Quit: segfalt]
naps62 has quit [Ping timeout: 246 seconds]
anisha_ has joined #ruby
naps62 has joined #ruby
karapetyan has quit [Read error: No route to host]
<jhass>
karapety_: you lack the loop for the summation
<stardiviner>
jhass: ask you one question, If I want to keep my previous installed Gems, what should I do to rebuild my ruby version in rbenv?
<karapety_>
jhass: don't understand
<jhass>
stardiviner: I don't use rbenv
dorei has joined #ruby
<SebastianThorn>
one field looks like this #70007\,0510 but the csv-lib makes that into 2 values, #70007\ and 0510
<jhass>
karapety_: actually where did you get that formula from? Looks like it's non-terminating?
anisha has quit [Ping timeout: 256 seconds]
<karapety_>
it's a forum
<karapety_>
yes, seems lke...
<stardiviner>
jhass: oh, sorry
<karapety_>
jhass: actually ive got huge problem with math
<karapety_>
and with understanding loops ( nested loops, and recursive)
<jhass>
that formula makes no sense, at least not if that's really all there is to it
youngbaks has quit [Quit: WeeChat 1.3]
lsmola has quit [Ping timeout: 240 seconds]
<karapety_>
could you recommend some tasks to improve that skills
<karapety_>
cause i can't (execute nested loops code in my head)
webguynow has quit [Ping timeout: 246 seconds]
<karapety_>
+)
<jhass>
SebastianThorn: ouch, and that while CSV actually defines a proper escape format...
webguynow has joined #ruby
atomical has joined #ruby
karapety_ has quit [Remote host closed the connection]
<SebastianThorn>
jhass: you think there is anything i can do?
<jhass>
SebastianThorn: well, write a parser for that
Pathfinder has quit [Ping timeout: 250 seconds]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<jhass>
for a simple one, read line, iterate from 0..line.size, consume line[i] into a temporary string, yield and then clear it upon encountering , if line[i-1] != "\\"
markbrazil has quit [Quit: Leaving]
centrx has joined #ruby
<jhass>
oh and ignore "\\" instead of adding it to the temporary string, unless line[i-1] == "\\" and so on
vdamewood has joined #ruby
<SebastianThorn>
jhass: ye, that could be a solution
<SebastianThorn>
jhass: i thought of replacing \, with ; while reading the file from disk
<jhass>
SebastianThorn: what about \\, or \\\, ;)
<SebastianThorn>
STOP
<jhass>
hence simple parser is easier than regex or substitution
<SebastianThorn>
i just wanna get it working for this week so i can have a chill weekend :P
<jhass>
implementing ^ should cost less than an hour, try it
lkba_ has quit [Read error: Connection reset by peer]
<certainty>
then write a parser dude
lkba has joined #ruby
<SebastianThorn>
ye, you are right
<jhass>
stick it into class Line; include Enumerable; def initialize(line); @line; end; def each; # ...; end; end; and you can Line.new(line).to_a to get a row
<jhass>
well, maybe name it BrokenCSV::Row :P
voltalio has joined #ruby
jgt has joined #ruby
moshe has joined #ruby
<SebastianThorn>
never done anything like this, recon it's gonna take a while :)
Rurik has quit [Ping timeout: 250 seconds]
<SebastianThorn>
thanks for the help! :)
moshe is now known as moshef
lsmola has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
ignatiusjreilly has joined #ruby
<moshef>
I’m trying to debug a gem while working in a rails app, but I’m asking here because I don’t think it’s related to rails.
<moshef>
I’m using ruby 2.1.2 and pry-byebug, I open the gem code using bundle show, add bidning.pry somewhere but it doesn’t work
ignatiusjreilly has quit [Quit: ChatZilla 0.9.92 [Firefox 38.0/20150511103818]]
mdst has joined #ruby
devoldmx has joined #ruby
Burgestrand has quit []
<moshef>
I used to do it quite often in the past when worked in earlier versions (ruby/rails, and I think I used pry-debugger rather than pry-byebug). I’m trying to understand if anything has changed since then..
pawnbox_ has quit [Read error: Connection reset by peer]
ignatiusjreilly has joined #ruby
pawnbox has joined #ruby
<moshef>
the workaround is to install the gem locally, use ‘require_reloader’ gem which relaods the gems, and only then I can debug it..
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rurik has joined #ruby
Rurik has quit [Changing host]
Rurik has joined #ruby
<shevy>
can I make a regex non-greedy? as in "match to the closest match, not to the maximum match"
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has joined #ruby
victortyau has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
<shevy>
oh wait, solved it
<shevy>
by using \S rather than .
ignatiusjreilly has quit [Client Quit]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ignatiusjreilly has joined #ruby
<certainty>
shevy: these are not interchangable
DoubleMalt has joined #ruby
voltalio has joined #ruby
<shevy>
my regex works now!!!
ignatiusjreilly has quit [Client Quit]
devoldmx has quit [Ping timeout: 256 seconds]
tcopeland has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
monod has quit [Ping timeout: 250 seconds]
<shevy>
regexes make my brain go wild
jdawgaz has joined #ruby
<certainty>
wild thing
unop has quit [Ping timeout: 244 seconds]
<shevy>
I'd love to see a brain-plot power diagram, which part of coding costs the most energy, requires the largest amount of neurons activated and so on and so forth
hotguitar has quit [Remote host closed the connection]
jahpereira has joined #ruby
<izzol_>
hmm, if I have a project in /opt/project1/ where I have a structure: bin, lib, test and so on. How I can include that project to the other file which is located in lets say /root/ ?
<jahpereira>
good afternoon from Portugal
tacit7 has joined #ruby
<jahpereira>
can anyone spare a min to help me out please?
<jahpereira>
I am a junior developer currently working on a ruby on rails app
<izzol_>
good afternoon from Germany ;-)
nym has quit [Quit: Connection closed for inactivity]
<jahpereira>
hey izzol_ :)
bradland has quit [Ping timeout: 240 seconds]
_lexjm has joined #ruby
phantasm66 has joined #ruby
<jahpereira>
and in order to understand the frontend part
<jahpereira>
I bought a theme which I am trying to manipulate in order to get a grasp os scss and .erb files
<omilun>
bougyman: it like irb ... how can i change it?
<jahpereira>
but for example just to change a logo
sdothum has quit [Ping timeout: 240 seconds]
<jahpereira>
i do not find any path to a *.png file which is driving me crazy
<jahpereira>
I have spent the last hour trying to find a icon in order to change it
<jahpereira>
my question basically is: how just .brankic-pen {
<jahpereira>
color: #8CAAC0;
<jahpereira>
} references an image? (which I don’t find)
<jhass>
how did I end up in #css?
<Burgestrand>
jahpereira: again with the code, paste it in an appropriate location and link to it.
<jahpereira>
but its below 3 lines o.O
<Burgestrand>
jahpereira: without looking at the rest of your code, it's not uncommon to have a "require" somewhere in the CSS, which could include additional styling for your class.
_lexjm has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
<jahpereira>
Burgestrand: hum
<Burgestrand>
jahpereira: the web inspector in your browser would probably help you to see where the image is coming from!
davispuh has joined #ruby
<jahpereira>
yoep
<jahpereira>
already did that
<jhass>
might also be a gem
<jahpereira>
the html code just says <i class="brankic-pen"></i>
<jahpereira>
Burgestrand: or do you mean by analyzing the resources?
<jhass>
jahpereira: so if you inspect that element, what locations do you get for associated CSS?
<Burgestrand>
jahpereira: there's a style inspector in your web inspector, too!
meatherly has joined #ruby
youngbaks has joined #ruby
* jhass
bets on a icon font coming from a gem
<jahpereira>
ok
<jahpereira>
used style inspector
<jahpereira>
content: "\e6db";
<jahpereira>
i guess its an icon font
<jhass>
yup, that confirms the icon font
<Burgestrand>
jahpereira: sounds about right!
<jhass>
now the inspector should also show the location of that directive
<jahpereira>
can anyone point me in the right direction
<jahpereira>
on whether to replace this with a logo of mine
<jhass>
which should give some clues as to where it comes from
<jahpereira>
i have an image logo.png
<jahpereira>
from what i read i should include it in the app>assets folder is that right?
ruby-95_ has joined #ruby
<Burgestrand>
jahpereira: for one, remove the <i>-tag in your HTML.
<jhass>
app/assets/images, yes
<jhass>
and then just use <%= image_tag "logo.png" %> instead of the <i> tag
jgt has quit [Ping timeout: 256 seconds]
<Burgestrand>
jahpereira: secondly, you'll most likely just want to add an image tag, ^
<jahpereira>
hum
amicuscuriae has joined #ruby
<amicuscuriae>
hi
<jhass>
hi
<amicuscuriae>
What's up
<jahpereira>
Burgestrand: can u please expand more on image tags?
<ruby-95_>
Hi guys. I have a question. What does it mean when a regular expression such as /a/ matches the 'a' in the string 'cat'? What does the word 'matches' mean here?
<jahpereira>
Burgestrand: i have someknowledge of html and css
<ruby-95_>
jhass: yes I get that, but what does 'matches' mean? does it mean 'to find a match for'?
<jahpereira>
i just dont knwo much about rails
<jhass>
ruby-95_: ^ compare to these examples that have no matches
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<ruby-95_>
like /a/ matches 'a' in 'cat'
<jahpereira>
i would like to point out in the erb file to the scss class
<jahpereira>
and then reference logo.png in sign_in.scss
<jhass>
ruby-95_: I'm not sure if there's an outright synonym, what's your native language?
<Burgestrand>
jahpereira: you can use a regular HTML-tag, too: <img src="…">, the difference is that you'll want to use "asset_path" to make the URL to the image correct.
pawnbox_ has joined #ruby
<amicuscuriae>
Burgestrand, omg what? it don't compile to binaries?
<ruby-95_>
It's english but this has been confusing me for days.
<jahpereira>
Burgestrand: what you are saying is that i sould add <%= image_tag "logo.png" %> in the .erb file
<Burgestrand>
jahpereira: yes.
hashrocket has joined #ruby
<jahpereira>
but is this a correct practice?
<Burgestrand>
amicuscuriae: I'm sorry, but you asked three questions so I tried to answer them all!
<jahpereira>
should only the scss file know about the file logo.png?
momomomomo has quit [Quit: momomomomo]
andyrs has joined #ruby
<jahpereira>
Burgestrand: shouldn’t
<jhass>
ruby-95_: maybe one could say it fits, the pattern (regex) fits the string or not, like a bottle cap may fit a bottle or not
<SebastianThorn>
jhass: ok ,managed to build a function that seems to do what i want
dgutierrez1287 has quit [Remote host closed the connection]
<jhass>
SebastianThorn: great
<shevy>
like a bottle cap may fit a bottle ... we are getting fairly philosophical here!
<Burgestrand>
jahpereira: no, it's OK to code paths to assets in your HTML, that's what HTML does in using <img src="">-tag.
<Burgestrand>
jahpereira: you could do some trickery with an empty element and background images if you want, but I wouldn't say that's any better, probably the other way around.
<jahpereira>
Burgestrand: right
<jahpereira>
Burgestrand: so, before I try it out
<amicuscuriae>
Burgestrand, Omg so ruby don't compile to binary? there is no way out?
<Burgestrand>
amicuscuriae: Ruby is a nice language for beginners (in my opinion), I wouldn't say it's good for GUI but not bad either, and finally Ruby does not (generally) compile to binary.
<jahpereira>
Burgestrand: lets say I have my image “logo.png” in app>assets>images>folder1
<amicuscuriae>
Burgestrand, sucks then
<amicuscuriae>
bye
<Burgestrand>
amicuscuriae: Bye!
<jahpereira>
Burgestrand: how is the path generated <%= image_tag “folder1/logo.png" %> ?
Luming has joined #ruby
chills42 has quit [Remote host closed the connection]
<ruby-95_>
jhass: right so when using /a/.match('cat'), we're asking the regexp whether it fits the string 'cat'? or is it better to say we're asking the regexp to find whether there's an 'a' in 'cat'?
Luming has quit [Remote host closed the connection]
<Burgestrand>
jahpereira: Rails allow you to change where your assets are hosted, by using e.g. image_tag or asset_path, Rails will create the correct path if you use a CDN in the future, for example.
pawnbox has quit [Ping timeout: 264 seconds]
<jhass>
ruby-95_: I'd actually go for the former, yes
<Burgestrand>
jahpereira: It will also use a different path in production vs. development, to improve caching in production.
<jhass>
ruby-95_: but maybe in reverse, we're rather asking whether the string fits into the pattern of the regex
<Burgestrand>
jahpereira: and finally, there's the #rubyonrails channel which is more towards RoR-only questions :)
<ruby-95_>
jhass: whys is match defined in both String and Regexp?
<jahpereira>
oh
<jahpereira>
cool
<jahpereira>
Burgestrand: thanks man ;)
<ruby-95_>
jhass: why*
andyrs has quit [Client Quit]
dopamean_ has quit [Ping timeout: 256 seconds]
<jhass>
ruby-95_: for convenience, there's no semantic meaning to the fact it's available on both
<Burgestrand>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<jhass>
one probably just calls the other in fact
hal_9000_ has joined #ruby
<Burgestrand>
jahpereira: ^, while I am a man I might not have been, something to keep in mind :)
<ruby-95_>
jhass: Is it more conventional to use Regexp#match or String#match?
<jhass>
ruby-95_: I generally go for String#match
segfalt has joined #ruby
<jhass>
ruby-95_: since there's no Regexp#scan that feels more consistent
tvw has quit [Read error: Connection reset by peer]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-95_>
jhass: Okay. This is a little off topic, but when using wildcards in the terminal...we say ? matches any single character. What does 'matches' mean in this context then?
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umgrosscol has joined #ruby
voltalio has joined #ruby
<ruby-95_>
jhass: As in, what english definition applies here? Does it mean 'is equal to'?
drewvanstone has joined #ruby
<jhass>
ruby-95_: the same actually
tjohnson has joined #ruby
<jhass>
it too is a pattern that matches a particular string or not
<jhass>
"cat" matches the shell pattern "c?t" just like it matches the regular expression /./
Igorshp has quit [Remote host closed the connection]
<Burgestrand>
Linguistics and semantics. Interesting.
<jhass>
or /c.t/ for more closely related examples
dionysus69 has quit [Ping timeout: 272 seconds]
voltalio has quit [Client Quit]
<ruby-95_>
jhass: A string matches a pattern, but why do we sometimes say that the pattern matches the string?
drewvanstone has quit [Ping timeout: 240 seconds]
<ruby-95_>
jhass: or it doesn't matter?
<jhass>
ruby-95_: I think you might be overthinking this, how about you just accept it as a domain specific term for now? I promise it'll start to make sense once you learn about and use enough regular expressions
<jhass>
ruby-95_: both is said in colloquial usage, yes
<jhass>
they mean the same
<ruby-95_>
jhass: Thanks for your input.
pawnbox_ has quit [Remote host closed the connection]
ruby-95_ has quit [Quit: Page closed]
leafybasil has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
<jokke>
i'm trying to go through all permutations of the combinations of elements in an array of arrays. so that [['a','A'],['b','B']] would result in ['ab','Ab','aB','AB']
<jokke>
i have no clue how to do this
<jokke>
oh and the arrays can be of different size
leafybasil has quit [Remote host closed the connection]
krz has joined #ruby
terlar has joined #ruby
leafybasil has joined #ruby
moeabdol has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
andyrs has quit [Client Quit]
drewvanstone has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
alexUaN has quit [Quit: alexUaN]
Igorshp has joined #ruby
karapetyan has joined #ruby
Igorshp has quit [Remote host closed the connection]
HAL2328 has quit [Ping timeout: 265 seconds]
modern has quit [Ping timeout: 264 seconds]
tacit7 has quit [Remote host closed the connection]
devyn has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
bugrum has joined #ruby
anisha_ has quit [Quit: Leaving]
bruno- has joined #ruby
I has joined #ruby
I has quit [Client Quit]
maniac has joined #ruby
<maniac>
hey guys, how can i receive map data from rake task output without Proc object being returned ?
I has joined #ruby
unop has joined #ruby
I is now known as Guest59743
Guest59743 has quit [Client Quit]
negev has quit [Quit: leaving]
dopie has joined #ruby
bkulbida has quit [Quit: leaving]
bkulbida has joined #ruby
segfalt has joined #ruby
jdawgaz has joined #ruby
bkulbida has quit [Client Quit]
bkulbida has joined #ruby
Neverdie has joined #ruby
platzhirsch has joined #ruby
failshell has quit [Remote host closed the connection]
drewvanstone has joined #ruby
iateadonut has quit [Quit: Leaving.]
drewvans1one has joined #ruby
vdamewood has joined #ruby
Igorshp has joined #ruby
apt-get has joined #ruby
modern has joined #ruby
eminencehc has quit [Remote host closed the connection]
Newtonianb has joined #ruby
radgeRayden has joined #ruby
Soda has joined #ruby
eGGsha has joined #ruby
<Newtonianb>
Question: I have a ruby script that is part of a git repository. That ruby script as part of the command it executes actualyl changes branch in my git repo and executes several commands. Could this cause any problems that the script being ran is part of the repo and the branch which it resides in changes?
startupality has quit [Quit: startupality]
vdamewood has quit [Changing host]
vdamewood has joined #ruby
eminencehc has joined #ruby
aganov has quit [Remote host closed the connection]
<[k->
it probably could, since it is being executed
Macaveli has joined #ruby
radgeRayden_ has joined #ruby
khebbie has joined #ruby
<Newtonianb>
I'm wondering if on execute the whole script gets loaded in memory or whether it still relies on the script to run
<Newtonianb>
*file
andyrs has joined #ruby
<Newtonianb>
Kind of a bummer since the script is a deploy script that is supposed to do a bunch of things across branches and also want it tracked in the repo
pauly_oc has joined #ruby
khebbie has quit [Remote host closed the connection]
andyrs has quit [Client Quit]
<Cork>
could one write something similar to system("sed -i -r 's/(something)/\1/' file"), but with only ruby code?
subshad has quit [Ping timeout: 260 seconds]
<Cork>
what i'm asking for is an efficient search replace in a large text file without first loading it into memory
radgeRayden has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
<tubbo>
Cork: how do you know sed doesn't load the text file into memory?
<Cork>
tubbo: memory usage
<tubbo>
oh cool
<tubbo>
:D
<tubbo>
trying to think of something that doesn't have a VM or garbage collection that you can use regex in...
<tubbo>
like, out-of-the-box
psy has joined #ruby
<tubbo>
because what if a VM or GC thing is skewing your results...afaik sed is a C program so it wouldn't be affected by those things, it's just a compiled binary
suchness_ has quit [Ping timeout: 252 seconds]
<Cork>
tubbo: if you're trying to be sarcastic...
scottschecter has quit [Quit: Leaving]
<Cork>
i'm not getting it
abara has joined #ruby
<workmad3>
Cork: you can do a line-by-line read in ruby so that you don't slurp in the entire file at once
<Cork>
ya, i've gotten that far
abara has left #ruby ["Be back later ..."]
<Cork>
but i'm not sure what to do with the modified line
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
rbennacer has quit [Remote host closed the connection]
<workmad3>
Cork: what I've done with that sort of thing in the past is `File.open("output", "w") do |out_file|; File.open("input", "r") do |in_file|; in_file.each_line {|l| out_file.write(in_file.gsub(...) ) } end; end`
rcvalle has joined #ruby
<Cork>
and then move the file hmm
<Cork>
not sure that will work
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KucukMubasir has joined #ruby
<KucukMubasir>
hi guys, I installed ruby with ruby-installer but I want to remove it, how might I achieve this?
einarj has quit [Remote host closed the connection]
devoldmx has joined #ruby
pu22l3r_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r_baron has joined #ruby
andyrs has joined #ruby
dionysus69 has joined #ruby
<KucukMubasir>
it is mac osx and I already had RVM but I wrongfully used ruby-installer to install another version of Ruby. Now I want to remove it and reinstall with RVM
dfockler has left #ruby ["Leaving"]
pu22l3r has joined #ruby
pu22l3r_ has quit [Client Quit]
<KucukMubasir>
is it safe to just delete the corresponding folder?
eminencehc has quit [Remote host closed the connection]
Lucky__ has joined #ruby
dravine has joined #ruby
dfockler has joined #ruby
dgutierrez1287 has joined #ruby
eminencehc has joined #ruby
rikkipitt has quit [Remote host closed the connection]
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
eminencehc has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
webguynow has joined #ruby
rikkipitt has quit [Remote host closed the connection]
towski_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
leafybas_ has joined #ruby
p0wn3d__ has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
PaulCapestany has quit [Quit: .]
dopie has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
amclain has joined #ruby
greenarrow has quit [Quit: 500]
ngscheurich has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
dopie has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
last_staff has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
allomov has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Macaveli_ has joined #ruby
Macaveli_ has quit [Client Quit]
Macaveli has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
beast has quit [Remote host closed the connection]
r_baron has quit [Ping timeout: 252 seconds]
araujo has quit [Quit: Leaving]
cschneid_ has joined #ruby
slayerjain has joined #ruby
n008f4g_ has joined #ruby
araujo has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
araujo has quit [Max SendQ exceeded]
Jardayn has joined #ruby
banjara has joined #ruby
<shevy>
if you have a number such as 765841 but it could also be 1234 or 765841765841, what way would you prefer to have it become "765_841" ? In other words the same way as ruby would allow one to use a number that would be more readable
momomomomo has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
momomomomo has joined #ruby
troyreadyy has quit [Quit: Leaving]
elperdut has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
elperdut has quit [Max SendQ exceeded]
Kruppe has quit [Ping timeout: 255 seconds]
elperdut has joined #ruby
karapetyan has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 240 seconds]
otacon- has joined #ruby
<fred1807>
too many information on google... confusing
<fred1807>
is this a web page Irun locally?
<pipework>
You might want to master using a search engine then, it seems a much more valuable skill.
ndrei has joined #ruby
shadoi has joined #ruby
dariasmc has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
<fred1807>
pipework: If you dont want to help, just dont
<Ox0dea>
fred1807: You are resisting assistance.
<fred1807>
Ox0dea: manpages assistance
PaulCapestany has joined #ruby
<fred1807>
I sugest you read a manual on how to give assistance
<pipework>
fred1807: Educate yourself, it's your prerogative and not my job. I gave you all you need to find exactly what you should be doing to find your answer. You'll find a lot of us have consulting fees if you'd like direct answers.
<pipework>
Good luck with your attitude towards free help!
<fred1807>
pipework: I was not talking to you, at first, there are 1k users in this public chanell, you just jump in whorign for attention
<pipework>
People who are entitled, lul.
rezzack has joined #ruby
s2013 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
PaulCape_ has quit [Ping timeout: 240 seconds]
<jhass>
fred1807: what did you try so far?
HAL2328 has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<fred1807>
I am installing a local web server on my mac,,, and will try to access it
<Ox0dea>
shevy: Aye, that was certainly quick, but that method's absence was anomalous.
<jhass>
the Gemfile lists the applications dependencies
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
wildlander has quit [Quit: Saliendo]
<fred1807>
so in this case, https://github.com/ephekt/ShouldISurf, all I need to do ir "ruby surf.rb" , right? So how can I auto install everything there is on gemfile ?
<shevy>
yeah... though truth be told, while I think that PHP is awful, I think they managed to build some really great software. or perhaps "great" is not the right word... software that has become "popular". Two months ago, I found out that one bioinformatics group in vienna will be using drupal for their internal campus (the web-related parts there)
leafybasil has quit [Ping timeout: 260 seconds]
juanpablo_ has joined #ruby
baroquebobcat has joined #ruby
<baweaver>
which rails dev uses wordpress now?
<miah>
scribd was stuck on rails 2.5 for a long time iirc
<eam>
darix++ I can't fathom using a database to host ... static text
<darix>
(except the comments which come from discourse)
momomomomo has quit [Ping timeout: 246 seconds]
<baweaver>
Do whatever and worry about that text being written in the first place.
<miah>
right
<stonecolddevin>
i just wrote my own cms, with threaded comments and searchability. idgaf.
<eam>
but I use an email list for that so w/e
<eam>
who needs http?
towski_ has quit [Remote host closed the connection]
f00dMonsta has quit [Ping timeout: 246 seconds]
<darix>
eam: the best request i got was. "we want WP and then have it running for 10years as archive after the event"
<miah>
comments are just ways for people to piss on your work though
<Ox0dea>
baweaver: Judging by the order of your expected output for pad_mapper(3, 7), the solution you had in mind wasn't reduce(:product); please explain.
<capin>
i ended up writing a minimilistic blogging platform for my site using rails / Ruby, and am pretty happy with it
<eam>
miah: depends, I get a lot of good comments on my mailing lists
momomomomo has joined #ruby
<miah>
i wish i was part of that internet
<darix>
miah: depends on your community i guess^^
youngbaks has quit [Ping timeout: 264 seconds]
<baweaver>
Ox0dea: ?
<eam>
miah: you're welcome to join :)
<miah>
i havent found a community yet that lacks hostility
<baweaver>
I know what you're mentioning, but not what exactly you mean.
jenrzzz has joined #ruby
chills42 has quit [Remote host closed the connection]
Sou|cutter has quit [Quit: bbiab]
<Ox0dea>
baweaver: Your expected outputs are weird; one is row-major, the other isn't.
<baweaver>
I wrote the tests as a vague example
<baweaver>
hadn't run them yet.
<Ox0dea>
Fair enough.
codecop has quit [Remote host closed the connection]
diegoviola has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<capin>
miah: there's some friendly people in #rubyonrails
<miah>
i dont rails
<stonecolddevin>
hostility will be everywhere you go, you have to learn to just filter it
<Ox0dea>
baweaver: The #match_array expectation saved the day, in any case.
<baweaver>
fair, I'll update it later.
<baweaver>
Y'might leave a comment there.
<baweaver>
meetings everywhere today.
<miah>
easier to not take part than it is to filter
elperdut has joined #ruby
<baweaver>
stonecolddevin: that's what's screwed up is that people are expected to filter instead of others behaving like decent human beings.
grenierm has joined #ruby
<baweaver>
victim shaming yo, not cool.
<drbrain>
↑ yup
RubyNoob has joined #ruby
<baweaver>
besides, said people that need to be filtered tend to find themselves mode +q pretty fast
jud has quit [Ping timeout: 250 seconds]
<stonecolddevin>
baweaver: uh i'm not shaming any victims. it's being accountable for yourself and taking care of yourself and not worrying about people that could stress you out
<baweaver>
and if they don't, just say !.ops without the .
phutchins has quit [Ping timeout: 250 seconds]
<capin>
miah: have you seen reddit :P
<darix>
stonecolddevin: that's why we got the banhammer
ghostlines has quit [Read error: Connection reset by peer]
<Ox0dea>
!ops
<miah>
i have, i avoid 99% of it. im on a few specific subs that are ok, and some that are mostly rage. but i play video games so..
<stonecolddevin>
darix: that's something I can get behind.
<baweaver>
different ! was it?
<Ox0dea>
Sneakier.
DexterLB has joined #ruby
<baweaver>
space?
RubyNoob has quit [Client Quit]
<darix>
Ox0dea: dont worry. you dont have to fear me ... directly ;)
<miah>
the problem with 'just filter it' is that different people deal with things different internally than others. and what works great for you, may not work great for me. in this case 'just filter it' does not work well for me.
<baweaver>
well there are three extra bytes in there at least (226, 128, 139)
rezzack has joined #ruby
andyrs has joined #ruby
<Ox0dea>
That'd be ZWSP.
Luming has joined #ruby
Luming has quit [Remote host closed the connection]
<baweaver>
zero width space, TIL
drewvans1one has quit [Quit: leaving]
<Ox0dea>
My condolences.
coecoe2000 has joined #ruby
youngbaks has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<jhass>
another trick is to use the LTR mark
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 246 seconds]
<Porfa>
damnfooporfa
<Porfa>
thx
startupality has joined #ruby
DLSteve has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cndiv has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
ruurd has joined #ruby
momomomomo_ has joined #ruby
Balzrael has quit [Quit: Leaving]
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
youngbaks has joined #ruby
cndiv has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
AbdulRehman has joined #ruby
AbdulRehman has joined #ruby
AbdulRehman has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
toretore has joined #ruby
psy_ has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
kirun has joined #ruby
pocketprotector has quit [Quit: WeeChat 1.2]
pocketprotector has joined #ruby
chadwtaylor has joined #ruby
daed has joined #ruby
dgutierrez1287 has joined #ruby
grenierm has joined #ruby
mosez has joined #ruby
<cndiv>
Hey #ruby, another n00b question. I'm learning from an online course (pragmatic studio) and they have me learning 2012 RSpec and some outdated things. My question is - is RSpec the big-name testing suite at this point? And if not, is the "domain-specific" language it uses universal for all testing suites? Am I learning something out-of-date?
da3mian has joined #ruby
<eam>
it is not universal, it's fairly weird and specific to rspec. That said, it's still used by many
dgutierrez1287 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
dgutierrez1287 has joined #ruby
<eam>
many others use minitest or test-unit or other more standard looking/feeling testing suites
<Porfa>
Ox0dea: when i call the var with the math, it doesn't output 6.5
<cndiv>
eam: I totally get why I need to learn testing, but learning a specific language that people gave up on, in favor of something that's more modern/easier... sounds like a time waster.
<eam>
(and if you learn these you'll be at home in test suites used by other languages)
<shevy>
cndiv minitest is also popular and you could ask zenspider here every now and then for simple questions
<cndiv>
shevy: Is there an advantage of RSpec over minitest or others? Or it's the same game, different method?
<eam>
cndiv: rspec is common in ruby, but I agree with you -- I avoid it
<cndiv>
eam: I'm just (on step one) dealing with "Deprecation Warnings" and that makes me wary.
<Porfa>
=> "6,5"
<Porfa>
2.2.1 :389 > foo
<Porfa>
=> 6.517000000000001
<Porfa>
why?
<Porfa>
stop the madness
ruurd has joined #ruby
<eam>
Porfa: why what?
<craysiii>
what is this operator called: <<
<eam>
cndiv: left shift
<Ox0dea>
craysiii: Shovel.
<Porfa>
i just want 6,5 in my console ;_;
fred1807 has quit [Quit: fred1807]
robbyoconnor has quit [Ping timeout: 246 seconds]
<eam>
Porfa: so, round?
<cndiv>
Porfa: Using their example code I get back a "Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated."
<darix>
Porfa: works like that here.
<Ox0dea>
cndiv: RSpec is still very popular, `should` not so much.
<cndiv>
Ox0dea: Is RSpec overly complex, you think? I'm a little surprised there isn't more of an... automatic way of creating tests, or something. Like a "what's this supposed to do?" sort of gem, or something that prompts you and then fills in the blanks. Or maybe I'm being lazy or ignorant of something.
PaulCapestany has quit [Ping timeout: 255 seconds]
<Ox0dea>
cndiv: Yes, it's overly complex, but many people feel its DSL to be "human-readable", as it were.
<eam>
the way we express "what's this supposed to do" is the code comprising the function itself
leafybasil has joined #ruby
<eam>
presumably the methods own definition is the most concise way to express the function of the method
<cndiv>
Ok, that makes sense. So I guess I'm going to push on with RSpec, as instructed, and try to patch using the error messages as they come up.
<eam>
testing basically operates on the assumption that we screwed up in explaining what we want the computer to do
lkba has quit [Ping timeout: 240 seconds]
<cndiv>
Like I've said before, all this is getting into my head, one way or another!
<darix>
eam: or on the assumption "this code will cover all the cases but some nice person thought it should also eat that input data and not fail" :)
<eam>
yes, expectations vary between authors
<cndiv>
eam: But RSpec is standard enough that it's not unreasonable at all to use it in 2015
<cndiv>
right?
<Ox0dea>
Right.
<eam>
cndiv: a matter of personal opinion, I think. Some projects you're likely to work with will use it
<eam>
it's probably worth understanding
<cndiv>
And then I can move on if necessary in the future, that makes sense.
<cndiv>
I'm basically just making sure I'm not learning a depreciated, now-backwards, 'grandpa' sort of way through testing for no apparent reason.
chadwtaylor has quit [Ping timeout: 240 seconds]
<Ox0dea>
*deprecated
cndiv has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Max SendQ exceeded]
<Ox0dea>
Test suites lose value as soon as you drive them off the lot.
cndiv has joined #ruby
yfeldblum has joined #ruby
PaulCapestany has joined #ruby
<cndiv>
Ox0dea: Well, I meant depreciated - diminished in value over time, not just disapproved of. But both, really.
<Ox0dea>
I doubt it, but okay.
<cndiv>
I'm confused what you mean
chadwtaylor has joined #ruby
Melpaws has quit [Quit: Leaving.]
<eam>
cndiv: pretty sure it's a "buy used" argument, maybe Ox0dea is anti-NIH?
ruurd has quit [Quit: ZZZzzz…]
<tubbo>
lol
SCHAAP137 has joined #ruby
<tubbo>
no Ox0dea just knows the difference between "deprecated" and "depreciated"
<tubbo>
which most programmers simply don't
grenierm has quit [Quit: grenierm]
bugrum has quit [Remote host closed the connection]
<eam>
I'm still trying to figure out why the dictionary misspelled referrer
<cndiv>
Well, I'm not a programmer, that's what I'm working on, but I've read books before. I'm not trying to stir up trouble.
<eam>
cndiv: your observations are astute and on-point; don't sweat it
<tubbo>
cndiv: it's cool, just a reoccuring joke i've noticed amongst programmers. you've probably heard "depreciated" a lot more than "deprecated" because your investments can't deprecate :P
tatsuya_o has quit [Read error: Connection reset by peer]
<eam>
definately
<miah>
we self deprecate, but rarely self depreciate
tatsuya_o has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
<Ox0dea>
Nothing is worse than "recurse".
<eam>
"I'm such an idiot"
ruurd has joined #ruby
monoprotic has quit [Quit: bite me]
<cndiv>
Ok, out of here for the day. Thanks for your help, all.
<miah>
cndiv: <3
<Ox0dea>
cndiv: Did you learn how to convert from `should` to `expect`?
<eam>
ruby's expect support is lacking
<cndiv>
Ox0dea: I will, as I work my way through the lesson. :-)
<Ox0dea>
cndiv: Copy.
yfeldblum has quit [Ping timeout: 240 seconds]
<cndiv>
Ox0dea: Copy which?
<Ox0dea>
cndiv: That.
<cndiv>
or, what?
<Ox0dea>
10-4.
<cndiv>
Oh, alright. Thanks.
<eam>
she's a which
chadwtaylor has quit [Read error: Connection reset by peer]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
<dorei>
havenwood: does it have color output like rspec? :D
<havenwood>
dorei: require 'minitest/pride'
<havenwood>
dorei: Very rainbow ^ but yeah red/green is nice.
workmad3 has joined #ruby
linuxboy_ has joined #ruby
<havenwood>
dorei: Pride ships with Ruby but you can use it as an example of how to do it in any custom fashion your like or use a plugin like minitest-rg.
baroquebobcat has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
linuxboytoo has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Neverdie has joined #ruby
khebbie has joined #ruby
benlieb has quit [Quit: benlieb]
khebbie has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 265 seconds]
jeremati_ has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
pwnd_nsfw has joined #ruby
mosez has quit [Quit: Switching back to real life]
allcentury has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
mosez has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
umgrosscol has quit [Remote host closed the connection]
paulcsmith has joined #ruby
aswen has joined #ruby
HAL2328 has joined #ruby
vdamewood has quit [Max SendQ exceeded]
ricer2 has quit [Quit: Caught SystemExit exception.]
diegoviola has quit [Quit: WeeChat 1.3]
bruno- has joined #ruby
hinbody has quit [Quit: leaving]
beginner_with_qu has joined #ruby
umgrosscol has joined #ruby
Oka has joined #ruby
failshell has quit []
d5sx43 has joined #ruby
<beginner_with_qu>
Alright. If I wanted to randomly pair two distinct arrays [1x,2x,3x] [1y,2y,3y] such as [1x,2y] [3x,1y] [2x,2y] but I wanted to prevent any pair [2x,2y] from occurring, is there a simple way to go about this?
<havenwood>
beginner_with_qu: I just saw you want one from first and one from last. Maybe say more about the requirements. Are there always going to be a pair available?
allomov has joined #ruby
<Ox0dea>
beginner_with_qu: Do you mean to say that you don't want to get back a pair whose elements are equal?
<beginner_with_qu>
I took an array such as [xy,xy,xy] and broke it into [x,x,x] [y,y,y]. then shuffled y, and did an x_array.each do, to repair them. This gave me a new randomly sorted pairs. However
<beginner_with_qu>
I want to exclude original pairs
<beginner_with_qu>
none of these values should be considered equal to another
<eam>
don't shuffle? Instead sample
jgt has quit [Ping timeout: 240 seconds]
<beginner_with_qu>
sample might repeat
<eam>
right, so don't
jerematic has joined #ruby
<eam>
r = rand [1,2,3,4].size; # index of array one
d5sx43 has quit [Quit: Leaving...]
slayerjain has quit [Client Quit]
<eam>
when you pick a rand for index of array two, don't let it equal r
baweaver has joined #ruby
<beginner_with_qu>
Yes, thats exactly what Im looking for.
<eam>
the problem is, r2 = rand(lim) until r2 != r1 is O(infinity)
<eam>
probably fine though
<beginner_with_qu>
Although Is there a way to call rand(x) and exclude a result?
<eam>
no, just call it in a loop
<beginner_with_qu>
Fair
<Ox0dea>
beginner_with_qu: Could x be quite large?
<beginner_with_qu>
Alright, that was my first guess, but it seemed convoluted
<eam>
OR, a more technically correct solution might be to subtract 1 from the lim
<eam>
and then adjust it with a bit of math
<beginner_with_qu>
x and y are both strings, actually
<eam>
that's O(1) for realsies
<Ox0dea>
beginner_with_qu: No, I meant in your call to #rand there.
ricer2 has joined #ruby
<beginner_with_qu>
eam, I'll work with that. Ox0dea I dont know what you mean by quite large
<beginner_with_qu>
thanks for the help. I'm going to copy both and break them down until I'm certain I understand both, and move forward from there. :)
umgrosscol has quit [Remote host closed the connection]
<eam>
solid strategy
tatsuya_o has quit []
HAL2328 has quit [Ping timeout: 240 seconds]
HAL2328 has joined #ruby
symm- has joined #ruby
redondo has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
<Porfa>
how to make it work with utf 8 from the start?
jgpawletko has quit [Quit: jgpawletko]
<Porfa>
just say "hey, everything here is gonna go around in utf, so you better listen carefully son"
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
Zackio has joined #ruby
kadoppe has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<Porfa>
i have # encoding: UTF-8
beauby has joined #ruby
<bazbing80>
the define method can take both a proc and an unbound method when defining its methods. Can I convert a proc (e.g. { 4 + 4 } ) into an unbound method and use that with 'define'. Or can I turn an unbound method (retrieved via .instance_method) and convert that into a proc and use it with define?
<Ox0dea>
bazbing80: Why do you need to do any conversion?
Vile` has joined #ruby
startupality has quit [Quit: startupality]
freerobby has joined #ruby
<bazbing80>
Ox0dea: not critical, but I'm refactoring my code and don't want a certain method to have to differentate between whether its been given a block (a proc) or an argument (an unbound method). I either want to give it only procs or only unbound methods
<Ox0dea>
bazbing80: Oh, sorry. I misread. I thought you were asking about the #define_method metho.
<Ox0dea>
*method
<eam>
a block, a proc, a lambda, panama!
<bazbing80>
Ox0dea: nope I understand that :)
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slayerjain has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<Ox0dea>
bazbing80: Proc and UnboundMethod can't be used interchangeably, since the latter needs to be bound before being called.
<Ox0dea>
I'm sure you're doing something a little crazy, so why not alias Proc#bind to #itself. :P
mjuszczak has quit []
llrot has joined #ruby
<llrot>
how are programming talk throughs made on khan academy?
andyrs has joined #ruby
andyrs has quit [Client Quit]
aswen has quit [Ping timeout: 260 seconds]
<Ox0dea>
llrot: Ctrl-U.
dopie has joined #ruby
voltalio has joined #ruby
<bazbing80>
Ox0dea: it is a little crazy (only a little :P)...do you mean monkey-patch the Proc class and use alias_method :itself, :bind ?
jamesaxl has joined #ruby
<Ox0dea>
bazbing80: Well, yeah, something like that.
<Ox0dea>
Only it's backwards. :/
<Ox0dea>
proc.bind().call(1, 2) vs. unbound.bind(1, 2).call
<bazbing80>
Ox0dea: I know, I keep doing that! In my head I'm
<bazbing80>
oops trigger happy enter..but yeah that could work, thanks :P
youngbaks has quit [Ping timeout: 255 seconds]
tcopeland has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
redondo has joined #ruby
<Ox0dea>
bazbing80: You could have some proxy class that does the invocations in the proper order depending on whether it was constructed with a Proc or a UM.
gurnoorinder has joined #ruby
<gurnoorinder>
hello everyone. Can anyone tell me which is the most suitable version of ruby for dev on mac os 10.6.8
<jhass>
2.2.3
<bazbing80>
Ox0dea: that's a nice idea... .define takes UMs and Procs like a champ so I thought it was easy to convert between them. But I'll create a new class for practise
<gurnoorinder>
i tried downloading 2.2.2 and it failed to complue. using chruby and ruby-install
MagePsycho has joined #ruby
<gurnoorinder>
jhass: okay. 2.2.3?
<Ox0dea>
bazbing80: It takes them, sure, but the problem is that you're not able to ignore which kind you got before calling it, right?
<jhass>
gurnoorinder: that's what i said
<gurnoorinder>
jhass: and incase it fails to install. any alternative version?
<havenwood>
gurnoorinder: Did you install Homebrew first? Is it updated (`brew update`)? Is brew having issues (`brew doctor`)?
<jhass>
gurnoorinder: in case it fails come here with the error message
<bazbing80>
gurnoorinder: I remember rvm required GCC available through xcode, but mac days are over for me. Ubuntu now.
<gurnoorinder>
i did brew doctor. resolved all the issues. it needs xcode 3.2.6 which i am downloading right now.
<shevy>
yay! come to linux
<havenwood>
gurnoorinder: Aha, yup.
<havenwood>
gurnoorinder: Make sure to do a `brew update` before other commands.
<bazbing80>
Ox0dea: ill create a gist haha. it's such a trivial thing, just gathering knowledge
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
bazbing80: Looking forward to seeing how you got into this mess. :P
d5sx43 has joined #ruby
<gurnoorinder>
havenwood: good to see you again. i did and brew said everything is up to date.
<gurnoorinder>
will do it again havenwood
<havenwood>
Ah good.
lea has joined #ruby
eminencehc has joined #ruby
<havenwood>
That Xcode version just didn't seem right since 7.0 has been released.
<bazbing80>
Ox0dea: ill create a gist haha. it's such a trivial thing, just gathering knowledge
r_baron has joined #ruby
stamina has joined #ruby
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
redondo has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
d5sx43 has quit [Quit: Leaving...]
segfalt has quit [Quit: segfalt]
mjuszczak has joined #ruby
uber has joined #ruby
niemcu has quit [Quit: Leaving]
<Ox0dea>
bazbing80: Should I go look for it?
khebbie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
troyready has joined #ruby
khebbie has quit [Remote host closed the connection]
deject3d has joined #ruby
<gurnoorinder>
havenwood: but i am still using 10.6.8 and thats the max i can use on this version of mac os i think
<gurnoorinder>
havenwood: somehow i am not able to install ruby versions more than 2.1.3 using chruby
yfeldblum has joined #ruby
<havenwood>
gurnoorinder: Your GCC seems too old.
<miah>
you can brew install gcc
<gurnoorinder>
alright
<havenwood>
gurnoorinder: There are workarounds. Update OS X!
<miah>
to avoid the xcode plague
<miah>
havenwood: not possible on all macs
<havenwood>
miah: good point
<havenwood>
64-bit
<miah>
i have a macbook stuck on 10.6.8
<havenwood>
eek
<miah>
THANKS APPLE
<gurnoorinder>
okay. i willl try
ItSANgo has joined #ruby
llrot has quit [Quit: Page closed]
<gurnoorinder>
havenwood: miah: i had 2.2.2 via rvm. now that i switched to chruby, there seems to be a problem
<miah>
honestly, once the mac falls into 'unsupported by apple' territory its probably best to just put linux on it. but my daughter is using that macbook for now.
jschmid has joined #ruby
niemcu has joined #ruby
segfalt has joined #ruby
v4mpii has quit [Quit: Leaving]
<miah>
gurnoorinder: you might have to re-install ruby 2.2.2 for chruby, or move your /usr/local/share/rvm/rubies/2.2.2 (or whatever its called) into ~/.rubies
<havenwood>
gurnoorinder: RVM supports older systems and more Ruby patches, etc. It's tens of thousands of lines of shell.
<gurnoorinder>
miah: maybe i will do that pretty soon if it doesnt work for me
<miah>
i usually use ruby-install with chruby
<havenwood>
gurnoorinder: brew tap homebrew/versions && brew install gcc5
<havenwood>
gurnoorinder: Newer OS X actually compresses memory.
jenrzzz has quit [Ping timeout: 256 seconds]
iceyec has quit [Quit: iceyec]
omarJs has joined #ruby
<gurnoorinder>
havenwood: so if i get 8 gig of ram total and upgrade it to yosemite, will it serve the purpose? and no performance issues?
<omarJs>
Hello
r_baron has quit [Ping timeout: 246 seconds]
yalue has quit [Ping timeout: 260 seconds]
imperator has joined #ruby
<miah>
i use a mac, for now. i tend to run the newest stuff. but i also have more than 4gb of ram. my other macbook that my daughter uses only has 2 gb of ram. its fine with 10.6.8, i cant upgrade it to anything higher than that so i have no idea if performance improves.
Azure|dc has joined #ruby
<gurnoorinder>
miah: thanks a lot
<miah>
ram upgrades, and os etc, all depend on your mac hardware though, so be aware of that
DLSteve has quit [Ping timeout: 240 seconds]
tacit7 has joined #ruby
<gurnoorinder>
miah: i will take care of that
<gurnoorinder>
thank
imperator has quit [Quit: Leaving]
<Porfa>
how can i check for an element in selenium without it freaking out?
bigbadbear has quit [Ping timeout: 246 seconds]
<deject3d>
this is the ruby channel not the selenium channel
rodfersou is now known as rodfersou|dinner
cschneid_ has quit [Remote host closed the connection]
<Porfa>
sorry
Igorshp has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 265 seconds]
<atmosx>
yes but don't do it ever again
Jammyhammy|Work has joined #ruby
stamina has quit [Remote host closed the connection]
niemcu has quit [Quit: Leaving]
<atmosx>
miah: I heard that the laest OS has perf. improvements, mostly.
<atmosx>
so it shoul dbe okay
jgpawletko has joined #ruby
rakm has joined #ruby
HAL2328 has quit [Ping timeout: 240 seconds]
<havenwood>
Porfa: Looks like there really is a #selenium channel. :) I bet the #rubyonrails channel is more familiar as well.
platzhirsch has joined #ruby
HAL2328 has joined #ruby
rodfersou|dinner has quit [Quit: leaving]
HAL2328 has quit [Max SendQ exceeded]
HAL2328 has joined #ruby
JoshL has quit [Remote host closed the connection]
HAL2328 has quit [Max SendQ exceeded]
Vile` has quit [Ping timeout: 264 seconds]
drewvanstone has quit [Ping timeout: 255 seconds]
paulcsmith has quit [Quit: Be back later ...]
HAL2328 has joined #ruby
HAL2328 has quit [Max SendQ exceeded]
<miah>
atmosx: that to me sounds subjective
HAL2328 has joined #ruby
<miah>
<- not planning on upgrading to elcapitan.
<miah>
hoping to turn in my work laptop soon and not run osx again
Melpaws has joined #ruby
diegoviola has joined #ruby
amystephen has joined #ruby
djcp has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
ruurd has quit [Quit: ZZZzzz…]
drewvanstone has joined #ruby
chadwtay_ has joined #ruby
<HAL2328>
miah, what's the matter with osx
FernandoBasso has joined #ruby
bugrum has joined #ruby
<HAL2328>
miah, you want windows hell?
<miah>
no. but its my personal opinion that its going down hill and i wish to not run it anymore.
<tcdowney>
Windows 10 is a flawless operating system optimized for Ruby development. There is so such thing as "windows hell." :)
<miah>
why are you assuming i'll run windows if i leave osx?
<havenwood>
I have a soft spot for the BSDs.
jschmid has quit [Remote host closed the connection]
workmad3 has joined #ruby
<pipework>
tcdowney: You're not even a good troll.
omarJs has quit [Ping timeout: 265 seconds]
<tcdowney>
just jokin :P
* capin
<3 arch
Vile` has joined #ruby
<pipework>
Tell me about OS/2 being a haven for developers.
dfockler has quit [Remote host closed the connection]
mjuszczak has joined #ruby
<miah>
going back to dos/desqview and turbopascal
dfockler has joined #ruby
* pipework
prefers to DIY for fun, but just goes dpkg-based usually debian for not fun workytimes :(
<shevy>
ewwww dpkg
chadwtaylor has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Remote host closed the connection]
<pipework>
shevy: It's not so bad after you learn how to be a packager.
<HAL2328>
turbopascal ftw
iamninja has quit [Ping timeout: 265 seconds]
<HAL2328>
miah, i do agree that osx hasn't improved much since 10.6. unless you care for twitter/facebook integrations
workmad3 has quit [Ping timeout: 250 seconds]
phreakocious has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
but3k4 has quit [Client Quit]
khebbie has joined #ruby
<miah>
i deleted my facebook so.
<pipework>
HAL2328: But the crypto is claimed to have improved. :(
agent_white has joined #ruby
phreakocious has joined #ruby
tejasmanohar has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
ckinniburgh__ has joined #ruby
<havenwood>
HAL2328: I disagree actually. The battery-life and speed improvements are substantial.
allomov has quit [Remote host closed the connection]
dopamean_ has joined #ruby
<miah>
but it looks like that issue was fixed in newer xcode. i dont mess with sysctls on osx at all though
x-light has quit [Ping timeout: 265 seconds]
cornerma1 has joined #ruby
<HAL2328>
havenwood, what's the hardware you are using?
<miah>
i dont do anything crazy / non-standard to osx at this point. apart from using nix instead of homebrew.
ckinniburgh__ has quit [Ping timeout: 268 seconds]
<havenwood>
HAL2328: 2.8 GHz Intel Core i7
A124 has joined #ruby
<HAL2328>
havenwood, the battery life enhancements is more from your hardware consuming less imo, i have a 2.2 i7 from 2011. i've tried yosemite, not much change from 10.7-9
<havenwood>
I like the additional polish in El Capitain. A few things I try and don't work now work. And polish. New features seems to be pretty much just filling in missing multi-screen stuff.
cornerman has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
cornerma1 is now known as cornerman
<havenwood>
Snappier now.
Neverdie has joined #ruby
gurnoorinder has left #ruby [#ruby]
<havenwood>
HAL2328: They probably do target newer hardware with improvements but they seem real.
neanderslob has joined #ruby
<adaedra>
My computer performance really went down with Yosemite though.
<adaedra>
I hope El Cap makes that better.
dfockler has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
ledestin has joined #ruby
minimalism has joined #ruby
<HAL2328>
havenwood, i agree. lion felt like an unfinished product. mavericks polished it quite the way i liked it.
ruurd has joined #ruby
<HAL2328>
i like the polishes but the additional social features, trying to unite iOS with OS X should be left optional
Azure|dc is now known as Azure
<HAL2328>
but that's wishful thinking apple wants ios users to be os x and android + os x to ditch their android for ios
<adaedra>
They are? You don't have to put in your social acconts?
jschmid has joined #ruby
Voker57 has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
karapetyan has joined #ruby
AlexRussia has joined #ruby
badbodh has joined #ruby
omarJs has joined #ruby
ruurd has quit [Client Quit]
<miah>
its not hard, google is doing a horrible job with android in regards to fragmentation and 'old device support' (any device older than 1 year is abandonded basically)
<miah>
ive been an android user since it launched and i just feel like it gets worse and worse, mostly because of the way vendors treat their products though
<miah>
within 6 months of getting any phone to market (which takes ~2 years) they're already replacing it
<HAL2328>
adaedra, its not required that you log in, but its in the os x taking up resources.
<miah>
cyanogen doesnt help at all. but this is all probably best for > #ruby-offtopic too =)
<joegyoung>
Hi everyone. So i have question that I can't just figure out. I have "\\\\Storage01\\_Students\\2020\\kasandra.h.jackson" and I want to gsub all double slashes with single slashes. I can't do .gsub("\\","\") What the heck
jenrzzz has joined #ruby
<cantaberry>
Is there a way to make a rubocop exception file specific?
<Ox0dea>
joegyoung: You don't actually have double backslashes.
n4t3 has joined #ruby
x-light has joined #ruby
x-light has quit [Remote host closed the connection]
inteq has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 240 seconds]
<n4t3>
Hi, I'm having a problem with 'micromidi' library, where it just can't handle me pressing two or more keys very quickly at once, and won't notify me of the NoteOf/NoteOff events.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<n4t3>
I know it's not a hardware problem with my electronic Clavinova keyboard, because it works fine with Anvil Studio 2015. I'm guessing something to do with thread issues??
neanderslob has joined #ruby
JoshL has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Melpaws1 has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
badbodh has joined #ruby
voltalio has joined #ruby
Igorshp has joined #ruby
<joegyoung>
OK revised question. hot do I get "\\\\Storage01\\_Students\\2020\\first.h.last" to "\\Storage01\_Students\2020\first.h.last".....
<Ox0dea>
Cantaberry: Does placing one of the special comments at the top of the file not suffice?
Melpaws has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 264 seconds]
luksaur has quit [Quit: Leaving]
grenierm has joined #ruby
<Ox0dea>
joegyoung: Which method are you using to display these strings that you think contain double backslashes?
voltalio has quit [Client Quit]
devdazed has quit [Quit: Computer has gone to sleep.]
ruurd has joined #ruby
<zenspider>
anyone have any idea what's different in require between 1.9.3 and 2.2.2 (with rails and bundler in the mix)? I'm monkey patching to see what requires are taking the longest. Works great on 1.9.3 but raises on 2.2.2 on bigdecimal saying it isn't in the gemfile (?!?!)
n4t3 has quit [Quit: ircII EPIC4-2.10.5 -- Are we there yet?]
unop has quit [Ping timeout: 248 seconds]
<joegyoung>
Ox0dea: It is a string. I am using active_directory to pull a user's homefolder. This is the result
HAL2328 has quit [Quit: Leaving]
voltalio has joined #ruby
<zenspider>
joegyoung: you're just confused between inspect output and the string contents
swgillespie has joined #ruby
eightyeight has quit [Remote host closed the connection]
based_pdev has joined #ruby
<zenspider>
/Users/ryan/.gem/repos/capshare22/gems/bundler-1.10.6/lib/bundler/rubygems_integration.rb:292:in `block in replace_gem': bigdecimal is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
<zenspider>
wtf
eightyeight has joined #ruby
eightyeight has quit [Changing host]
eightyeight has joined #ruby
<zenspider>
now psych
<zenspider>
ugh.
jdawgaz has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<joegyoung>
But if I do this: "\\\\Storage01\\_Students\\2020\\first.h.last".split(/\\/).join("\\") this I get "\\\\Storage01\\_Students\\2020\\first.h.last".. sucks
decoponio has joined #ruby
victortyau has quit [Quit: Leaving]
r_baron has joined #ruby
apt-get has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
<zenspider>
again... you're confused simply by LOOKING at the string
ngscheurich has quit [Ping timeout: 250 seconds]
<zenspider>
use puts
<joegyoung>
I understat that the \ is special it is single when do \s or \e ..... puts OK I test
tacit7 has quit [Ping timeout: 255 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
mary5030 has quit [Remote host closed the connection]
<joegyoung>
zenspider: ah.... puts not p
bkulbida has quit [Ping timeout: 246 seconds]
dman777_alter has quit [Quit: Lost terminal]
mary5030 has joined #ruby
<joegyoung>
zenspider: thank you. Now I need to see how it ain't working in my script
petricore has joined #ruby
tcopeland has joined #ruby
badbodh has quit [Remote host closed the connection]
badbodh has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
vikaton has joined #ruby
shmilan has joined #ruby
grenierm has quit [Quit: grenierm]
based_pdev has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
ramfjord has joined #ruby
dfockler has quit []
DLSteve has joined #ruby
k3asd` has quit [Ping timeout: 255 seconds]
CustosL1men has quit [Quit: Leaving]
<beginner_with_qu>
alright. I was asking this same thing earlier, and recieved help. However, I could not make use of this help due to incompetence. Now I need to see this thing work so I might be able to actually learn from my mistakes. Learning what deoesnt work is important sure, but enough of that. Anyone have the few minutes?
<Ox0dea>
I suspect there's some very clever O(n) technique for deranging a sequence, but you're highly unlikely to bump into the O(∞) worst-case complexity of my approach.
astrobunny has joined #ruby
<beginner_with_qu>
Hm.
GarethAdams has quit [Ping timeout: 252 seconds]
mwlang has joined #ruby
workmad3 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
rgb-one has joined #ruby
<dorei>
anyone using vim here? how could i fold def..end in vim ?
<Ox0dea>
Almost all of the 'expr' settings, in fact.
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<dorei>
i dont want to go down the vim rabithole, just some code to copy-paste into my .vimrc :)
joegyoung has joined #ruby
<Ox0dea>
Why ever not? VimL is a very nice language!
shmilan has quit [Ping timeout: 240 seconds]
<beginner_with_qu>
actually Ox0, I'm having trouble reading your help. :( "shuffle! while each_with_index.any? { |e, i| e == orig[i] } self" What is this doing?
HAL2328 has joined #ruby
<beginner_with_qu>
It looks like shuffle until false. (shuffle! while) each_with_index is a single named object passing true if any? is met.
Kallis has quit [Read error: Connection reset by peer]
<beginner_with_qu>
Then any is... doing what? I'm just starting to wrap my head around enumerable s, but I thought the { } was a quality of maps not any?
phreakocious has quit [Quit: gotta go]
<Ox0dea>
beginner_with_qu: In this case, the braces are opening a block.
<Ox0dea>
>> [1, 2, 3].any { |x| x.even? }
<ruboto>
Ox0dea # => undefined method `any' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/436015)
<Ox0dea>
It walks the collection and returns true if it finds any element which satisfies the predicate, false otherwise.
phreakocious has joined #ruby
<beginner_with_qu>
Would you have links to more detailed explinations, and other potential uses for blocks in this context?
<Ox0dea>
Blocks are used everywhere in Ruby.
hessparker has joined #ruby
<beginner_with_qu>
I know. I figured out each, do, maps yesterday.
<beginner_with_qu>
>_>;
<Ox0dea>
Right, #each takes a block.
<Ox0dea>
{} is just another syntax for do/end, more or less.
<hessparker>
hey, security rubyists: is there a string that after inspect can still be dangerous?
<beginner_with_qu>
Oh? Thats new
Cust0sLimen has quit [Quit: CustosLimen]
<beginner_with_qu>
Cool
<Ox0dea>
Yay, Ruby. :)
<beginner_with_qu>
Braces make more sense now.
<beginner_with_qu>
I'll have to look up .zip
<Ox0dea>
hessparker: Terminal escape sequences are escaped in #inspect output, so they can't muck with your terminal, if that's what you're asking after.
<beginner_with_qu>
Why did you create the method within the array class rather then the main class?
<Ox0dea>
beginner_with_qu: Because I think Array should have #derange. ^_^
<beginner_with_qu>
So it would work either way
iamninja has quit [Ping timeout: 240 seconds]
<beginner_with_qu>
array should have this, yeah
<beginner_with_qu>
xD
<Ox0dea>
beginner_with_qu: You're advised not to tinker with core classes, mind.
<Ox0dea>
In this case, it's highly unlikely somebody else would want Array#derange to do anything else, so I think it's kosher.
Jackneill has quit [Ping timeout: 240 seconds]
<beginner_with_qu>
I suspect I'll be keeping my hands off most classes until I'm far more sure of myself
Exuma has quit []
Kallis has joined #ruby
Cust0sLimen has joined #ruby
<beginner_with_qu>
I'm still wrapping my head around hashes. The use of symbols has bothered me, since, strings seem to do the same thing better
<Ox0dea>
beginner_with_qu: Some strings occur often enough that it's reasonable to just have the one to keep referring to rather than allocating brand-new ones each time.
phreakocious has quit [Quit: gotta go]
Kallis has quit [Read error: Connection reset by peer]
anjen has quit [Quit: anjen]
<beginner_with_qu>
I think maybe I've misunderstood symbols then. is this suggesting that any instance of the symbol x: would function like a string, but also refer to the hashed pair?
<beginner_with_qu>
:x x: one of the two
<Ox0dea>
beginner_with_qu: Symbols are essentially just deduplicated Strings.
<beginner_with_qu>
Alright, cool. This makes more sense now.
<beginner_with_qu>
Gotta do some runs and then digging back into this. Thanks for the help ^_^
<Ox0dea>
My pleasure. Y'all come back now, y'hear?
<pontiki>
o.O
<pontiki>
-.^
<craysiii>
i feel culturally appropriated
cndiv has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cndiv has quit [Client Quit]
<Ox0dea>
So, how *do* you generate all derangements efficiently?
<Ox0dea>
#permutation + #reject is O(n!). :/
<pontiki>
i'm fighting my own derangement as we speak
banjara has joined #ruby
Neverdie has joined #ruby
AndrewG has joined #ruby
Jardayn has quit [Quit: Leaving]
<rgb-one>
Any alternatives to Array#product for combining array elements?
<AndrewG>
Sorry if this is a newb question (it is)... im new to ruby as of today, but I am fairly decent at Java. I'm wondering how include_class("java.lang.String") { |pkg, name| "J" + name } works. Specifically the "J" + name. Does it get returned to the method, and if so, how?
<jhass>
AndrewG: the {|pkg, name| "J" + name } part is called a block. The method can invoke it with yield, provide the parameters and read the return value
inteq has joined #ruby
phreakocious has quit [Quit: gotta go]
chills42 has joined #ruby
workmad3 has joined #ruby
mwlang has quit [Quit: mwlang]
phreakocious has joined #ruby
siaw has quit [Quit: siaw]
Kallis has quit [Read error: Connection reset by peer]