<omosoj>
ok so the method was in the exact file i was already in ROFL
<bradland>
ok, ST3 has an even better method that will search everything in the current project, but I use ST2 still, so I don’t know how it works.
<bradland>
haha happens to me all the time
<bradland>
for that case, you can press cmd+r
<bradland>
and just start typing the method name
<bradland>
the same works with cmd+t if you type @method
<bradland>
ST uses the @ to mean “symbol” lookup
<bradland>
method names are symbols
<omosoj>
awesome. just switched to ST3 from vim 2 days ago. glad i did (i mean i'm sure you can set these up in vim but i'm not advanced enough to customize it at a reasonable speed)
baweaver has joined #ruby
<omosoj>
ah i see
cazrin has joined #ruby
<bradland>
omosoj: you should check out “vintage” mode in ST
<bradland>
it changes the editor portion to use many of vim’s input syntax
veduardo has joined #ruby
<bradland>
so you get part of vim’s power, but ST’s friendlier wrapper
zorak8 has joined #ruby
<omosoj>
cool
ghr has joined #ruby
renderful has joined #ruby
stunder has quit [Quit: Leaving]
veduardo has quit [Client Quit]
oo_ has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 244 seconds]
jheg has quit [Quit: jheg]
renderful has quit [Ping timeout: 265 seconds]
pen has joined #ruby
ta_ has joined #ruby
karmatr0n has joined #ruby
Tarential has joined #ruby
crueber has joined #ruby
Tricon has quit [Quit: leaving]
pengin_ has quit [Remote host closed the connection]
Tricon has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
hrs has quit [Quit: Computer has gone to sleep.]
hrs has joined #ruby
_maes_ has quit [Ping timeout: 264 seconds]
karmatr0_ has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
deepy has quit [Changing host]
deepy has joined #ruby
Jello_Raptor has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 255 seconds]
pkrzywicki is now known as noname001
davasaurous has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
Guest38863 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
doodlehaus has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
Guest38863 has left #ruby [#ruby]
bitcycle_ has joined #ruby
valeriansaliou has joined #ruby
Drakevr has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
adriancb has joined #ruby
cazrin has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 245 seconds]
bitcycle_ has quit [Ping timeout: 256 seconds]
karmatr0_ has quit [Read error: No route to host]
ta_ has joined #ruby
karmatr0n has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
akaiiro has quit [Quit: Leaving]
havenwood has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
crueber has quit [Quit: Leaving.]
s00pcan_ has joined #ruby
Tricon has quit [Ping timeout: 264 seconds]
Xspl0it has joined #ruby
t00b has quit [Remote host closed the connection]
ddd has quit [Quit: leaving]
havenwood has quit [Remote host closed the connection]
mmoretti has joined #ruby
cazrin has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
karmatr0_ has joined #ruby
Xsploit has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
Drakevr has joined #ruby
cazrin has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
sevvie has joined #ruby
karmatr0n has joined #ruby
chrisja has quit [Quit: leaving]
DadoCe has quit [Ping timeout: 264 seconds]
karmatr0_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 245 seconds]
orangerobot has joined #ruby
cazrin has quit [Remote host closed the connection]
Kricir has joined #ruby
<kyfho>
damn cygwin wont compile ruby
<kyfho>
2.2
<kyfho>
on 64 bit win7
<kyfho>
best cygwin package is 2.0
<kyfho>
:(
<orangerobot>
Hello. Is there a commonly used solution to publish a small website about a gem?? I want some static pages and a link to yardoc for starters
Guest41649 is now known as kaspergrubbe
<godd2>
orangerobot you can look into github pages
alkoma has quit [Ping timeout: 256 seconds]
mleung has quit [Quit: mleung]
cazrin has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
hfp_ has joined #ruby
karmatr0n has joined #ruby
<orangerobot>
godd2: hmm interesting. can I somehow plug a yardoc website into that?
pen has quit []
econerd4ever has quit [Remote host closed the connection]
Tricon has joined #ruby
<godd2>
well you can always add a link to a website
<godd2>
its just a matter of adding an <a> tag
hfp has quit [Ping timeout: 245 seconds]
hfp_ is now known as hfp
<orangerobot>
sure I just thought ther was some pre-baked solution. But you've given be a nice pointer, I'll look into that. thanks godd2
godd2 is now known as godd2-away
hfp_work has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
hfp_work has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
karmatr0n has quit [Client Quit]
cazrin has quit [Client Quit]
econerd4ever has joined #ruby
bklane has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jerius has quit []
davasaurous has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
baweaver has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
<kyfho>
huh?
<whatasunnyday>
I'm using the OAuth protocol (password flow) to authenticate my mobile client with a JSON API. I have the option in doorkeeper to authenticate the client credentials from httpbasic auth or parameters. Is there any reason to pick one or the other? I'm not sure if this is a question better suited for #rubyonrails.
pietr0 has quit [Quit: pietr0]
<kyfho>
oh you mean get vagrant on this windows bnox
<kyfho>
then have vms run chef?
<kyfho>
interesting
jack_rabbit has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<kyfho>
its amazing how the hours fly by when mi studying computer stuff
marr has quit [Ping timeout: 245 seconds]
<orangerobot>
ReinH: yeah someone else had pointed me to that earlier. thanks
Soda has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
Kricir has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
arescorpio has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
metadave has joined #ruby
chipotle has joined #ruby
metadave has quit [Client Quit]
Hobogrammer has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 255 seconds]
it0a has joined #ruby
robustus has joined #ruby
conniemj has quit [Quit: (null)]
ghr has joined #ruby
econerd4ever has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 256 seconds]
MartynKeigher has joined #ruby
bklane has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
econerd4ever has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
Kricir has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
checkit has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
mary5030 has joined #ruby
havenwood has joined #ruby
cyberarm has quit [Read error: Connection reset by peer]
<bradland>
kyfho: i would, unquestionably, use a VM to run chef rather than attempt to get it working under cygwin.
josephndenton has joined #ruby
<bradland>
you don’t even need vagrant. just spin up an Ubuntu server VM and SSH in to it using putty
hmsimha has quit [Quit: Leaving]
<ReinH>
or run a desktop linux
<bradland>
pair that with tmux and you’ve got yourself a portable chef development environment that you can move around as needed.
<kyfho>
using what like virtualbox?
<ReinH>
and forget you're even in windows at all
<bradland>
or that… lol
<ReinH>
kyfho: sure
<bradland>
yeah, virtualbox is a nice free option
bklane has quit []
jordsmi has quit [Quit: Connection closed for inactivity]
roolo has joined #ruby
<bradland>
in my experience, for the various linuxes, the performance optimizations of parallels and vmware aren’t justified for the price
<bradland>
espeically with their (Parallels) propensity to release a paid update every damn year
<bradland>
i use debian and install from the debian netinst iso so that i get a bare environment and add only what i want
<kyfho>
I love to run freebsd 10.1 on the metal
<kyfho>
:)
greenbagels has joined #ruby
<kyfho>
but dad likes skype and his printer scanner fax so win7 here on the smaller box
<kyfho>
my 8g onster ram laptop is 10.1 freebsd
<kyfho>
friggin blinding
<bradland>
how much RAM in the win7 machine?
<kyfho>
4
<bradland>
yikes
<kyfho>
shity dual core
<bradland>
time to hit up newegg for some more memory
<kyfho>
I guess I could nuke the lappy to win7 or ubung2
bitcycle_ has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
scripore has joined #ruby
<bradland>
there might be a virtualbox distribution for freebsd
josephndenton has quit [Ping timeout: 256 seconds]
conniemj has quit [Ping timeout: 245 seconds]
anitchrist has joined #ruby
josephndenton has joined #ruby
nanoyak has joined #ruby
Fusl has joined #ruby
rbennacer has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
frem has quit [Quit: Connection closed for inactivity]
d10n-work has joined #ruby
ponga has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Quit: Leaving.]
valeriansaliou has quit [Ping timeout: 265 seconds]
nanoyak has quit [Read error: Connection reset by peer]
ishikawa91 has joined #ruby
nanoyak has joined #ruby
evanjs has joined #ruby
davasaurous has joined #ruby
wald0 has quit [Quit: Lost terminal]
omosoj has quit [Ping timeout: 264 seconds]
gtrak has quit [Ping timeout: 245 seconds]
philwantsfish1 has quit []
<majeure>
My dad doesn't program.
slawrence00 has joined #ruby
bronson has joined #ruby
russt has quit [Quit: russt]
lapidary has quit [Quit: lapidary]
robbyoconnor has quit [Ping timeout: 265 seconds]
_reset has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
reset has quit [Ping timeout: 244 seconds]
<anitchrist>
majeure: you're dad is ole school my great grand pappy even programmed
_reset has quit [Ping timeout: 245 seconds]
orangerobot has quit [Ping timeout: 246 seconds]
<majeure>
How nice for you.
<SparkMasterTape>
my uncles old school he had thousands of patents filed at intel under his lead
<SparkMasterTape>
specialized in diodes
<anitchrist>
0.0
<anitchrist>
that is rad
<SparkMasterTape>
yeah im very fortunate
<SparkMasterTape>
he gives me some stock for christmas and bdays
avrc has joined #ruby
devoldmx has joined #ruby
intyl_ has quit [Read error: Connection reset by peer]
<anitchrist>
money is nothing did the knowledge and know how get passed as well?
<SparkMasterTape>
to me?
intyl_ has joined #ruby
<SparkMasterTape>
or to intel
<anitchrist>
ye[
<SparkMasterTape>
lol
<anitchrist>
you
<SparkMasterTape>
Oh , yes I definitely have been told I am smart by many people throughout my life but I don't apply myself
<SparkMasterTape>
I suffer from drug addiction
<anitchrist>
you admit it, so which?
_thegrid_ has quit [Ping timeout: 246 seconds]
<SparkMasterTape>
I think I'm intelligent
<SparkMasterTape>
English or literature were my strong points.
towski_ has joined #ruby
<anitchrist>
I meant you admitted you're an addict, which is respectful, I was also asking which drug.
<anitchrist>
although there isn't anyone that's not an addict... lol
pwnz0r has joined #ruby
<anitchrist>
life is addictive, or people would just quit it ;)
studiotate has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<SparkMasterTape>
Started with weed, then booze, cigs, mushrooms around 5 times, done coke a 30 times, lsd a couple times, got into oxys in 08' 09' as the wave hit
<SparkMasterTape>
Moved to heroin because $40 for a pill isnt easy to maintain on, clean 3 years going on 4 off heroin, smoke weed still daily, got on anti depressants, zoloft and benzo klonopin for anxiety and , depression lol
kaskalu has joined #ruby
ta_ has joined #ruby
<anitchrist>
a library of a experience, don't look down on yourself bud
<anitchrist>
you were hacking your robot
<SparkMasterTape>
tried random research chemicals too as well, like synthetic cannibinoids and analogs of famous ones
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SparkMasterTape>
yeah i need to pick his brain for wisdom
<SparkMasterTape>
hes frugal and flat out genius ... but he has a photographic memory hes told my dad
<SparkMasterTape>
i never asked him actually hes never told me
<SparkMasterTape>
any chemistry, physics, math equation hes got down
<anitchrist>
I want to understand how to maintain that type of memory
<SparkMasterTape>
memorized, i dont get it
<anitchrist>
there has to be a trick
djbkd has quit [Remote host closed the connection]
<SparkMasterTape>
he was taking apart radios n what not at like
<SparkMasterTape>
10 and putting em back together
<SparkMasterTape>
cal tech
<SparkMasterTape>
pres alumni
Akagi201 has quit [Remote host closed the connection]
<SparkMasterTape>
was
<anitchrist>
respect
<SparkMasterTape>
hes a anomoly
<SparkMasterTape>
an*
Akagi201 has joined #ruby
<SparkMasterTape>
Hes met steve jobs and bill woz, and bill g
<SparkMasterTape>
he was trying to be nice but i could tell he thoght jobs was a douche or a kook
<SparkMasterTape>
or both
mrmargolis has quit [Remote host closed the connection]
<SparkMasterTape>
woz he loved, bill he barely talked to just was at meetings
kaskalu has left #ruby [#ruby]
<anitchrist>
Wozniak is rad
<SparkMasterTape>
he is, hes my favorite person in the tech industry
mrmargolis has joined #ruby
<SparkMasterTape>
of all time
<anitchrist>
not enough attention was paid to him
<SparkMasterTape>
from phreaking to computer engineering
<SparkMasterTape>
he hated steve at the end
<SparkMasterTape>
or who knows when it started
rbennacer has quit [Remote host closed the connection]
<SparkMasterTape>
hate may be strong, but no secret he wasn't fond of him
<arrubin>
Why care?
<SparkMasterTape>
Me?
<arrubin>
Yes.
<anitchrist>
care is a powerful thing
<SparkMasterTape>
It's interesting, and why not care?
<arrubin>
Caring what Woz thought of Jobs seems kind of petty.
<SparkMasterTape>
Why care that I care?
<SparkMasterTape>
Shut your fuckin face
rbennacer has joined #ruby
<anitchrist>
lol
<anitchrist>
why care about gossip
<SparkMasterTape>
dude just comes in all fuckin WHY CAARE
rbennace_ has joined #ruby
<anitchrist>
gossip is the weak link and easily manipulatable
<SparkMasterTape>
my care levels not high bud, it was a conversation
<arrubin>
anitchrist: I do not care about gossip, and wonder why I am being subjected to it here.
<SparkMasterTape>
Sorry
<anitchrist>
I feel ya arrubin
fandi has quit [Quit: Leaving]
<SparkMasterTape>
Here, allow me to stop talking, silence is fun
<SparkMasterTape>
as you were gents
<whatasunnyday>
Alright, need to name a method. What's the opposite of revoked?
<anitchrist>
invoke
<anitchrist>
?
<whatasunnyday>
validate_token_???
<SparkMasterTape>
yes
<arrubin>
whatasunnyday: granted?
<anitchrist>
I'm still learning
<whatasunnyday>
arrubin, i like it
<SparkMasterTape>
literally speaking it would be invoke
<whatasunnyday>
arrubin, your contribution will remembered forever in OSS
mrmargolis has quit [Ping timeout: 256 seconds]
<anitchrist>
yus I know how to create a hash now... -__-
<anitchrist>
pets = Hash.new
<anitchrist>
pets["Scar"] = "cat"
<SparkMasterTape>
So I am a beginner, should I start Ruby as my 1st?
<SparkMasterTape>
Perl or python
<SparkMasterTape>
or jump to java
chipotle_ has joined #ruby
<whatasunnyday>
SparkMasterTape, what are people using that you can get help from?
<anitchrist>
^
<SparkMasterTape>
are you referring to objective c
<SparkMasterTape>
and ruby on rails
<anitchrist>
does your dad use either of those?
rbennacer has quit [Ping timeout: 244 seconds]
<SparkMasterTape>
well im just thinking 'APPS'
<SparkMasterTape>
iOS being obj c, and what droid being what java?/
<SparkMasterTape>
or maybe they use both :\
chipotle has quit [Ping timeout: 240 seconds]
<whatasunnyday>
SparkMasterTape, no, i'm saying, if you have a problem and needed help. who do you ask? what languages do they use?
<anitchrist>
^
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
<SparkMasterTape>
dude ur confusing the fuck outta me
<whatasunnyday>
there's literally a computer science theorem that shows that any language is "turning complete" can do anything that any other "turning complete" language can do
<SparkMasterTape>
who do i ask?
<whatasunnyday>
drastic over simplification
<whatasunnyday>
do you have any friends that program?
<sevenseacat>
'turning complete'? >_>
<anitchrist>
not to interject here is there any better freemium training site then codecademy?
<whatasunnyday>
sevenseacat, multitasking, bad typo, i am awful
<sevenseacat>
:P
<SparkMasterTape>
yes , ive taken a few entry level college courses myself, i know html enough to make a page from 1994 and my dad knows cobalt ;P
<bradland_>
like Cobalt RaQ?
<whatasunnyday>
how about your friends?
<bradland_>
or COBOL?
<SparkMasterTape>
i used to mess with VB 6 when i was like 13 started getting my foot in the door
<SparkMasterTape>
COBOL
<SparkMasterTape>
COBALT lol
<SparkMasterTape>
old school
<SparkMasterTape>
he hires coders
<SparkMasterTape>
pakis right now for web dev
<anitchrist>
I have no friends -__-
<SparkMasterTape>
pleased with his service
<SparkMasterTape>
s*
nanoyak has quit [Read error: Connection reset by peer]
<whatasunnyday>
if you don't know anyone who programs, i would just say learn javascript. it isn't that javascript is better or worse than ruby, java, python, perl, etc but it's nice to use the same language on the client and the server.
nanoyak has joined #ruby
<bradland_>
i say learn ruby
<whatasunnyday>
it will make learning easier for you
<bradland_>
because ruby is awesome, and i like it
<SparkMasterTape>
I have taken JS in college
<SparkMasterTape>
forgot it all
<whatasunnyday>
i also love ruby
<SparkMasterTape>
granted 1/2 a semester, dont practice a language spoken or programmed ya lose it
<SparkMasterTape>
or chunks
<SparkMasterTape>
then i went straight into Java
<SparkMasterTape>
got my ass handed to me
sevenseacat has left #ruby [#ruby]
<SparkMasterTape>
understimated the pace and time needed
<Dolphi>
I love ruby as well. :)
<SparkMasterTape>
outside of the class
<Dolphi>
My books came in a few hours ago so I can start some serious learning :D
<SparkMasterTape>
doing the HW isnt enough, you have to do the HW and then take the syntax you learned and just toy with it
<anitchrist>
Dolphi: nice
<SparkMasterTape>
at least that was my lesson i took away from the D i got
<SparkMasterTape>
the only thing i remember is {}
<SparkMasterTape>
}{ ?
TommyHilfigger has joined #ruby
<Dolphi>
anitchrist, Thanks man
<anitchrist>
np
<SparkMasterTape>
those symbols. was during a time of drug abuse though at a party oriented JC/University town
<Dolphi>
So, how was everyone's day?
<anitchrist>
had an interview today...
<Dolphi>
anitchrist, And you aced it, right??
<SparkMasterTape>
any of you program in orange county?
<anitchrist>
yup
<Dolphi>
:D
<Dolphi>
anitchrist, Congratulations man!
<anitchrist>
problem is scheduling though
<Dolphi>
SparkMasterTape, No sir.
<anitchrist>
being a full time student -_-
<anitchrist>
I'm in LA
<SparkMasterTape>
nice nice, my buddys up there
<Dolphi>
anitchrist, Yikes. You've got to do what you've got to do though man.
<anitchrist>
Dolphi, you got that right
<Dolphi>
I'm stuck at McDonald's while I self learn programming.
<SparkMasterTape>
he somehow found his way into music production with the help of a friend who graduated from USC music business
<TommyHilfigger>
is ruby relevant in the post 2014 javascript apocalypse?
<anitchrist>
relevancy... lol
<Dolphi>
I want to learn web development so that I can quit my job at McDonalds. I hate it..
<TommyHilfigger>
Dolphi: how old are you?
redline_ has joined #ruby
<SparkMasterTape>
Just wait for a whistle blow opportunity
<Dolphi>
I'm worried that I won't be able to get a job in programming without a degree though, and I have yet to get into college.
<SparkMasterTape>
invest in spy cams and mics
<Dolphi>
I'm 20
<SparkMasterTape>
ur young enough to do anyting
<anitchrist>
Delphi, start freelancing
poguez has quit [Quit: Connection closed for inactivity]
<anitchrist>
get people around you that need you
<anitchrist>
or rather find them
<anitchrist>
but don't be a salesman -__-
<anitchrist>
fuck those guys
redline_ has quit [Remote host closed the connection]
<SparkMasterTape>
Is there any legit online comp sci trade school
<SparkMasterTape>
I guess it depends 'legit' as in if units transfer to , for me UC's and/or CSUs
<Dolphi>
Freelance? As in, I walk up to new businesses and say, "Here is some of my previous work. Let me make a website for your business."?
<SparkMasterTape>
Freenlance means you work for yourself
<SparkMasterTape>
free*
havenwood has joined #ruby
<SparkMasterTape>
you find your jobs your responsible for your salary, you seek clients, hand out business cards ask for referals or use websites
<Dolphi>
Yes, but I mean how would I find clients? I would just advertise myself?
<anitchrist>
yeah, you're young, the kids your around probably wouldn't mind some help
<anitchrist>
offer a couple your help for free
<bradland_>
Dolphi: i don’t want to fill your head with starry-eyed ideas, but i don’t have a degree and i’ve done fine in the IT industry.
<SparkMasterTape>
Ill show you a linki
<anitchrist>
then use that experience in a portfolio for others
<Dolphi>
bradland_, That is all I need to know, thank you. :)
ta_ has joined #ruby
<SparkMasterTape>
yeah if you can prove you know how to program
<bradland_>
trying to do freelance development before you know anything isn’t the best route, IMO
<SparkMasterTape>
or ive thought this
<bradland_>
if you’re good with computers, start simple
<SparkMasterTape>
if you can speak the language you can speak the language
rbennace_ has quit [Remote host closed the connection]
<bradland_>
i founded my company on savings from money i earned fixing computers
<Dolphi>
Good advice everyone, thanks.
<SparkMasterTape>
wait
<SparkMasterTape>
i have a link
<bradland_>
you’d be amazed what people will pay for someone who is polite, shows up on time, and is competent
<bradland_>
take your time learning to program and don’t put yourself in a bad position by getting in over your head early
<SparkMasterTape>
freelancer.com
<Dolphi>
What are the REQUIREMENTS to web dev with ruby? I plan on using ruby for that, which is one of the reasons why I decided to learn this language.
ghr has joined #ruby
<Dolphi>
(for rails)
rbennacer has joined #ruby
freerobby has quit [Quit: Leaving.]
<Dolphi>
bradland_, Understood. I'll definitely take it slow.
<bradland_>
ruby is what you’ll use to build the “backend”
<SparkMasterTape>
Learn some XML
<bradland_>
you’ll need to know HTML, CSS, and Javascript as well
<SparkMasterTape>
Ajax
<Dolphi>
The UI is all JS, JQ, and CSS, right?
<bradland_>
and do not bother learning XML
<anitchrist>
ok you guys are going in the bg, I gotta silence the distractions :P use my handle if ya feel the need for my opinion or what
<Dolphi>
oh yeah, can't forget HTML lol
<SparkMasterTape>
PHP
* anitchrist
goes back to training
<SparkMasterTape>
SQL
larissa has quit [Quit: Leaving]
<Dolphi>
SparkMasterTape, Nooooo.
<SparkMasterTape>
is sql on its way out
<SparkMasterTape>
and php
<bradland_>
no
<bradland_>
SQL isn’t going anywhere
<bradland_>
nor is PHP
<SparkMasterTape>
PHP always stood out as vulnerable to me
<SparkMasterTape>
but then again that was aroudn 2002-2007
<bradland_>
candidly, i’m not sure you’re in a position to make such an assessment
havenwood has quit [Ping timeout: 256 seconds]
<Dolphi>
My friend recommended me PHP and SQL as well, but it looks so ugly to me. I did some research and PHP is the most common web language, meaning that there are a wide selection of jobs.
<Dolphi>
However, I don't really want to learn that if I don't have to.
hank_ has quit [Ping timeout: 245 seconds]
<Dolphi>
At least not off the bat.
<SparkMasterTape>
Well, although I do not program, I've been using PHP since I was 12
<SparkMasterTape>
not programming it
ta_ has quit [Ping timeout: 244 seconds]
<SparkMasterTape>
And the bugfixes I've noticd and severe exploits with phpBB and PHP itself
<TommyHilfigger>
i never learned PHP and i'm still here!
<SparkMasterTape>
obviously phpBB is a product of php
mary5030 has joined #ruby
<bradland_>
Dolphi: Ruby is a great starting point for learning to program. You should get your feet under you.
ghr has quit [Ping timeout: 244 seconds]
<Dolphi>
bradland_, What would you suggest? After becoming familiar with Ruby and making a few projects with it, what is the next step you would recommend to someone who wants to get into web dev in the future?
<bradland_>
You’ll find that once you learn to program in one language, it becomes much, much easier to pivot to the next.
<bradland_>
The key thing is to keep doing it.
<bradland_>
I’ve been at this for 14 years now, and I still learn new things daily.
<Dolphi>
bradland_, I don't need to think too far ahead. For now I'm focusing on Ruby. I just want to know what the next step would be.
ajaiswal has joined #ruby
<bradland_>
Build something you find useful.
JoshGlzBrk has joined #ruby
<bradland_>
Doesn’t matter what it is.
evanjs has quit [Remote host closed the connection]
<SparkMasterTape>
it seems i am referring to file inclusion vulnerabilities bradland_
<SparkMasterTape>
with PHP
<TommyHilfigger>
make a dating website.
djbkd has joined #ruby
<SparkMasterTape>
im sure most of the nasties are gone , but i remember sql injection and XSS wrecking php based sites
<bradland_>
SparkMasterTape: nothing you’ve mentioned is a PHP design flaw
<bradland_>
they’re just examples of bad PHP websites
<bradland_>
it’s also very off-topic for this channel
maletor has joined #ruby
maletor has quit [Changing host]
maletor has joined #ruby
<SparkMasterTape>
ok
<SparkMasterTape>
let me post something
<SparkMasterTape>
tell me if its bs
<SparkMasterTape>
In PHP the main cause is due to the use of unvalidated external variables such as $_GET, $_POST, $_COOKIE with a filesystem function. Most notable are the include and require statements. Most of the vulnerabilities can be attributed to novice programmers not being familiar with all of the capabilities of the PHP programming language. The PHP language has an allow_url_fopen directive which, if enabled, allows filesystem
<SparkMasterTape>
functions to use a URL to retrieve data from remote locations.[1] An attacker will alter a variable that is passed to one of these functions to cause it to include malicious code from a remote resource. To mitigate this vulnerability all user input needs to be validated before being used.[2][3]
<bradland_>
Dolphi: because you’re just getting started with programming in general, i wouldn’t jump straight in to building a web app.
<SparkMasterTape>
ah
<SparkMasterTape>
novice programmers
freerobby has joined #ruby
<Dolphi>
Yeah, I would probably leave all kinds of security gaps. I don't plan on doing it yet, I was just curious about what the next step would be.
<SparkMasterTape>
alright ill brb guys
<Dolphi>
I think it is time to crack open Learn to Program.
<bradland_>
this statement is true of literally every programming project ever: “To mitigate this vulnerability all user input needs to be validated before being used”
<Dolphi>
It looks like a very short read. I can probably finish it tonight.
<bradland_>
Dolphi: it’s more a matter of managing your learning curve
<bradland_>
you’re going to be absorbing a lot of new information
<Dolphi>
I'm going to work my way through Learn to Program, then the Pickaxe book, and finally I'll get through these two. By then I should be on the road to making some simple sites, right?
<Dolphi>
I already own all of these books.
<bradland_>
Dolphi: I’m pretty useless when it comes to book recommendations because it’s been so long since I started.
<bradland_>
Oh, cool.
<bradland_>
Yeah, you’re on your way then!
consti has joined #ruby
consti has quit [Max SendQ exceeded]
<Dolphi>
Now I suppose it is strictly a matter of determination and effort.
<anitchrist>
don't forget tiny chat some chicas are on there as well
<Dolphi>
I have no excuses with all of the resources in front of me.
adriancb has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
adriancb has joined #ruby
Tricon has joined #ruby
x1337807x has joined #ruby
oo_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
tus has quit [Ping timeout: 244 seconds]
MartynKeigher has quit [Ping timeout: 255 seconds]
FullTiltProspect has joined #ruby
FullTiltProspect has left #ruby [#ruby]
silkfox has quit [Ping timeout: 265 seconds]
adriancb has quit [Ping timeout: 245 seconds]
BlackGea_ has joined #ruby
BlackGea_ has quit [Client Quit]
x1337807x has quit [Client Quit]
osvico has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
braincrash has joined #ruby
MartynKeigher has joined #ruby
tus has joined #ruby
BenjiWiebe has joined #ruby
banister has joined #ruby
rubyguy has joined #ruby
<BenjiWiebe>
Is there a way with Ruby's regexes to use the OR '|' operator without capturing?
silkfox has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<bradland_>
BenjiWiebe: you can use a non-capture group
<bradland_>
looks like (?:\d)
<bradland_>
just an example
ta_ has joined #ruby
omosoj has joined #ruby
arup_r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
osvico has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
greenbagels has quit [Quit: Leaving]
arescorpio has quit [Excess Flood]
rbennacer has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
skj3gg has joined #ruby
oleo has joined #ruby
conniemj has joined #ruby
ddd has joined #ruby
<anitchrist>
anyone know of a way to set different status' for individual lists in skype
kapil__ has joined #ruby
<anitchrist>
for example, list A sees me as away, list B sees me as invisible and list C sees me as available.
valeriansaliou has joined #ruby
<anitchrist>
er I should see if there is a Skype channel
mosez has quit [Ping timeout: 256 seconds]
mosez has joined #ruby
phutchins has joined #ruby
conniemj has quit [Ping timeout: 244 seconds]
Tricon has joined #ruby
phantomtiger has joined #ruby
Tricon_ has joined #ruby
arup_r has quit [Quit: Leaving.]
avahey91 has quit [Quit: Connection closed for inactivity]
valeriansaliou has quit [Ping timeout: 265 seconds]
jefus_ has joined #ruby
Sawbones_ has joined #ruby
bradland_ has quit [Quit: bradland_]
davedev2_ has quit []
ta_ has joined #ruby
rbennacer has joined #ruby
russt has joined #ruby
Eiam_ has joined #ruby
iamninja has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
jefus has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
Eiam_ has joined #ruby
Dolphi has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 265 seconds]
<omosoj>
i don't understand the sort method... (1..10).sort {|a,b| b <=> a } <-wtf is this
ghr has quit [Ping timeout: 245 seconds]
JBreit has left #ruby ["Leaving"]
bronson has joined #ruby
davasaurous has quit [Remote host closed the connection]
Akagi201 has quit [Remote host closed the connection]
davasaurous has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<omosoj>
does it iterate through the array? how are a and b compared?
bronson has quit [Ping timeout: 244 seconds]
josephndenton has quit [Ping timeout: 265 seconds]
<steveElsewhere>
anyone ever see 'incompatible marshal file format (can't be read) format version 4.8 required; 60.63 given' from bundle? I'm using a private repo on s3 over http, works with gem install but bundle fails
silkfox has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 244 seconds]
JBreit has quit [Ping timeout: 255 seconds]
<omosoj>
lampd1, why not do .sort.reverse instead?
<rsty>
gr33n7007h, i found my error :[] sorry
<lampd1>
omosoj: i think you may be able to feed it more complex comparison operators/blocks but am no 100% on that
<omosoj>
is there a wikipedia for this spaceship comparison voodoo?
steveElsewhere has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lampd1>
am a noob
<rsty>
i was defining ARGV[2] downstream, so the boolean was correct but script failed because ARGV[2] didn't exist :P
<gr33n7007h>
silly rsty :)
<BenjiWiebe>
bradland: Thanks! That worked!
<omosoj>
gr33nn7007h, how does this work: -1, -1, -1, 1 == [1,2,3,4] ?
BenjiWiebe has quit [Quit: Konversation terminated!]
Morkel has joined #ruby
<arrubin>
rsty: Do you check ARGV[0] against more strings than what you pasted there?
pwnz0r has quit [Remote host closed the connection]
<rsty>
arrubin, no just stop and status
<arrubin>
rsty: Okay.
<rsty>
but ARGV[2] is my actual arg, since i am using daemons
Techguy305 has quit [Remote host closed the connection]
<arrubin>
rsty: Do you check that against several strings?
<rsty>
just "stop" and "status"
<rsty>
or do you mean ARGV[2] ?
<arrubin>
I was going to mention a technique that can work better in those situations, but two strings makes it questionable.
<omosoj>
why does it compare 1 and 3 first in [1, 2, 3, 4] ?
<arrubin>
Never mind.
<arrubin>
I am too tired to be helpful.
sevvie has quit [Read error: Connection reset by peer]
<epitron>
omosoj: you could also use <=> to implement <, and ==, and >, which is how ruby's "Comparable" mixin works. if you "include Comparable" in any object that contains a "<=>" method, then you get all those other operations for free
<epitron>
it's very old, and full of fascinating CS stuff
<godd2>
kanhaiya and you'll be running this client-side?
<kanhaiya>
godd2 yes
<omosoj>
epitron, wow, this looks really interesting
<epitron>
omosoj: it's like an iceberg. the thing is gigantic :)
conniemj has joined #ruby
<kanhaiya>
godd2 i want it to be a simple standalone app for ubuntu
<epitron>
omosoj: it reminds me of tvtropes' wiki ...
skj3gg has joined #ruby
<godd2>
kanhaiya and the client computers can't have ruby installed on them?
chrishough has joined #ruby
josephndenton has joined #ruby
<kanhaiya>
godd2 yes they will have
anitchrist has quit [Quit: Leaving]
ghr has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
<godd2>
then you can just distribute it as a gem. and they can run the code with ruby through the gem?
<omosoj>
epitron, LOL wow this is awesome. why haven't i heard about these before?
sargas has joined #ruby
<epitron>
omosoj: if it was popular, it would be full of crap :)
sargas has quit [Changing host]
sargas has joined #ruby
<omosoj>
true, lol
<kanhaiya>
godd2 then i should make it as a gem
<omosoj>
epitron, do you happen to know of any big wikis that have stuff on home automation?
<epitron>
no, sorry!
<godd2>
kanhaiya I mean, as long as the other computers will always have ruby installed, and as long as you're okay with the source code being readable, then that would seem like a possible solution
<epitron>
sounds like a good idea though
zorak8 has joined #ruby
lxsameer has joined #ruby
<omosoj>
i need to collect these good sites :)
<kanhaiya>
godd2 First i should build it by rails framework and then convert into gem..??
<godd2>
ooh, I got a silver badge on stackoverflow
<shevy>
damn it
<shevy>
did you sleep with the manager?
<shevy>
somehow I cant find easy questions to answer on SO :(
<godd2>
let's just say... there wasn't a lot of sleeping involved
<shevy>
and on IRC I don't get any upvotes :(((
<godd2>
shevy I got it for visiting the site at least once a day for 30 consecutive days
<omosoj>
is there some convention against doing this: if defined?(x) && x == 2 ? if so, is there another way to accomplish this?
<godd2>
I still have no points
<omosoj>
my tests pass without checking to see if it's defined. not sure if it's necessary
<godd2>
omosoj x ||= 2
sevenseacat has joined #ruby
<godd2>
oh wait no
<godd2>
why are you checking if it's defined?
<shevy>
godd2 oh cool
<omosoj>
godd2, because i checked in pry and if it's not defined i get an error in the conditional
blahwoop has quit [Remote host closed the connection]
<omosoj>
if x == 2, if x isn't defined... is that a problem? is it false?
roolo has quit [Ping timeout: 265 seconds]
<omosoj>
>> asjlkjsfd == 3
<eval-in__>
omosoj => undefined local variable or method `asjlkjsfd' for main:Object (NameError) ... (https://eval.in/240047)
<godd2>
hmm.
<godd2>
>> !x.nil? && x == 2
<eval-in__>
godd2 => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/240048)
<chipotle_>
hello
<chipotle_>
anyone here use atom for ruby coding?
<godd2>
ooooh instance vars are nil by default
<chipotle_>
or do you prefer sublime text?
emmesswhy has quit [Quit: Leaving]
<omosoj>
what i'm trying to do (in rails) is to do a conditional depending on whether a parameter has been passed in
<sevenseacat>
i like sublime text.
<godd2>
omosoj passed in where?
<omosoj>
i just switched to sublime text
<chipotle_>
i've been using ST3 but i'm curious about atom
<chipotle_>
from
<chipotle_>
>
<chipotle_>
?
<sevenseacat>
i have no interest in atom
<chipotle_>
how come?
<chipotle_>
it's a clone, yet slower, right?
<omosoj>
godd2, are you familiar with rails? basically if a browser passes in a query string parameter, it's accessible in a class in rails by params[:query_paramter]
<sevenseacat>
web technologies are shaky enough in the browser
<sevenseacat>
i dont want them in my editor too
<chipotle_>
heh, good point
<chipotle_>
brackets.io is pretty nice too, for front end dev
<chipotle_>
but i've never done that
<chipotle_>
although i do want to learn css/html and js
<chipotle_>
so maybe i should use it when working on those techs?
<godd2>
omosoj I am familiar with rails, I'm wondering if you're in a controller or a view
<shevy>
sevenseacat if you are not interested in atoms, are you at least interested in mice?
<omosoj>
controller
<sevenseacat>
that being said, at least atom isnt osx-only anymore
<godd2>
omosoj and x is something like params[:x] ?
luriv has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
<godd2>
omosoj can I private message you? I don't want to do railsy stuff here
apurcell has joined #ruby
workmad3 has joined #ruby
<omosoj>
godd2, yes & yes
<omosoj>
we can go to rubyonrails too
MasterPiece has joined #ruby
nanoyak has joined #ruby
byprdct has joined #ruby
n008f4g_ has joined #ruby
<epitron>
kanhaiya: if you want to make a GUI in a scripting language, you might be better going with python
<epitron>
the GTK interface for it is more maintained and used
<epitron>
GUIs are generally a lot of work though
<epitron>
nobody really does that in scripting languages, so the tools are prett ybad
apurcell has quit [Ping timeout: 255 seconds]
<epitron>
if you want a really simple (and ugly) UI, you can use Ruby's Tk bindings (they come with it)
<epitron>
and as i said earlier, jruby might be a good choice
<epitron>
although, jruby is heavy. scala would be lighter
<epitron>
to be honest, making GUIs sucks
<epitron>
:)
kamilc__ has joined #ruby
<epitron>
the options range from bad to nightmarish
workmad3 has quit [Ping timeout: 256 seconds]
kanhaiya has quit [Quit: Page closed]
<epitron>
i found Qt to be decent.. but you have to learn C++
davasaurous has quit [Remote host closed the connection]
<epitron>
hanmac -- were you working on the ruby wx bindings?
pwnz0r has quit [Remote host closed the connection]
<chipotle>
why?
<Nilium>
I have a first-gen retina MBP, but it's never had that problem.
chrishough has joined #ruby
<chipotle>
Nilium: yeah! beach balls all the time
alex88 has joined #ruby
<Nilium>
Would've thought mine would suffer the most.
<chipotle>
i don't even do games or graphic design or video design
<cvtsx>
Ever use a SSD?
<chipotle>
cvtsx: yes
<chipotle>
but why a 1tb ssd?
<chipotle>
i have a 2 * 512gb SSD in a thunderbolt enclosure
<cvtsx>
That is the largest they make for now iirc
<Nilium>
Oh well, maybe the next iteration of it will be better once they stop cramming a laptop into a 27" screen
<chipotle>
plus a 4 * 6tb NAS with wd red drives
<cvtsx>
nvm you got plenty of room lol
<chipotle>
i only need about 400gb of ssd space for VMs, ~/Documents/ and ~/Pictures
<chipotle>
the NAS hosts all my bluray rips, etc
LouisRoR has joined #ruby
last_staff has joined #ruby
<Nilium>
I think I'll probably end up getting a regular 27" iMac as my next machine. Kind of tired of buying laptops, and my current one should be fine for another couple years.
SilkFox_ has joined #ruby
<cvtsx>
hmm i cannot stand OSX though, win 8 > ubuntu > OSX
<chipotle>
yeah, i'm tired of my laptop too
<chipotle>
it has the beach ball problem too
<chipotle>
13 retina MBP
<Nilium>
Less concerned about retina stuff and more just screen real-estate
<sevenseacat>
<3 laptops. i'd never buy another desktop for work use
surs has quit [Quit: leaving]
<chipotle>
don't go with a non retina screen, Nilium !
valeriansaliou has joined #ruby
<chipotle>
get a 4k monitor, at least
<chipotle>
and don't high DPI it
<Nilium>
I already use a 27" iMac at work, it's actually nice
<pontiki>
what are you doing with it? i never get beachballs
<cvtsx>
Why not get both a desktop and laptop?
<chipotle>
or get three 4k monitors, and high DPI it, like i would, if i end up with a mac pro
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Read error: Connection reset by peer]
<chipotle>
pontiki: lucky you
<chipotle>
it gets worse when i plug in my 27 ACD to it
<chipotle>
well, i'll keep this rMBP for when i'm on the road
<Nilium>
I make a salary equivalent to $12 an hour, I'm not in a position to spend money on that kind of hardware
<chipotle>
but use the mac pro 99% of the time
sinkensabe has joined #ruby
<sevenseacat>
keep monitors on my desks at work and home, and just plug them in when i'm at the desk
<chipotle>
damn
<chipotle>
are you a student?
surs has joined #ruby
<sevenseacat>
Nilium: you need a pay rise.
<Nilium>
Nope, software engineer in the middle of nowhere in Idaho
<chipotle>
you need to move
<chipotle>
it's funny, i just had a recruiter send me a position there, 110k base plus bonus
<Nilium>
I'm staying where I am for now just 'cause I pay no rent or anything by living with my parents
<chipotle>
i was like "you think i want to move to bumbfuck idaho?"
<Nilium>
Was the position for a place called Kochava?
<chipotle>
haha
<chipotle>
idk
<chipotle>
they don't tell you until you contact them via phone
<Nilium>
Jerks.
<Nilium>
I'd be more willing to work with recruiters if they were more up-front about everything.
<cvtsx>
chipotle, lemme guess bay area or NYC?
Xiti` has joined #ruby
<pontiki>
$80-90/hr c2c is pretty standard here, too
<Nilium>
But yeah, I make jack shite for the field. The job title I was hired for is technically junior iOS developer, but I just bounce all over the place.
<Nilium>
I think my new job title is probably something involving maintenance
sinkensabe has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
<chipotle>
yeah
<chipotle>
just moved from boston to nyc in october
sinkensabe has joined #ruby
<chipotle>
Nilium: i hate recruiters
<chipotle>
scumbags
sinkensabe has quit [Remote host closed the connection]
<cvtsx>
isnt the cost of living in NYC a lot though?
sinkensabe has joined #ruby
<chipotle>
i guess
<Nilium>
I hate the majority of them. I know only a couple that I consider good.
<chipotle>
i have a 3 bedroom that is $6500 a month
<Nilium>
Except the ones I consider good also don't work for giant recruiting companies.
huawei has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
<Nilium>
I guess the upside is the ones that I hate always call my Google Voice number, so I know to automatically ignore those calls.
<pontiki>
my gvoice number is the only one i advertise
<chipotle>
heh, i had to change my cell phone # because i was getting 40 calls a day
<Nilium>
I made sure that if my number was on any site a recruiter would scrape, including my resume, it was my google voice number
<chipotle>
and i got rid of google voice too, what they do is they call every number they can find on you, twice, leave vm's both times, half send a text and then every single on sends a followup email within 30 seconds
<pontiki>
oh, i believe that, chipotle
<chipotle>
it's ridiculous
<Nilium>
I've never gotten the texts, but I do get the follow-up emails
<pontiki>
when i switched service, i got someone's number that would just ring off the *hook* from boilerroom scam artists
<sevenseacat>
i once got called by a recruiter, who found me on linked in, saw my current employer, and then called them to get to me.
<Nilium>
O____o
MasterPiece has joined #ruby
<Nilium>
Smart recruiter.
<sevenseacat>
that was pretty much my reaction.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<Nilium>
I assume your employer was just as confused as I am at that.
hamakn has quit [Remote host closed the connection]
<pontiki>
that scares me when that happens
lemur has quit [Remote host closed the connection]
<Macaveli>
chipotle because she moved to france
<Nilium>
If any recruiter called me employer, they'd just get laughed at.
hamakn has joined #ruby
<Nilium>
s/me/my/
lemur has joined #ruby
msgodf has joined #ruby
Spami has joined #ruby
pasv has quit [Ping timeout: 255 seconds]
<chipotle>
mmm france
<chipotle>
where?
<chipotle>
i miss living there
intyl_ has quit [Ping timeout: 244 seconds]
lessless has joined #ruby
jenrzzz has joined #ruby
Pixi_ has joined #ruby
<Nilium>
I want my gopher squadron already.
<chipotle>
ugh, i need to go downstairs and switch over the laundry :/
<chipotle>
i can't believe it's almost 4am :(
Takle has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 244 seconds]
defrang has joined #ruby
Xiti` has quit [Ping timeout: 244 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<apeiros_>
alicef: if File.basename(filename) =~ /^#$/
duncannz has quit [Ping timeout: 264 seconds]
<apeiros_>
that's quite probably the offending line.
<apeiros_>
also note that '\#' == "\\#"
echooo has joined #ruby
ghr has joined #ruby
jottr has joined #ruby
ponga has joined #ruby
<apeiros_>
alicef: and since you seem to be using ruby 1.9+: -Ku has no effect after ruby 1.8.
huawei has quit [Quit: (null)]
LouisRoR has quit [Ping timeout: 256 seconds]
CustosL1men has quit [Ping timeout: 264 seconds]
sevvie has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
dawkirst has quit [Quit: Leaving...]
SOLDIERz has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Takle has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 1.0.1]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
bal1 has joined #ruby
duncannz has joined #ruby
az7ar_away is now known as az7ar
bal has quit [Ping timeout: 265 seconds]
valeriansaliou has quit [Quit: Be back later ...]
<ddv>
anyone know how I can prevent nokogiri from self closing a tag <tag/> when it contents are empty?
<ddv>
I want <tag>some invisible</tag> instead
Joufflu has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 264 seconds]
anitchrist was kicked from #ruby by apeiros_ [cross-post without informing about it. additionally being a dick about it.]
arup_r has joined #ruby
chthon has joined #ruby
qba73 has joined #ruby
arup_r_ has joined #ruby
sevvie has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
<ddv>
apparently I can use SaveOptions::NO_EMPTY_TAGS
<chipotle>
argh, i wish i could sleep :(
<shevy>
chipotle listen to faithless - insomnia
<chipotle>
quoi?
<bweston92>
Does Ruby have any documented standards like (PSR-2 or PEP8) ?
arup_r has quit [Ping timeout: 264 seconds]
kanhaiya has joined #ruby
<kanhaiya>
shoes not working
pasv has joined #ruby
Jackneill has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<kanhaiya>
./shoes-3.1.0.run: 1: eval: ./shoes: not found
sevvie has quit [Read error: Connection reset by peer]
<kanhaiya>
??
hamakn has quit [Remote host closed the connection]
pasv is now known as Guest48003
usrenmae has quit [Quit: Leaving.]
DadoCe has joined #ruby
sinkensabe has joined #ruby
sevvie has joined #ruby
LouisRoR has joined #ruby
frogsy has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
SilkFox_ has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
<certainty>
bweston92: not that i no of. though there are guides which are followed more or less. There certainly are standards within projects. I suspect for ruby core there is one too
Takle has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Remote host closed the connection]
reinaldob has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
rdark has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
shime has joined #ruby
Takle has joined #ruby
banister has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
Pharaoh2 has joined #ruby
<DaniG2k>
does anyone need a discount coupon for a Digital Ocean VPS?
Mongey has quit [Ping timeout: 245 seconds]
<shime>
is there a way to check out specific gem dependents? how would I check which gems depend on ActiveSupport, for instance?
<sevenseacat>
that would be a long list
<shime>
long black list, yes
<sevenseacat>
hah
fabrice31 has joined #ruby
valeriansaliou has joined #ruby
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
jeanlinu_ has joined #ruby
Deele has joined #ruby
Morkel_ has joined #ruby
valeriansaliou has quit [Client Quit]
krz has quit [Quit: WeeChat 1.0.1]
<anitchrist>
when a Klass.new has a variable argument attached as such Klass.new(something), would it be a fail to assume that the blank class is being populated by the argument and is no longer blank?
sigurding has quit [Quit: sigurding]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
rdark has quit [Quit: leaving]
jeanlinux has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
french has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anitchrist>
I mean Klass as a class object, nothing more
Soda has joined #ruby
<anitchrist>
I could have named it Toilet, but I'm just trying to bounce ideas
<anitchrist>
so that I have a clear picture
<anitchrist>
clearer*
<waxjar>
what do you mean by the blank class?
<anitchrist>
mean the class is defined at the being of the script right
krz has joined #ruby
<anitchrist>
and at the end it has the .new method attached
pushpak has joined #ruby
<anitchrist>
which as far as i know kind zeros stuff out
oo_ has quit [Remote host closed the connection]
<anitchrist>
not the shape of it, but the data
oo_ has joined #ruby
<anitchrist>
say it was an array or something built inside that had priorly established strings or integers or ... whatever... when .new is called at the end of the script I was under the impression that it wiped that dat
<arup_r>
waxjar: *blank class* klass = Class.new hehehehehee
Timgauthier has joined #ruby
<waxjar>
anitchrist: build inside where?
<waxjar>
i think you're confusing Classes and instances of classes
<anitchrist>
help me get unconfused then, please
<waxjar>
I'd like to, but I have no idea what you're asking :p
<anitchrist>
seem to have some understand as you brought up that I am confused and the instances of classes
<anitchrist>
you*
<anitchrist>
fuck... its late my fingers aren't working well
<anitchrist>
but I can't sleep
sevvie has quit [Read error: Connection reset by peer]
<Xeago>
do yoga
tkuchiki has quit [Remote host closed the connection]
Mongey has joined #ruby
tkuchiki has joined #ruby
<waxjar>
anitchrist: maybe show a code example of what you mean
alkoma has joined #ruby
oo_ has quit [Remote host closed the connection]
DadoCe has joined #ruby
MrBeardy has quit []
n1lo has joined #ruby
shime has quit [Quit: Lost terminal]
tkuchiki has quit [Ping timeout: 245 seconds]
mengu has quit [Ping timeout: 256 seconds]
n1lo has quit [Client Quit]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
gfawcettpq has joined #ruby
<anitchrist>
its awfully weird that things like this can't be explained with out source, especially when we share the same natural language
sameerynho has joined #ruby
ajaiswal has quit [Remote host closed the connection]
<tobiasvl>
the language we share is ruby ;) it's more concise and precise than english (which is not my first language at least)
<anitchrist>
I'm obviously a noob though
alkoma has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
valeriansaliou has joined #ruby
sevvie has joined #ruby
noname001 has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
pkrzywicki has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<anitchrist>
meh found what I was looking for , thanks though guys
livathin_ has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
Pharaoh2 has quit [Ping timeout: 265 seconds]
joonty has joined #ruby
hamakn has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<anitchrist>
and you were right waxjar
timonv_ has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
charliesome has quit [Quit: zzz]
n1lo has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
antgel has quit [Ping timeout: 244 seconds]
conniemj has quit [Ping timeout: 240 seconds]
valeriansaliou has quit [Client Quit]
antgel has joined #ruby
rdark has quit [Ping timeout: 255 seconds]
krz has joined #ruby
Zai00 has joined #ruby
az7ar_away is now known as az7ar
petertretyakov has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
n1lo has quit [Ping timeout: 245 seconds]
burzmali has quit [Quit: Leaving.]
Rickmasta has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
zorak8 has quit [Ping timeout: 265 seconds]
livathin_ has quit [Remote host closed the connection]
Timgauthier has joined #ruby
ferr has joined #ruby
doritostains has joined #ruby
jheg has quit [Quit: jheg]
Takle has joined #ruby
<ferr>
Why this with capybara does not work find(:xpath, '//tr[contains(., #{company_name}")]').click_link('Delete'). If I fill simple string instead of variable it works
krz has quit [Quit: WeeChat 1.0.1]
doritostains has quit [Client Quit]
doritostains has joined #ruby
AlexRussia has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
max96at|off is now known as max96at
Pharaoh2 has joined #ruby
<workmad3>
ferr: you've missing the opening " in the xpath there
avrc has quit [Quit: this channel is bakas]
Takle has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
startupality has quit [Quit: startupality]
n1lo has joined #ruby
startupality has joined #ruby
livathinos has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
AlexRussia has quit [Ping timeout: 245 seconds]
C1V0 has joined #ruby
Takle has joined #ruby
rdark_ has quit [Ping timeout: 240 seconds]
krz has joined #ruby
krz has quit [Client Quit]
rdark has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
startupality has quit [Quit: startupality]
kl__ has joined #ruby
kl__ has left #ruby [#ruby]
kostitas has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
nateberkopec has joined #ruby
krz has joined #ruby
renderful has joined #ruby
Flcn has joined #ruby
antoinelyset has joined #ruby
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby
antoinelyset has quit [Client Quit]
brb3 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
alkoma has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
fandi has joined #ruby
n1lo has quit [Quit: Leaving]
kostitas has quit [Quit: Leaving]
jenrzzz has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shazaum has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
kostitas has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond has quit [Remote host closed the connection]
jeanlinu_ has quit [Remote host closed the connection]
<arup_r>
File#rewind is not working
joonty has quit [Quit: joonty]
aswen has joined #ruby
<waxjar>
File#rewind just goes back to the beginning of the file, so you can read it twice :)
<canton7>
..are you trying to write to the file from the end to the beginning?
<canton7>
that makes exactly zero sense
<arup_r>
no.. you missunderstood
josephndenton has joined #ruby
<arup_r>
In each iteration I am trying to write at the beginning of the file..
<canton7>
so.. keep overwriting yourself?
<arup_r>
But I don't want to overwrite
<canton7>
...so you want to read the file, write your line at the beginning, then write out everything you just read?
<arup_r>
I want write - 9 then write - 8 then write - 7 so on..
ta_ has joined #ruby
<canton7>
you're writing to bytes on a filesystem. this isn't some array or queue that you can push around
livathinos has quit [Remote host closed the connection]
<canton7>
once a line exists at the beginning of the file, that's where it stays (unless it's overwritten)
timonv_ has joined #ruby
<arup_r>
Ok.. so how to get the output as I am looking for
<arup_r>
>
<arup_r>
?
<waxjar>
anyway, change the loop: 9.downto(0) { ... }
aclearman037 has joined #ruby
<arup_r>
waxjar: that's an example... :)
<arup_r>
But I want each time to add from the begining ...
it0a has quit [Quit: WeeChat 1.0.1]
livathinos has joined #ruby
<canton7>
arup_r, you cannot. that is not how files work
usrenmae has quit [Quit: Leaving.]
tkuchiki has joined #ruby
anaeem1 has quit [Quit: Leaving...]
jheg has joined #ruby
<waxjar>
why do you want that arup_r?
josephndenton has quit [Ping timeout: 245 seconds]
sundjango has joined #ruby
banjara has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 245 seconds]
<arup_r>
canton7: Humm got it..
ta_ has quit [Ping timeout: 265 seconds]
timonv_ has quit [Ping timeout: 252 seconds]
<arup_r>
I was a bit confused with queue/stack with IO stuff.. Sorry to bother you guys'
sigurding has quit [Quit: sigurding]
<chipotle>
does anyone here use rubymine? what do you think?
<chipotle>
how does it compare to a text editor like sublime text?
<chipotle>
i've never used an IDE
<chipotle>
it requires java (on mac, at least), so that makes me a bit weary...
SilkFox_ has joined #ruby
conniemj has joined #ruby
<workmad3>
chipotle: if you take the time to learn an IDE, it can be great... I switched away from rubymine when I realised my use of it was just getting more and more treating it as a simple text editor
<jhass>
apeiros_: you mentioned once you got a heavily modified rubocop config. Any chance to have a look at it somewhere? :)
<chipotle>
workmad3: what do you use now?
timonv_ has joined #ruby
AlexRussia has joined #ruby
<workmad3>
chipotle: so I switched to vim and instead try to improve my vim skills and setup to have the bits I miss from an IDE :)
<chipotle>
is atom still too bloated to use for serious coding? i heard you can't open a file larger than 2mb with it??
<chipotle>
i see
<chipotle>
vim intimidats me
banjara has joined #ruby
<chipotle>
i like sublime text, especially it's package manager
<chipotle>
but it is just sooo much to learn
<chipotle>
workmad3: how long ahve you been working on vim?
sevvie has quit [Ping timeout: 244 seconds]
<workmad3>
chipotle: 2-3 years now, I think
mengu has quit [Ping timeout: 264 seconds]
<workmad3>
chipotle: I've still barely scratched the surface too... but it's a gradual learning process :)
<workmad3>
chipotle: any decent text editor will have a lot to learn though
SilkFox_ has quit [Ping timeout: 240 seconds]
<workmad3>
chipotle: an IDE won't be any different
<chipotle>
too bad lynda.com doesn't have a video on vim. i should watch their sublime text videos
<chipotle>
btw, if anyone wants access, harvard has unlimited access to it and i can share the account details...
<j416>
chipotle: bash and zsh are shells, scripts written for them are called shell scripts; but a shell script may be written for a specific shell (in that shell's language)
<wasamasa>
there are people writing scripts with /usr/bin/zsh
<wasamasa>
there are also people writing portable scripts
<chipotle>
i want to use zsh, but mac comes with bash. i installed zsh via homebrew, but not sure what to do next
<wasamasa>
both are minorities
<wasamasa>
chipotle: use zsh interactively like everyone else
<ddv>
chipotle: try ruby, you might like it
<j416>
or just use bash
<apeiros_>
mac also comes with an *old* bash :(
* j416
hides
<wasamasa>
chipotle: and keep bash installed
<apeiros_>
I still don't get why
<wasamasa>
apeiros_: they fear the gplv3
<wasamasa>
apeiros_: that's why they don't update
MrBeardy has joined #ruby
<apeiros_>
wasamasa: oh, bash4 is gplv3?
<wasamasa>
apeiros_: yes
<apeiros_>
ok, that I can understand
n1lo has joined #ruby
<Timgauthier>
what is gplv3?
<wasamasa>
apeiros_: same things for the emacs version it's delivered with
<Timgauthier>
lol
<wasamasa>
Timgauthier: the third version of the gpl license
<Timgauthier>
ah, and why would a company be afraid of it?
<wasamasa>
because it poses legal problems to them to ship their operating system with software licensed with it
<chipotle>
wasamasa: what do you mean, interactively?
<Timgauthier>
i see
<wasamasa>
at least that's what people assume
<Timgauthier>
so they're using hostile licensing
<wasamasa>
nobody knows for sure what apple is thinking
athan has quit [Read error: Connection reset by peer]
<apeiros_>
Timgauthier: yes, gplv3 is code-friendly but corporation-hostile
<wasamasa>
chipotle: well, set up your system to launch zsh whenever opening a terminal emulator
<chipotle>
ok
<Timgauthier>
apeiros_ sad state
<Timgauthier>
why is it everyone seems to be so hostile and us vs them lately?
<wasamasa>
chipotle: so that whenever you're opening one to do your computing, you get the useful interactive features zsh provides
<wasamasa>
which are IMO a greater benefit than the features for shell scripting
<wasamasa>
but then, I tend to use a proper language like ruby instead for my scripts
<shime>
what are the benefits of zsh anyway?
rdark has quit [Ping timeout: 245 seconds]
<wasamasa>
<()
<chipotle>
wasamasa: do you have any configs i can use for zsh, for autocomplete and pretty colors and whatnot? :-)
<chipotle>
i'd really appreciate it!
<wasamasa>
chipotle: nothing generic enough, but there are lots of them on github
<wasamasa>
chipotle: even premade configurations that are very generic (and bloated)
<chipotle>
ok
<wasamasa>
like oh-my-zsh and whatnot
<apeiros_>
Timgauthier: I think if you're looking over everything, we're in much less hostile times than ever before.
<chipotle>
i've heard of oh my zsh
<chipotle>
not exactly sure what it is
<apeiros_>
Timgauthier: but we also live in much "denser" times than ever before (much more people, and additionally much better connected people), so hostilities are much more apparent
startupality has quit [Quit: startupality]
Rollabunna has quit [Remote host closed the connection]
<Timgauthier>
apeiros_ people keep saying that, but we have police unions stirring up the police forces against the population, we have governments consolidating power to themselves, we have violent extremists appearing out of our own populations, we have programmers/developers and corperations trying to harm eachother with hostile contracts and licensing. maybe i'm just in a weird intersection where everything looks crap
<wasamasa>
Timgauthier: well, you could list to something like RMS talk at 31c3 for the other side
<shime>
Timgauthier: the mass surveillance stuff doesn't help for sure
<Timgauthier>
part journalist, part developer, part designer, this isn't an ideal place :P
<apeiros_>
Timgauthier: I think all that stuff has been *much* *much* worse before
<apeiros_>
Timgauthier: think things like KKK
<Timgauthier>
yes it has
<apeiros_>
lynch mobs
<apeiros_>
etc.
dstarh has joined #ruby
<Timgauthier>
but that shit is going on still, just in the middle east now
<apeiros_>
I'm not saying we have reached a point where we can lean back and say all's fine
<apeiros_>
by far
<Timgauthier>
ya
<Timgauthier>
bleh
krzkrz has joined #ruby
<chipotle>
wasamasa: what exactly is oh my zsh?
krzkrz has quit [Client Quit]
shime has quit [Quit: leaving]
silkfox has joined #ruby
<wasamasa>
Timgauthier: he proposes free software as essential part of society and argues against anything that might make it impossible
pushpak has quit [Quit: Leaving...]
<wasamasa>
Timgauthier: including free software licenses that are corporation-friendly
<Timgauthier>
i'm not sure about that idea though
* certainty
finds zpresto more pleasing than oh-my-zsh
<wasamasa>
well, I partially support the idea
<wasamasa>
especially in the educational sector
spyderman4g63 has joined #ruby
<wasamasa>
the GPL is the manifestation of that idea in form of a free license that intentionally limits your freedoms to ensure software stays free, no matter what
TheRinger has quit [Ping timeout: 265 seconds]
<Timgauthier>
its a great idealism, but free software doesn't get written very often. People need income to survive and so they write software to do so, its very hard to get good ground breaking software. So being able to make money from software is a good thing, making pieces of software that are integral pieces to other software, and then tacking on a license that fucks with the companies ability to make money simply shatters the standards and
<Timgauthier>
causes large faults.
<wasamasa>
IIRC GPLv3 closed a loophole inherent in GPLv2
momomomomo has joined #ruby
<wasamasa>
Timgauthier: it's not like these large faults get magically fixed for all other software :P
<Timgauthier>
its like inventing a wheel that saves hundreds of billions of ltrs of fuel every year if its used on every car, but saying you can only use it if your car is free
krz has quit [Quit: WeeChat 1.0.1]
apurcell has joined #ruby
sigurding has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
arup_r has quit []
<wasamasa>
there's also people that get hired for working on free software
<wasamasa>
like, the linux and systemd developers
<canton7>
a lot of the open-source work I do is so that I can use it at $dayjob in a commercial product
<canton7>
I don't get paid to do the open-source work, but the reason for doing it goes against GPL
<kaspergrubbe>
what do you mean that it goes against the GPL?
rsty has left #ruby [#ruby]
apurcell has quit [Ping timeout: 252 seconds]
<canton7>
my motivation for writing open-source stuff is specifically so that I can use it in a commercial product. If I licensed it under GPL, I wouldn't be able to do this
livathinos has quit [Remote host closed the connection]
jeanlinux has joined #ruby
rkalfane has joined #ruby
kostitas has quit [Remote host closed the connection]
ta_ has joined #ruby
elabs-developer has joined #ruby
elabs-developer has left #ruby [#ruby]
<chipotle>
Timgauthier: it seems the model that red hat has is working quite well
dmst has quit [Quit: Connection closed for inactivity]
bluenemo has joined #ruby
bluenemo has joined #ruby
<chipotle>
i think their stock is up something ridiculous like 900% since the crash
<chipotle>
i know it is blowing microsoft out of the water
<chipotle>
and acquia, the corporate head of drupal that does consulting and has a SAAS product is doing quite well too...
delianides has joined #ruby
uri_ has joined #ruby
Takle has quit [Remote host closed the connection]
rdark has joined #ruby
<certainty>
having a commercial product doesn't always mean that it must be non-free with respect to the 4 freedoms. Though realistically it often is
Spami has joined #ruby
djbkd has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
bayed has joined #ruby
<Timgauthier>
certainty yes, but the gpl license doesn't allow
* ddv
is just glad he doesn't have PHP crap on his resume
alkoma has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
dutchie has joined #ruby
<dutchie>
is there a way to pass bindings to erb on the command line? or do i have to do it from an irb session
djbkd has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
<certainty>
Timgauthier: how is that?
<certainty>
Timgauthier: it doesn't say anything about commercial vs. non-commercial products iirc
<Timgauthier>
the GPL license is specifically written to keep things licensed by it from being sold in commercial products
<certainty>
that's not true
<certainty>
as long as the software is free it can be commercial
sevvie has quit [Ping timeout: 255 seconds]
alkoma has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
usrenmae has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
DadoCe has quit [Remote host closed the connection]
sevvie has joined #ruby
nateberkopec has joined #ruby
<wasamasa>
there's dual-licensing, too
Tricon has joined #ruby
DadoCe has joined #ruby
aboudreault has quit [Excess Flood]
<certainty>
yes if nothing else helps that an option
Takle has joined #ruby
<kaspergrubbe>
Takle: hello
sevvie has quit [Read error: Connection reset by peer]
soxet has joined #ruby
osvico has joined #ruby
sankaber has joined #ruby
<wasamasa>
as in, offering an option for corporations and an option for private/open use
usrenmae has left #ruby [#ruby]
Tricon has quit [Ping timeout: 264 seconds]
<bradland>
chiming in to point out that using the GPL does not mean you cannot charge for your software.
sevvie has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
<wasamasa>
you just need to provide the sources of the GPLed software
aboudreault has joined #ruby
<wasamasa>
optionally for a copy charge
<bradland>
the GPL is designed to make sure that software remains free as in freedom. the practical implication is that you must provide the source code to any application licensed under the GPL.
<apeiros_>
bradland: "using the GPL" or "using GPLed software"? (afaik the latter is ok too, under conditions)
JDiPierro has joined #ruby
<bradland>
most companies who “sell” GPL software are selling commercially supported versions of the software
livathinos has joined #ruby
<bradland>
apeiros_: “using GPLed software” is a more subtle question, because it depends on the GPL version and whether you’re redistributing.
zai has left #ruby [#ruby]
LekeFly has quit [Ping timeout: 244 seconds]
<bradland>
if you’re selling under a SaaS model, most GPL versions won’t impact you
<apeiros_>
my main problem with GPL is that I have to figure it out at all.
<wasamasa>
bradland: except the AGPL?
<bradland>
agreed
<bradland>
we have lawyers for this stuff
momomomomo has quit [Quit: momomomomo]
petertretyakov has joined #ruby
Oejet has left #ruby [#ruby]
<bradland>
wasamasa: Affero GPL was designed specificially to address the SaaS loophole
<bradland>
as i understand it anyway
<bradland>
IANAL
chipotle has quit [Quit: cheerio]
<wasamasa>
yeah, that was my interpretation of it, too
<bradland>
as i am constantly reminded by my actual lawyer lol
mikecmpbll has quit [Ping timeout: 255 seconds]
<bradland>
even with AGPL, it only applies to the software that was licensed under AGPL though
<bradland>
not your entire software
Spami has quit [Ping timeout: 255 seconds]
<bradland>
so, for example, if you use MongoDB in your SaaS app, you don’t have to license your entire app as AGPL
dutchie has left #ruby [#ruby]
<wasamasa>
and instead you have to specify explicitly that you're using it and link to its project?
<bradland>
however, if you modify MongoDB, you must provide open source those changes
valeriansaliou has joined #ruby
<bradland>
wasamasa: that’s not a requirement of the AGPL as far as I know
<wasamasa>
hmm
joonty has joined #ruby
mikecmpbll has joined #ruby
<wasamasa>
so it's mostly about contributing?
<bradland>
partly
iamninja has quit [Ping timeout: 250 seconds]
tuelz has joined #ruby
<bradland>
think of it as preserving the freedom of the software
spider-mario has joined #ruby
<tuelz>
anyone know a site that shows the most recently published gems?
ta_ has joined #ruby
<wasamasa>
because I don't quite get yet why someone doing a fork of mongodb has to share these changes
<tuelz>
I jut published a gem for a relatively unknown framework (pakyow) and I haven't mentioned it anywhere and it has 400+ downloads in the span of like a few days
<bradland>
wasamasa: that’s the express purpose of AGPL
<tuelz>
thinking ruby gems lies to fluff my ego
dblessing has joined #ruby
<bradland>
tuelz: oh. so you’re looking for potential sources
<bradland>
nope
<tuelz>
not really
mostlybadfly has quit [Quit: Connection closed for inactivity]
<tuelz>
looking to see if other new gems all see same success
<bradland>
no lies, but keep in mind that there are many mirrors
joonty has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
startupality has joined #ruby
<bradland>
so when someone’s mirror grabs a copy, i bet it shows up as a download
<tuelz>
yeah was thinking mirrors have to be some of the downloads, but I would be REALLY surprised to see over 10 real downloads at this point
<bradland>
it’s a big internet out there :)
<bradland>
not to say people aren’t using it
Morkel has quit [Quit: Morkel]
valeriansaliou has quit [Ping timeout: 264 seconds]
<tuelz>
300+ mirrors seems unrealistic to me
parduse has joined #ruby
<bradland>
agreed there
<wasamasa>
bradland: the only scenario where this would be welcome I can think of is when a commercially-developed version turns out to be significantly more popular
<wasamasa>
bradland: so that even in this case people won't wander off to it, but instead get the benefits of them contributing back their changes
ta_ has quit [Ping timeout: 265 seconds]
<bradland>
the idea behind licenses like the AGPL is that it’s difficult to even contemplate all the possible scenarios, so the license is written to explicitly protect the OSS nature of the software as a broad preventative measure
<bradland>
but yes, that’s definitely one case where it serves the purpose
majoh has quit [Remote host closed the connection]
<bradland>
"Pulls the 50 gems most recently added to RubyGems.org (for the first time). Returns an array of the XML or JSON representation of the gems.”
tesaf has joined #ruby
metadave has joined #ruby
wm3|away has quit [Ping timeout: 245 seconds]
jeanlinux has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
startupality has quit [Quit: startupality]
SilkFox_ has quit [Ping timeout: 264 seconds]
jbellone has left #ruby ["WeeChat 1.1-dev"]
jeanlinux has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
cjm_ has left #ruby ["Leaving"]
iamninja has joined #ruby
startupality has joined #ruby
mrmargolis has joined #ruby
az7ar is now known as az7ar_away
alexherbo2 has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
V_Ve has joined #ruby
fryguy9 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
V_Ve has quit [Client Quit]
momomomomo has joined #ruby
allcentury has joined #ruby
sameerynho has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
phantomtiger has joined #ruby
jeanlinux has joined #ruby
sevenseacat has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has joined #ruby
Kricir has joined #ruby
ta_ has joined #ruby
heftig has joined #ruby
heftig_ has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
scripore has joined #ruby
n1lo has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
lessless has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
kasperti_ has joined #ruby
devdazed has joined #ruby
Takle has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
evanjs has joined #ruby
silkfox has joined #ruby
russt has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
chthon has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
whoisjake has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
baltazore has quit [Remote host closed the connection]
<bradland>
i bought his working with unix processes book, and even for a dunce like me, it made them accessible
felipedvorak has joined #ruby
Channel6 has joined #ruby
<waxjar>
hippobottamus: t.join should be where you check and sleep now, Thread.exit shouldn't be there, though you'll still not be benefitting from Threads then
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
mary5030 has joined #ruby
LekeFly has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
jheg has quit [Quit: jheg]
wpp has quit [Quit: ZZZzzz…]
ta_ has quit [Ping timeout: 244 seconds]
robustus is now known as robustus|Off
LekeFly has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
LekeFly has joined #ruby
intyl has joined #ruby
chrishough has joined #ruby
v0n has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
<bradland>
blahwoop: have you considered providing this data in a non-interactive way, rather than having to type the data in at a prompt
<bradland>
for example, you could write the app so that users provide the data in a CSV file
CustosL1men has quit [Ping timeout: 264 seconds]
<blahwoop>
yes. that's an option too
<bradland>
which is easy to type by hand, and can be edited and reused
green-big-frog has left #ruby [#ruby]
<blahwoop>
im not sure how i should handle the scores though. does team need it's own class
arietis has joined #ruby
Xeago has quit [Remote host closed the connection]
<bradland>
i don’t think teams need their own class
<bradland>
you’re working with games
<blahwoop>
each team will have league points
<bradland>
each game has two teams, and a winner
<bradland>
define league points?
livingstn has joined #ruby
<blahwoop>
if a team wins they get 3 points
<blahwoop>
tie they get 1
arup_r has joined #ruby
<blahwoop>
lose they get 0
snath has quit [Ping timeout: 244 seconds]
<bradland>
ok, then you’ll want a team class
<bradland>
what you’re missing right now is the game
<blahwoop>
yes
bronson has quit [Ping timeout: 252 seconds]
<blahwoop>
how to break it down and check if the team exist. and how to compare
<bradland>
are the league points cummulative for the season?
cassianoleal has quit [Quit: (null)]
ta_ has joined #ruby
<blahwoop>
yes
jefus_ has joined #ruby
<bradland>
ok, so you’re going to need to “persist” those somewhere
<bradland>
you can use a SQLite database, or you can simply build an object and serialize it
<bradland>
your LeaguePoints class isn’t apropos right now
<blahwoop>
i was going to have team have league_points
<bradland>
should LeaguePoints be handling user input?
<bradland>
build a CLI class, and have that interact with the user
<blahwoop>
it should be named LP-calculator
<bradland>
within the CLI, you’ll interface with the LeaguePoints class
kke_ has quit [Quit: Reconnecting]
kke has joined #ruby
<bradland>
since LeaguePoints are going to be persistent, you’ll need to do things like load or initialize the league points using your persistence method
<bradland>
i like to start with my data, then work on the CLI
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
<bradland>
think about how you’ll interact with the data, and build those classes
<bradland>
use IRB to interact with them
<workmad3>
if the data structure is pretty much a single flat table, I'd personally save/load it with CSV
<bradland>
so you need Teams, Games, and leaguePoints
<bradland>
doh, LeaguePoints
olivier_bK has quit [Ping timeout: 256 seconds]
<bradland>
and i agree with workmad3 i like to keep it simple.
Takle has quit [Remote host closed the connection]
<workmad3>
which also means clever users could pull it into excel and perform stats analyses on the data :)
<blahwoop>
hmm ok
<bradland>
i either use CSV, or i’ll serialize to YAML with a CSV exporter
jefus has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
DadoCe has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<bradland>
blahwoop: you’re going to end up with a lot of files for this project. i’d recommend getting it in a github repo ASAP.
roolo has quit [Remote host closed the connection]
<bradland>
don’t worry about how neat and tidy your commits are yet. just focus on pushing code and getting feedback.
msgodf has quit [Remote host closed the connection]
dfinninger has joined #ruby
rbennacer has joined #ruby
hmsimha has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<blahwoop>
ok
momomomomo has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
scripore has joined #ruby
DadoCe has quit [Ping timeout: 256 seconds]
Flcn has quit [Quit: Be back later ...]
scripore has quit [Client Quit]
Xeago has joined #ruby
roolo has joined #ruby
tobago has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
geggam has joined #ruby
tubuliferous has joined #ruby
Kricir has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
<sparr>
On OSX 10.9.5 I have installed rbenv and ruby-build via homebrew. I used rbenv to install two versions of ruby. All was well. They are both in ~/.rbenv/versions and both showed up in `rbenv versions`. I opened a new shell and now rbenv can only see my system version again. My profile changes (for the path and shims and `rbenv init -`) seem to still be in place. What could be wrong?
Takle has joined #ruby
momomomomo has joined #ruby
djbkd has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
<gr33n7007h>
sparr, type "bash -l" then try rbenv again
Macaveli has joined #ruby
ta_ has joined #ruby
wallerdev has joined #ruby
<sparr>
gr33n7007h: no change
<gr33n7007h>
ah, ok thought you might have to run as a login shell
snath has joined #ruby
<chipotle>
sparr: update your shell
<chipotle>
or restart
<chipotle>
bash or zsh?
<sparr>
bash
<sparr>
I opened a new shell
<sparr>
and it seems to have all the right stuff
nrsk has joined #ruby
<sparr>
shims at the start of my path, RBENV_ROOT is set, etc
sambao21 has quit [Quit: Computer has gone to sleep.]
brb3 has quit [Quit: ZZZzzz…]
larissa has quit [Quit: Leaving]
VictorBjelkholm has quit [Remote host closed the connection]
evlute has joined #ruby
scpike_ has joined #ruby
<bradland>
sparr: what happens if you execute rbenv init -
<bradland>
then try to switch
josephnd1nton has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
<bradland>
well, let’s back up
<bradland>
start a new shell
spyderman4g63 has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 265 seconds]
renderful has joined #ruby
<bradland>
and execute: type rbenv
<bradland>
you should get ‘rbenv is a function'
delianides has quit [Remote host closed the connection]
conniemj has joined #ruby
larissa has joined #ruby
<chipotle>
sparr: try restarting
qba73 has quit [Remote host closed the connection]
<chipotle>
i had to do that with bash, before switching to zsh
dblessing has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
defrang has quit [Quit: defrang]
sambao21 has joined #ruby
bMalum has quit [Quit: bMalum]
<pontiki>
spawn of satan
<pontiki>
oopssss
<pontiki>
wrong window
josephnd1nton has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
<bradland>
not sure shevy is around pontiki
ylluminarious has joined #ruby
bMalum has joined #ruby
<apeiros_>
lol
<pontiki>
shttaaaap
pietr0 has joined #ruby
joonty has quit [Quit: joonty]
icebourg has joined #ruby
<shevy>
hey
djbkd has quit [Remote host closed the connection]
<bradland>
apparently i misspoke :P
timonv_ has quit [Remote host closed the connection]
<shevy>
that has made me curious though
<shevy>
I'd like to see that other window pontiki
<apeiros_>
+1
<shevy>
hehehe
<bradland>
check #witchcraft
<apeiros_>
I'd like to know what they could have meant other than shevy…
adriancb has quit [Read error: Connection reset by peer]
Dolphi has quit [Read error: Connection reset by peer]
<pontiki>
just consider it another episode of internet tourettes
<shevy>
bradland yeah, who would have thought pontiki has a bit of a witch :)
adriancb has joined #ruby
Dolphi has joined #ruby
pengin has joined #ruby
ylluminarious_ has joined #ruby
<shevy>
probably also likes ginger bread
sigurding has joined #ruby
kotk has joined #ruby
Jelco has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
mquin has quit [Read error: Connection reset by peer]
kotk_ has quit [Ping timeout: 264 seconds]
sargas has joined #ruby
hmsimha has quit [Read error: No route to host]
<pontiki>
probably
msgodf has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<pontiki>
but not to live in
lea has quit [Ping timeout: 264 seconds]
hmsimha has joined #ruby
<Dolphi>
shevy, My RPG Maker project is coming to life! :D
grios has joined #ruby
bricker has joined #ruby
mquin has joined #ruby
ylluminarious has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
lea has joined #ruby
Rollabunna has joined #ruby
rdark has joined #ruby
apurcell has joined #ruby
SilkFox_ has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
<bradland>
Dolphi: that’s awesome news. have you put the project on Github yet?
<shevy>
Dolphi ah I think hanmac once wanted to do this
<Dolphi>
bradland, No I haven't yet. I suppose it is about time to make a Github account.
<Dolphi>
shevy, Make a 2d RPG?
<bradland>
definitely. i think you’ll really like how much it helps others provide feedback.
<shevy>
Dolphi dunno. I think he wanted to just replace some other rpg maker project or so
alex88 has quit []
<Dolphi>
hanmac, You alive?
Rollabunna has quit [Ping timeout: 244 seconds]
<shevy>
I have not been following things too much for a while but there also was another guy, also from germany... #openrmk...something
apurcell has quit [Ping timeout: 252 seconds]
SilkFox_ has quit [Ping timeout: 255 seconds]
* hanmac
is back again
dfinninger has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
dman777_alter has joined #ruby
<hanmac>
shevy most(all) of my stuff i didnt push on github or other servers did die ... good that it wast much again ... :/
Xeago has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
<Dolphi>
bradland, Oh shoot, you have to use Git via command line? Yikes, I hate touching that unless I am running a program or something.
<Dolphi>
hanmac, I heard that you were possibly interested in a RPG Maker project?
bluenemo has quit [Remote host closed the connection]
evlute has quit [Ping timeout: 244 seconds]
<hanmac>
Dolphi: hm yes ... but currently i am writing on the side projects for that (like window gui or game rendering gems)
<chipotle>
sparr: get it?
valeriansaliou has joined #ruby
ta_ has joined #ruby
<Dolphi>
bradland, Do most people use their actual name or their username for GitHub? I feel like making it my real name may be better for if I ever decide to show future employers any of my code.
timonv_ has joined #ruby
<Dolphi>
bradland, How else would they know that I'm the real GentlemanDolphi, right?
<bradland>
yeah, i use bradland
<bradland>
which is kind of an amalgamation of my name
banjara has joined #ruby
tzero has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
mleung has joined #ruby
<Dolphi>
My name is Travis lol.
banjara has quit [Remote host closed the connection]
<bradland>
gotta head to lunch, bbiab
<Dolphi>
Enjoy!
<Dolphi>
hanmac, How long have you been working with games?
codeFiend has quit [Quit: codeFiend]
<hanmac>
Dolphi: you mean in general or with RPGMaker or with a specific version?
thumpba has joined #ruby
Fretta has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
SOLDIERz has joined #ruby
nunayerBeezwax has joined #ruby
evlute has joined #ruby
<Dolphi>
hanmac, I actually just decided to learn programming about a month ago. Messed with Java and a little C# before deciding to just learn Ruby. I inevitably learned of RPG Maker, and it peaked my interest. I was recommended XP to help me learn scripting with Ruby as well as some aspects of game dev, so I bought it two days ago and have been enjoying it ever since.
<Dolphi>
hanmac, In general.
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
tzero has joined #ruby
<hanmac>
XP is interesting but VX and VXAce have better in game api for additional scripts (i did begin with the rpg games with RPG2000 when it was as demo on a game magazine)
<hanmac>
Dolphi: my current plan and big project in the future is something similar to the RPGMakers but first free, and second totally written in Ruby ;P
sigurding has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<Dolphi>
hanmac, I was told that XP was better for beginners and that Ace may be a little too complicated for a newbie, so I took that advice since it was the only advice given at the time.
baroquebobcat has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<Dolphi>
hanmac, Wait...You want to code an engine?
terlar has quit [Ping timeout: 244 seconds]
maximski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 264 seconds]
<hanmac>
Dolphi: hm yes XP might be better for beginners, and yes i want to design a Maker and a GameEngine as pack
Tricon has joined #ruby
tjbiddle has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
<Dolphi>
Wow, that sounds pretty complicated. I'm currently working my way through the creation of a short RPG to help me learn the program (and maybe learn about scripting so that I'm not simply drag and dropping the whole game) before I start working on a bigger RPG.
rbennacer has quit [Remote host closed the connection]
<Dolphi>
I eventually would like to have one Greenlit with Steam, but I'm taking my time with that. First I need to learn the basics of game dev. Maybe in a year or so I can work on something big.
valeriansaliou has quit [Read error: Connection reset by peer]
Senjai`work has joined #ruby
Senjai`work is now known as Senjai
rathodvikas10 has joined #ruby
jenrzzz has joined #ruby
Pharaoh2 has joined #ruby
arietis has joined #ruby
dfinninger has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
thumpba has joined #ruby
wallerdev has quit [Quit: wallerdev]
valeriansaliou has joined #ruby
rathodvikas10 has left #ruby [#ruby]
chthon has quit [Ping timeout: 265 seconds]
<pontiki>
what is XP?
<Dolphi>
RPG Maker XP
<pontiki>
oh
rbrs has quit [Ping timeout: 265 seconds]
bitcycle_ has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
<Dolphi>
I just created a GitHub account and made my first repository. Do I need to hit "publish repository" to make it public, or is it already up for people to view?
Takle has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
apurcell has joined #ruby
<Dolphi>
Also, how would I add my RPG Maker XP files into said repository to be shared online?
ptrrr has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
pwnz0r has joined #ruby
L8__ has joined #ruby
sk87 has joined #ruby
Photism has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
<pontiki>
github should be giving you the instructions
<L8__>
newbies question: in sinatra, there's: get '/' do
sk87 has quit [Client Quit]
<L8__>
does 'do' is ruby's keyword?
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan has joined #ruby
djbkd has joined #ruby
<speakingcode-wor>
L8__: do...end are the wrappers of 'blocks'
djbkd has quit [Remote host closed the connection]
<speakingcode-wor>
they are like anonymous functions in javascript, sort of
<L8__>
hmm
djbkd has joined #ruby
<L8__>
gotcha
<speakingcode-wor>
so get '/' do...end is calling a method named get, and passing two arguments: '1', and a block.
ddd has joined #ruby
<speakingcode-wor>
err\
valeriansaliou has joined #ruby
<speakingcode-wor>
'/' not '1' sorry
<L8__>
how does it called in ruby
<L8__>
just anonymous function?
ta_ has joined #ruby
<speakingcode-wor>
not sure what you mean?
allcentury has joined #ruby
<L8__>
the do..end block
<speakingcode-wor>
oh
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<L8__>
speakingcode-wor, nevermind, so it just called ruby blocks
deric_skibotn has joined #ruby
<speakingcode-wor>
L8__: yeah. it is a block
Nameo0 has joined #ruby
<speakingcode-wor>
there are procs also (blocks that are named, essentially) and lambdas that are similar but slightly different
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<speakingcode-wor>
to implement the use of a block in that fashion, you don't need to name a parameter in your method - you can actually pass a block to _any_ method as it's last argument.. the method can execute the block by calling yield
codeFiend has joined #ruby
arietis has joined #ruby
<speakingcode-wor>
also, you can use { } instead of do..end for one-liners and such
ta_ has quit [Ping timeout: 244 seconds]
wkmanire has joined #ruby
Pharaoh2 has joined #ruby
<L8__>
speakingcode-wor as I understand the do..end is for multi-lines, and {} for single
<L8__>
or at least its the convention
<workmad3>
L8__: unless you follow weirich's rule...
<L8__>
weirich's rule?
<workmad3>
that 'do end' is for when you don't care about the block's return value, and {} is for when you do
* apeiros_
prefers weirich's rule
Pixi_ has quit [Quit: Pixi_]
<workmad3>
I like the idea, but I haven't managed to quite train myself out of 'do end' for multiline yet
<apeiros_>
select do |x| x? end.map do |x| x! end.first # chaining on `end` looks ugly
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
<workmad3>
it doesn't help that my vim inserts a closing } when I hit {, but only inserts a closing 'end' when I hit return :)
antgel has quit [Ping timeout: 244 seconds]
n1lo has joined #ruby
<workmad3>
but then, I can't recall a time I've chained onto a multi-line block in the last 5 years either :)
<apeiros_>
true. a bit an anti-style on its own
msgodf has quit [Ping timeout: 245 seconds]
sigurding has quit [Read error: No route to host]
sigurding_ has joined #ruby
wallerdev has joined #ruby
druznek has quit [Quit: Leaving]
rdark has quit [Quit: leaving]
phantomtiger has quit [Quit: phantomtiger]
scripore has joined #ruby
iamninja has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apurcell has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
baweaver has joined #ruby
lea has quit [Changing host]
lea has joined #ruby
Soda has quit [Remote host closed the connection]
djbkd has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
paulfm has quit [Quit: Zzzzz...]
LouisRoR has quit [Ping timeout: 265 seconds]
<sparr>
chipotle: restarting my whole computer? that seems overkill. I'd rather figure out the problem.
livathinos has joined #ruby
LouisRoR has joined #ruby
<sparr>
I'd like to figure out why rbenv isn't seeing my ~/.rbenv/versions/*
whoisjake has quit []
apurcell has joined #ruby
maximski has quit []
pengin has quit [Remote host closed the connection]
paulfm has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
Channel6 has joined #ruby
dfinninger has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
ddd has quit [Ping timeout: 264 seconds]
LouisRoR has quit [Ping timeout: 240 seconds]
Flcn has joined #ruby
s00pcan_ has quit [Read error: Connection reset by peer]
timonv_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
livathinos has quit [Remote host closed the connection]
beneggett has joined #ruby
tmtwd has quit [Remote host closed the connection]
melik_ has joined #ruby
fryguy91 has quit [Quit: Leaving.]
josephnd1nton has joined #ruby
SilkFox_ has joined #ruby
<shevy>
hmm
<shevy>
if I am about to build a long and complicated regex, Regexp.quote() would be good to use in such a case?
evlute has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Ping timeout: 245 seconds]
<eam>
shevy: as opposed to what?
codeFiend has quit [Quit: codeFiend]
<shevy>
hardcoding the /regex/
claw___ has quit [Ping timeout: 245 seconds]
claw has joined #ruby
s00pcan_ has joined #ruby
<shevy>
I seem to hardcode the regex almost always
renderfu_ has joined #ruby
Guest34594 has joined #ruby
<eam>
is it a literal pattern? or are you constructing it dynamically?
MrBeardy has quit []
codeFiend has joined #ruby
<shevy>
oh it is always the same; I parse a remote website (so just a big html string really) for some users
josephnd1nton has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
arup_r1 has joined #ruby
<eam>
oh wow, ruby regex doesn't have \Q\E :(
L8__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has quit [Remote host closed the connection]
chrishough has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
<bradland>
oh man, shevy, you’re using regex to to parse html?
s00pcan_ has joined #ruby
<bradland>
never admit that in public
<shevy>
bradland to extract the desired information
<shevy>
bradland why not?
<bradland>
eam: what’s \Q\E ?
<workmad3>
shevy: html isn't amenable to regexp in the general case
dfinninger has quit [Remote host closed the connection]
<workmad3>
shevy: or, in other words, regexp simply aren't powerful enough to properly process HTML
<bradland>
shevy: personally, i don’t give a damn. whatever works, but there are entire tomes written on why using regex to parse HTML is a “bad thing”
Takle_ has joined #ruby
grios has quit [Read error: Connection reset by peer]
<bradland>
however, there’s a case to be made that “parsing HTML” and “extracting a sub-string from some text that happens to be HTML” are two different things
<bradland>
basically, if you’re returning objects that look like a DOM, you’re parsing HTML
arup_r1 has quit [Client Quit]
<bradland>
if you’re just getting some text back, you’re probably OK
<shevy>
so now you are saying it is ok!
<eam>
bradland: the equiv of /#{Regexp.quote("foo")}/ is /\Qfoo\E/
<shevy>
eam is that in perl?
<workmad3>
bradland: only if you don't mind if the sub-string may appear in absolutely any part of the document :)
<eam>
pcre yes
<shevy>
hmm
<bradland>
gotta be perl
<certainty>
workmad3: you can solve every $problem with regex. you need to try harder if seem to can not :p
Takle has quit [Ping timeout: 256 seconds]
<shevy>
the \E is needed to stop the starting \Q ?
<bradland>
workmad3: true dat!
<eam>
looks like another thing missing in ruby's almost pcre clone but not quite regex language
arup_r has joined #ruby
Nameo0 has quit [Ping timeout: 264 seconds]
<workmad3>
certainty: unfortunately, maths tells us it can't be done :(
<shevy>
you may be the only guy here who knows these things eam!
<eam>
doubt it
<bradland>
i thought PCRE was turing complete, or some such thing
<certainty>
workmad3: :) i
Guest31 has joined #ruby
Guest31 is now known as grios
<shevy>
oh I am so dumb... Regexp.quote() returns a string, not a regex
jenrzzz has quit [Ping timeout: 244 seconds]
<eam>
bradland: nope, not that it really matters
melik_ has quit [Quit: (null)]
paulfm has quit [Read error: Connection reset by peer]
<certainty>
bradland: no it is not. for example you can't count with regexp
paulfm has joined #ruby
delianides has joined #ruby
delianides has quit [Remote host closed the connection]
<bradland>
i know just enough regex to get by
<workmad3>
eam: or, put another way "Thankfully, regexp isn't turing complete"
<apeiros_>
certainty: but you can match (recognize) primes with it :D
hmsimha has quit [Ping timeout: 252 seconds]
<apeiros_>
I wouldn't wonder if perl's regex engine actually was turing complete. afaik you can execute code within it
<certainty>
it probably is
<eam>
that is assuming we're excluding language features like (??{})
meschi has quit [Ping timeout: 244 seconds]
kasperti_ has joined #ruby
LekeFly has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
<eam>
which is eval in regex
<certainty>
apeiros_: inside the regexp or in things like substitutions?
s00pcan_ has quit [Remote host closed the connection]
<bradland>
heh, that’s cheating
bitcycle_ has joined #ruby
<eam>
certainty: perldoc perlre, look for "(??{ code })"
ddd has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<certainty>
eam: i see. scary
arietis has quit [Read error: Connection reset by peer]
<eam>
or "(?{ code })"
s00pcan_ has joined #ruby
<eam>
but it's an experimental feature
paulfm has quit [Client Quit]
<eam>
no reason ruby couldn't implement that, though
renderfu_ has quit [Remote host closed the connection]
<eam>
but it's not part of pcre (which is somewhat independent from perl)
arup_r has quit [Quit: Leaving.]
<certainty>
i wonder how such features are justified
<eam>
they're useful?
djbkd has quit [Remote host closed the connection]
LekeFly has joined #ruby
<eam>
clearly pcre did something right, ruby copied it verbatim
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty>
eam: i rarely use regexp for anything complicated, so i might just not have come across a case where i wanted regexps so bad that i looked for something like this
<Dolphi>
bradland, Are you able to playtest it from GitHub?
havenwood has joined #ruby
<eam>
certainty: generally I'm in agreement
<bradland>
Dolphi: i can “clone” the repository to my computer and try to run it
<bradland>
however, i am on a mac, so game.exe won’t work for me
<Dolphi>
bradland, Alright. It's just the ship for now, so don't expect much.
<eam>
certainty: useful for debugging though
<workmad3>
bradland: 'brew install wine'? ;)
<Dolphi>
bradland, Does that mean that I can't run my game on OSX?
<bradland>
workmad3: not a chance in hell lol
<bradland>
Dolphi: not sure. you’re using RPG Maker XP?
bitcycle_ has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
<Dolphi>
Yes
<bradland>
i’m not famliar with that software, but i’ll have a look
fryguy9 has joined #ruby
meschi has joined #ruby
<Dolphi>
Well that would be stupid. :(
phutchins has quit [Ping timeout: 264 seconds]
<eam>
what's the best graphics library for ruby? say I want to create windows, surfaces, and do GL in a cross platform manner
beneggett has quit [Read error: Connection reset by peer]
<eam>
is rubysdl still current? or is there something better
<bradland>
Dolphi: looks like i’d have to install some Windows emulation stuff in order to run it.
metadave has joined #ruby
<certainty>
eam: yeah that's something i haven't thought of. That's true. OTOH if regexp get so complicated that i have to resort to some limeted form of debugging i usually try to break them apart and test the parts individually. Might be problematic in some cases though.
Kricir has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
<bradland>
Dolphi: when you go to github and look at your project, are all the files there?
<bradland>
i cloned the repo, but when i run Game.exe, nothing happens
<bradland>
not sure if i’m missing files or something
whoisjake has joined #ruby
Takle_ has quit [Remote host closed the connection]
<chipotle>
sparr: yes, well, i know from the past experience sometimes you have to restart the computer if bash doesn't update
antgel has joined #ruby
<bradland>
sparr still having rbenv issues?
<chipotle>
but keep looking for another solution, whereas a restart takes 30 seconds
klaas_ is now known as klaas
athan has quit [Read error: Connection reset by peer]
<Dolphi>
bradland, All files as in resources and everything?
<certainty>
ah tinyschem
athan has joined #ruby
<bradland>
Dolphi: yeah.
phutchins has quit [Ping timeout: 264 seconds]
<ReinH>
restart the computer? Should be enough to create a new login session
<Dolphi>
bradland, I only uploaded the .exe for playtesting and the RPGMaker XP project file
<bradland>
ah, ok
<Dolphi>
bradland, No, I didn't include resources.
<Dolphi>
bradland, I have to?
<bradland>
dunno much about that software, so not sure
<bradland>
do you intend to open source the project?
<bradland>
if so, i’d upload everything
<bradland>
everything required to build/edit anyway
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
kurtf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
unreal has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
<certainty>
ReinH: you're the guy behind haskelllive
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<certainty>
?
<ReinH>
certainty: yeah
<Dolphi>
Well I mean, I just want to create this game for experience, so I'm not sure that I want people doing the work for me
<Dolphi>
bradland, But I definitely don't mind sharing it.
<certainty>
ReinH: cool. I liked that :)
<workmad3>
Dolphi: it's unlikely the .exe contains all the embedded resources
<bradland>
Dolphi: the nice thing about github is that you control the repo, so no one could change your code without you approving the change.
<ReinH>
certainty: cool :)
<bradland>
and workmad3 is correct. the game.exe file is only 68 KB, which is too small to contain the entire game
<workmad3>
bradland: well, not necessarily too small... but very likely to be too small :)
<eam>
experience working collaboratively is even more valuable than experience in programming solo
blahwoop has quit [Remote host closed the connection]
<bradland>
you’ll want to go through whatever tutorials are available to make sure you’re building the game correctly.
momomomomo has joined #ruby
grn has joined #ruby
<certainty>
moar haskellers doing ruby... benzrf being another one and Mon_Quie ei think
DonOtreply has quit [Quit: DonOtreply]
<workmad3>
it's worth noting that putting compiled resources in a git repo don't make much sense either... more sensible would be to put in the rpgmaker sources, exclude the build directory
michaeldeol has joined #ruby
<grn>
Hi! Is there a way to include a source file in a Jekyll post? I'd like to keep sources separate from posts/pages.
<Dolphi>
workmad3, So I need to upload all files from my game to GitHub is what I understand. The game works perfectly on my computer, but I didn't include all of the files onto GitHub because I'm a newbie and I was unaware of this.
<nonnatus>
But you won’t believe how my sister is making $10,000 a month sitting at home. For more information go to legit.biz/not-a-scam.asp
ta_ has quit [Ping timeout: 255 seconds]
cobakobodob has quit [Ping timeout: 264 seconds]
livathinos has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
<mozzarella>
>asp >not .rb
timonv_ has joined #ruby
<mozzarella>
do you even ruby
anarang has joined #ruby
paulfm has joined #ruby
<bradland>
eam: last commit on rubygame is 2011
<bradland>
doesn’t look promising
<bradland>
fwiw, gosu has commits as of 2014-12
<nonnatus>
mozzarella: asp is just scummier, which was the point
<eam>
everyone who tried to use ruby for latency sensitive stuff switched to a different environment
timonv_ has quit [Client Quit]
<nonnatus>
mozzarella: besides, what kind of apps are you writing that have .rb in the url?
<eam>
require 'cgi'
<bradland>
cgi is the new hotness
<bradland>
… again
yfeldblum has joined #ruby
startupality has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
wolf4ood has quit [Quit: (null)]
slester has joined #ruby
hippobottamus has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
defrang has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
reset has joined #ruby
s00pcan_ has joined #ruby
Kricir has quit [Remote host closed the connection]
phutchins has joined #ruby
maximski has joined #ruby
Kricir has joined #ruby
rpag has joined #ruby
th3m4ri0 has joined #ruby
baweaver has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
Fusl has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
AlSquire has joined #ruby
Nameo0 has joined #ruby
codeFiend has quit [Quit: codeFiend]
blizzy has quit [Ping timeout: 264 seconds]
go4it has joined #ruby
rodfersou has quit [Quit: leaving]
Fusl has joined #ruby
x1337807x has joined #ruby
timonv_ has joined #ruby
hamakn has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
studiotate has joined #ruby
poetazus has joined #ruby
Guest31 has joined #ruby
josephnd1nton has joined #ruby
vdamewood has joined #ruby
nrsk has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
behrz has joined #ruby
behrz has quit [Client Quit]
AlexRussia has joined #ruby
th3m4ri0 has left #ruby [#ruby]
timonv_ has quit [Quit: Leaving...]
cobakobodob has joined #ruby
baweaver has quit [Remote host closed the connection]
timonv_ has joined #ruby
josephnd1nton has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
max96at is now known as max96at|off
<sparr>
bradland: yes. my rbenv doesn't seem to see my ~/.rbenv/version/* stuff
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
<bradland>
you want to do some troubleshooting?
elaptics is now known as elaptics`away
<sparr>
everything in my ~/.profile related to rbenv seems to have worked. my path has shims, RBENV_ROOT is set, all the other stuff in `rbenv init -` seems right
<sparr>
yes, I'd like to troubleshoot this if you can help
<bradland>
sure
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
at a shell, run: type rbenv
<sparr>
rbenv is a function
<bradland>
k, how about: rbenv which ruby
<sparr>
followed by the contents of the function produced at the end of `rbenv init -`
<sparr>
/usr/bin/ruby
<sparr>
(the only version that rbenv knows about is my system version)
<bradland>
so the output of `rbenv versions` includes only your system ruby?
<sparr>
yes
<sparr>
it previously listed the two versions I had installed via rbenv
sshao has quit [Read error: Connection reset by peer]
<sparr>
both of which still exist in ~/.rbenv/versions/
<bradland>
ok, i’m going to do some digging to see if i can see how rbenv builds that list
rkalfane has joined #ruby
codeFiend has joined #ruby
<bradland>
and if we can inject some troubleshooting output
sshao has joined #ruby
codeFiend has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
<bradland>
sparr: bleh, rbenv doesn’t contain nearly as much debugging instrumentation as RVM
anitchrist has joined #ruby
<sparr>
I'd strace it if I was on linux
djbkd has joined #ruby
<bradland>
run: echo $RBENV_ROOT
blackoperat has quit [Ping timeout: 240 seconds]
phantomtiger has joined #ruby
<bradland>
if that works, run: ls $RBENV_ROOT
Kricir has quit [Remote host closed the connection]
<bradland>
rbenv versions is dead simple
<sparr>
# ls $RBENV_ROOT
<sparr>
shimsversions
<Senjai>
sparr: I would imagine looking through the code would be better than running strace.
<sparr>
it's /usr/local/var/rbenv
<sparr>
Senjai: can you point me to the code in question?
valeriansaliou has quit [Read error: Connection reset by peer]
pdoherty has quit [Remote host closed the connection]
Hijiri has joined #ruby
ta_ has joined #ruby
valeriansaliou has joined #ruby
pdoherty has joined #ruby
lessless has joined #ruby
Sawbones_ has joined #ruby
Sid05 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
Kricir has joined #ruby
fandi has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
agent_white has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 244 seconds]
<dfinninger>
question about function arguments: I have a function with the following signature: cmd = Mixlib::ShellOut.new(command, :user => user, :cwd => dir, :env => env, :input => input)
<dfinninger>
can a programmatically set those last few arguments?
Sawbones_ has quit [Ping timeout: 255 seconds]
stunder has joined #ruby
<dfinninger>
Like, im yeilding those args in a block, and if the user doesn't set them, they are nil. Shellout doesn't like nil values for those
dfghdfghfgh has joined #ruby
dfghdfghfgh has left #ruby [#ruby]
Tricon has quit [Ping timeout: 240 seconds]
<dfinninger>
no, wait, I am so dumb, nevermind
hmsimha has joined #ruby
baweaver has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
pen has quit [Remote host closed the connection]
pen has joined #ruby
chrishough has joined #ruby
baweaver has quit [Remote host closed the connection]
tjbiddle has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
blahwoop has joined #ruby
valeriansaliou has joined #ruby
someguy has joined #ruby
s00pcan_ has joined #ruby
<sparr>
my /usr/local/bin/bundle starts with #!/usr/local/opt/ruby/bin/ruby and "# This file was generated by RubyGems.". Ruby doesn't exist in that location, so I think this is an artifact of a previous install. How should I be installing bundler along with rbenv?
sambao21 has joined #ruby
sargas has joined #ruby
<someguy>
Does anyone know the difference (if any) between driver.navigate.to 'url' and driver.get 'url' in selenium?
phutchins has joined #ruby
pen has quit [Ping timeout: 256 seconds]
pen has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
aswen has quit [Ping timeout: 245 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
spyderma_ has joined #ruby
pwnz0r has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
athan has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
spyderm__ has joined #ruby
linguini has joined #ruby
roolo has joined #ruby
phutchin1 has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
s00pcan_ has quit [Remote host closed the connection]
startupality has joined #ruby
momomomomo has joined #ruby
Takle has quit [Remote host closed the connection]
spyderma_ has quit [Ping timeout: 252 seconds]
s00pcan_ has joined #ruby
Nameo0 has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<linguini>
URI.decode_www_form("&x=y") # works in ruby 2.1, but fails in ruby 1.9
valeriansaliou has joined #ruby
metadave has joined #ruby
Kricir has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<linguini>
Is this a bug in ruby 1.9, or is "&x=y" invalid ?
s00pcan_ has joined #ruby
<sparr>
`rbenv version` says I'm using 2.1.2 set by my current project. `ruby -v` is 2.1.2. `~/.rbenv/versions/2.1.2/bin/gem -v` is 2.2.2, which I think is right. However, `gem -v` is 2.0.14, and I have no idea why the wrong version of gem is being run by the shim.
havenwood has quit []
bronson has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
hiyosi has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has quit [Remote host closed the connection]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
nanoyak has joined #ruby
codeFiend has joined #ruby
gtrak has joined #ruby
paulfm has joined #ruby
studiotate has joined #ruby
blackoperat has joined #ruby
Ankhers has quit [Remote host closed the connection]
Tricon has joined #ruby
baweaver has joined #ruby
codeFiend has quit [Client Quit]
thumpba has joined #ruby
hamakn has joined #ruby
startupality has quit [Quit: startupality]
teddyp1cker has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jheg has joined #ruby
poetazus has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
studiotate has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland>
should tell you which gem executable is being selected
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
paulfm has quit [Quit: Zzzzz...]
troyreadyy has quit [Quit: Leaving]
jds has quit [Quit: Connection closed for inactivity]
anarang has quit [Quit: Leaving]
it0a has quit [Ping timeout: 240 seconds]
LekeFly has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<sparr>
needed to `rbenv rehash`
<sparr>
this is really frustrating :/
s00pcan_ has joined #ruby
troyready has joined #ruby
<bradland>
this is why i don’t use rbenv
x1337807x has joined #ruby
ta_ has joined #ruby
<shevy>
use the source!
lmickh has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<jhass>
we all do shevy
Ankhers has joined #ruby
codeFiend has joined #ruby
<shevy>
it is always a problem when you have multiple different rubies in multiple different locations with multiple different assumptions as to where something has to be installed or not
<jhass>
I disagree
<shevy>
what do you use for your ruby jhass
<jhass>
chruby + pacman
<bradland>
not if your version manager is competent
<shevy>
ah so you use default packages
hamakn has quit [Remote host closed the connection]
function90 has joined #ruby
<jhass>
what are "default packages"?
<bradland>
he means system packages
<shevy>
one compiled by someone else going into the /usr hierarchery
<shevy>
erm *hierarchy
michaeldeol has joined #ruby
<jhass>
only for the most recent one
<shevy>
don't deny it!
bitcycle_ has quit [Ping timeout: 256 seconds]
<jhass>
the AUR packages for 1.9, 2.0 and 2.1 are maintained by me and install to /opt/rubyXX
<shevy>
ack
<jhass>
and AUR packages are actually build on your system
<shevy>
ack ack
yfeldblum has quit [Remote host closed the connection]
<shevy>
but I only want to scan for a specific line there, and not download the rest
sonOfRa_ is now known as sonOfRa
paulfm has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
jordonbiondo has joined #ruby
<bradland>
what net library are you using?
<shevy>
is there a way to do a, like, read only up to that specific part, and then quit? If I do open(URL).read with open-uri then I think I read it all
<shevy>
open-uri
Photism_ has joined #ruby
<bradland>
use the block form instead of #read
<baweaver>
well you're getting the entire thing in request anyways
whoisjake has quit []
poetazus has joined #ruby
<shevy>
I have to do a scanning operation for some users, and then perform some other scripts, and have to query often. the dataset is in the middle of the page, so the other 50% is quite useless to me
poetazus has quit [Remote host closed the connection]
<baweaver>
if you really want to you can use a flip flop
<Solnse>
does anybody have a solution for capturing and decoding MTOM attachments in a SOAP response? I'm using Savon but savon-multipart is not working for me. I'm trying to grab a binary attachment and save it.
<jhass>
in most cases instead of ^ you want \A
<baweaver>
anitchrist: read up on rubular
<Patt>
it installed :s
allcentury has quit [Ping timeout: 244 seconds]
<baweaver>
^ and $ are touchy with newlines
<baweaver>
so yeah, old habits on me.
<Patt>
To start using RVM you need to run `source /Users/Patt/.rvm/scripts/rvm`
<bradland>
Patt: ok, so, even with rvm installed, it must be loaded in your shell or it won't work
<anitchrist>
baweaver, there is no way to make a "string" include the . as a everything instead of part of the string? like do I need "string\." or something ?
<bradland>
ok, start an entirely new terminal window and run: type rvm
<baweaver>
yep
<baweaver>
escape the character
<baweaver>
I'd just google ruby regex tutorial
C1V0 has joined #ruby
<bradland>
Patt: run this instead: type rvm | head -n1
<baweaver>
faster
sankaber has quit [Ping timeout: 255 seconds]
<Patt>
= rvm
<bradland>
ok, it's not loaded
<jhass>
anitchrist: btw if you want better advice start describing your problem instead of the solution you wish for
aclearman037 has quit [Quit: I'm out!]
<bradland>
when you installed RVM, the end of the output instructs you to add somethign to your bash profile
<bradland>
you have to add that
<Patt>
had to mention of that
<Patt>
:s
sankaber has joined #ruby
<Patt>
said thanks for using RVM
djbkd has joined #ruby
pen has quit [Remote host closed the connection]
<Patt>
rvm -v gives me: rvm 1.26.9 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
<anitchrist>
jhass: I have a get(has) down to the point its only printing the key I'm wanting to see
<bradland>
Patt: ok, cool.
<jhass>
what's a "get(has)"?
<anitchrist>
I have values that I don't want to see like, bacon or poop
<bradland>
Patt: run: rvm list known
<anitchrist>
get(hash)
leafybasil has quit [Remote host closed the connection]
<anitchrist>
no need I will just find some real experience maybe it will be my own that I find, but thanks for the "help" jhass
decoponio has quit [Read error: Connection reset by peer]
<Patt>
damn i wanted to do it command line way
<Patt>
sounds more fun lol
<bradland>
Patt: you can using various rvm commands
<bradland>
rvm list
<bradland>
rvm gemsets list
<Patt>
so basically i wanted to install bootstrap and play with sass, so i read i had to have ruby
someguy has quit [Quit: Page closed]
<bradland>
that rvm website is full of information
paulfm has quit [Quit: Zzzzz...]
<bradland>
read the overview pages on rubies and gemsets
decoponio has joined #ruby
wkmanire has left #ruby ["ERC (IRC client for Emacs 25.0.50.2)"]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Patt>
shall do, just trying to work out what i was doing in the first place
oddraisi1 has quit [Ping timeout: 240 seconds]
<bradland>
Patt: sure thing
<Patt>
not sure why i needed node
<Patt>
i installed that for some reason :s
mleung has quit [Ping timeout: 256 seconds]
<jhass>
anitchrist: in my experience seeing alternate implementations of something you thought through and implemented already helps a lot on the "getting real experience" part ;)
<Patt>
bootstrap requires ruby right?
<Patt>
according to the installation guides i have been using
mikecmpbll has joined #ruby
oddraisin has joined #ruby
nicolastarzia has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
baweaver has quit [Remote host closed the connection]
valeriansaliou has quit [Read error: Connection reset by peer]
<bradland>
you don't need Sass/SCSS
<Patt>
i started using sass first
<Patt>
with ruby on windows
<bradland>
Patt: your list is empty because you don't have any rubies installed
<Patt>
that took the piss
<Patt>
thats fine
<Patt>
for now
beneggett has quit [Ping timeout: 264 seconds]
<Patt>
its the path thing thats confusing me much
<Patt>
why some are the same and some are not
hephaestus_rg has joined #ruby
<jalcine>
life
valeriansaliou has joined #ruby
<Patt>
lol
<bradland>
Patt: you'll want to understand what PATH is, then it will make sense
s00pcan_ has quit [Remote host closed the connection]
<bradland>
when you type command like, cd, ls, or ruby, you are executing a file
<bradland>
the question is, where is that file?
michaeldeol has joined #ruby
<bradland>
the PATH is a collection of folders that your operating system will search any time you issue a command at a shell prompt
<Patt>
typed $PATH
<bradland>
try echo $PATH
<bradland>
instead
maletor has quit [Quit: Computer has gone to sleep.]
<bradland>
$PATH is a shell variable
<bradland>
when you type it, you're telling bash to execute whatever is containted in that variable
omosoj has joined #ruby
<bradland>
which will result in an error, because the contents of $PATH aren't executable by bash
baltazor_ has quit [Read error: Connection reset by peer]
<bradland>
$PATH contains a list of directories separated by a semi-colon
michaeldeol has quit [Client Quit]
rbennacer has joined #ruby
baltazore has joined #ruby
<bradland>
when you issue a command at your shell prompt, bash searches through each of those folders (in order) looking for a file with a matching name
<bradland>
does that make sense, Patt?
<Patt>
just reading 1 sec
<Patt>
so like an array of paths
<Patt>
to search
Ankhers has quit [Remote host closed the connection]
<bradland>
exactly
<Patt>
this is mine: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Patt/.rvm/bin
delianides has quit [Remote host closed the connection]
<Patt>
u make this easier, u should do teaching
<bradland>
i do a bit of instructing :)
<Patt>
i noticed not all are in /usr/local/bin/
mleung has joined #ruby
<bradland>
right
ta_ has joined #ruby
<Patt>
that normal ?
<bradland>
the directory /usr/local is a special directory
<bradland>
in general, you should check either `<command> —help` or `man command` before executing a command with a switch
<bradland>
so you know what will happen
x1337807x has joined #ruby
<Patt>
am more of a trial and error guy
<Patt>
break it first
ptrrr has quit [Quit: ptrrr]
soxet has quit [Quit: Leaving]
<Patt>
then learn from the mistakes
<Patt>
not the best way
athan has joined #ruby
zorak8 has joined #ruby
hamakn has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
LouisRoR has quit [Ping timeout: 252 seconds]
codecop has quit [Quit: Išeinu]
<bradland>
heh, hard to remain employed while using that strategy
<Patt>
i need a new 1
<Patt>
strat
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Patt>
you dont use node do you?
<Patt>
npm install ?
kevr_ has quit [Changing host]
kevr_ has joined #ruby
kevr_ is now known as kevr
bMalum has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
<nunayerBeezwax>
so i'm running a .map on an array, and that breaks on nil values... when i google around i keep running into ".compact", but in my case (I'm working with csv's into db columns) i can't change the length of the arrays or the columns won't match. what is the correct way to deal with nil's so you don't break loops, without removing them entirely?
sargas has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
<bradland>
Patt: negative, i do not.
<Patt>
ok np
<Patt>
stick with ruby for now
<bradland>
nunayerBeezwax: inside your block, use a conditional to skip over nils
emmesswhy has quit [Read error: Connection reset by peer]
<Patt>
when the gems are installed, they are global and accessed from any folder?
<bradland>
Patt: with rvm, it depends on the gemset
mrmargolis has quit [Remote host closed the connection]
^wald0 has joined #ruby
<bradland>
oh man
wm3|away is now known as workmad3
<bradland>
please do not do that lol
<wallerdev>
lol
s00pcan_ has joined #ruby
<bradland>
talk about giving us plenty of rope with which to hang ourselves ;)
fryguy91 has joined #ruby
<Mongey>
Does anyone know how I could get rack miniprofiler to work with grape ?
s00pcan_ has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Rickmasta has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
AmBienCeD_ has joined #ruby
<omosoj>
to sublime text 3 users - how do the file tabs work? somtimes when i click on a file a new tab is created, sometimes it overwrites the tab i'm using
sshao has quit [Read error: Connection reset by peer]
AmBienCeD_ has quit [Read error: Connection reset by peer]
sshao_ has joined #ruby
<wallerdev>
im not a fan of sublime
<bradland>
omosoj: click a file once, and you get a preview of the file. you have to double-click for it to open completely.
<wallerdev>
just thought id throw out that helpful comment
<wallerdev>
lol
fryguy9 has quit [Ping timeout: 264 seconds]
<bradland>
so what you're probably seeing is the preview disappear
<bradland>
although, I use ST2, so it could be different
<omosoj>
bradland, ohh, that makes sense :)
parduse has quit []
djbkd has joined #ruby
<omosoj>
(that's why the file name is italicized in the tab header)
tkuchiki has joined #ruby
defrang has joined #ruby
AmBienCeD has quit [Ping timeout: 265 seconds]
<jheg>
bradland: omosoj: click a file once, and you get a preview of the file. you have to double-click for it to open completely.
devdazed has quit [Quit: Computer has gone to sleep.]
<bradland>
Mongey: have you tried putting `use Rack::MiniProfiler` in your config.ru ?
<jheg>
or just type something in the file
Porpado has quit [Quit: Porpado]
baweaver has joined #ruby
<bradland>
Mongey: you'll need to put it before the `run` invocation for your app
<Mongey>
bradland: thanks!
<omosoj>
bradland, do you use ctrl-tab and ctrl-alt-tab to shift between tabs?
Porpado has joined #ruby
<bradland>
that's how the Grape documentation suggests using Active Record
<bradland>
omosoj: I use cmd+alt and the arrow keys
s00pcan has joined #ruby
baltazor_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
baltazore has joined #ruby
<bradland>
if you're on windows, it'll probably be different
maletor has quit [Quit: Computer has gone to sleep.]
<omosoj>
bradland, hm, i'm on linux, ctrl-alt arrow moves between workspaces here.
<bradland>
yeah, you'll want to use the ctrl-tab variant
j2p2 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
<omosoj>
in firefox/chrome ctrl-tab & ctrl-alt-tab go forward and back through tabs, but in ST3 it jumps between tabs... maybe it goes back and forth by chronology or something, idk, but it's def not by tab position
<jheg>
didn’t know about those nice :)
tkuchiki has joined #ruby
fryguy91 is now known as fryguy9
<bradland>
mostly, i use cmd+t, because i find it faster to just bang out a few letters than to flip through a stack
<omosoj>
jheg, ah, thakn you for your response. didn't see it. just set up my irc client need to finish customizing so i can see mentions that aren't at the beginning of the line
nanoyak_ has quit [Quit: Computer has gone to sleep.]
pdoherty has quit [Remote host closed the connection]
<jheg>
np :)
ta_ has quit [Ping timeout: 256 seconds]
<jheg>
I love ST2 especially with the Monokai theme
sargas has quit [Quit: This computer has gone to sleep]
kasperti_ has quit []
<omosoj>
yeah i have monokai too
x1337807x has quit [Ping timeout: 265 seconds]
dfinninger has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
tkuchiki has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Quit: Leaving.]
zorak8 has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
Dolphi has quit [Quit: Leaving]
nanoyak has quit [Remote host closed the connection]
<tubuliferous>
Monokai was a bit intense for me...
s00pcan has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
<tubuliferous>
I modified the theme slightly for ST3
codefo has joined #ruby
ta_ has joined #ruby
enebo has quit [Quit: enebo]
maletor has joined #ruby
sambao21 has joined #ruby
Sawbones has joined #ruby
SilkFox_ has joined #ruby
Musashi007 has joined #ruby
Hijiri has joined #ruby
momomomomo has joined #ruby
x77686d has quit [Ping timeout: 264 seconds]
baltazore has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
baltazore has joined #ruby
x77686d has joined #ruby
momomomomo has quit [Client Quit]
zorak8 has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 264 seconds]
gregf has quit [Quit: WeeChat 1.0.1]
bMalum has quit [Quit: bMalum]
s00pcan has joined #ruby
pwnz0r has joined #ruby
s00pcan_ has joined #ruby
olivier_bK has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 244 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
<polyzen>
ruby-toolbox is ftw, but is there anything better for the same job?
Musashi007 has quit [Quit: Musashi007]
timonv_ has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
mjuszczak has joined #ruby
stunder has quit [Quit: Leaving]
jenrzzz has joined #ruby
gsd has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
<GaryOak_>
polyzen: you mean the website?
s00pcan has quit [Read error: No route to host]
Solnse has quit [Quit: Page closed]
Guest63719 has joined #ruby
Guest63719 has quit [Client Quit]
<polyzen>
GaryOak_, yes
<GaryOak_>
polyzen: what else would you want it to do?
<GaryOak_>
most languages barely have something like that
livingstn has quit []
<nunayerBeezwax>
if i want to execute a certain line of code only on the first iteration of a loop (in my case it's a CSV.parse loop, so I can't use 'each_with_index', right?)... i am able to do a conditional "do this stuff if $. == 0", because "$." refers to the current line number, which, the first time through the loop is supposed to be 0 right? when i put a binding.pry in the loop, the first time through "$." is reportin
<nunayerBeezwax>
g the total number of lines (71), rather than the current line. does this make sense? anybody know about this?
jordsmi has joined #ruby
s00pcan has joined #ruby
s00pcan_ has joined #ruby
<bradland>
nunayerBeezwax: I think $. doesn't contain what you expect because you're using CSV#parse, which accepts a string.
<bradland>
$. only works with file descriptors
<bradland>
where are you getting the CSV data? from a file?
adriancb has quit [Remote host closed the connection]
<bradland>
nunayerBeezwax: have a look at CSV.foreach(filepath)
valeriansaliou has quit [Read error: Connection reset by peer]