sdwrage_ has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
tkuchiki has joined #ruby
ringarin has quit [Ping timeout: 264 seconds]
jhwhite has left #ruby [#ruby]
Bira has joined #ruby
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
n_blownapart has quit []
beneggett has quit [Ping timeout: 265 seconds]
jack_rabbit has joined #ruby
byprdct has joined #ruby
vectra has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
sdwrage has joined #ruby
gsd has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
Beoran has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
nkumari has joined #ruby
st1gma1 has quit [Read error: Connection reset by peer]
st1gma1 has joined #ruby
sibchcoder has joined #ruby
* jhass
still thinks "%.2f€" % [0.123] is most likely enough for him
bricker`work has joined #ruby
nkumari has quit [Remote host closed the connection]
toretore has joined #ruby
nkumari has joined #ruby
MattB2 has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
mathias3 has joined #ruby
glaksmono has joined #ruby
jonr22 has quit [Remote host closed the connection]
philwantsfish has joined #ruby
nkumari has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 265 seconds]
mathias3 has quit [Ping timeout: 264 seconds]
Beoran has joined #ruby
cleopatra has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
gsd has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
gsd has joined #ruby
teddyp1cker has joined #ruby
dc_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
glaksmono has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 258 seconds]
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
toretore has joined #ruby
glaksmono has joined #ruby
teddyp1cker has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Takle has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 256 seconds]
tastycode has joined #ruby
banana-socks has quit [Quit: Page closed]
tjsousa has joined #ruby
jaequery has joined #ruby
<tastycode>
If I needed to override Kernel#fail, should i alias out raise or fail? documentation seems clear, I would suspect override raise (since its rb_f_raise) and fail is just aliased to raise ?
spastorino has quit [Quit: Connection closed for inactivity]
tkuchiki has quit [Remote host closed the connection]
<graft>
wat
<jaequery>
hi guys, what's the best way to do something like this? test = if_empty(something['a']['b']['c']) ? 'it is empty' : something['a']['b']['c'] ?? any way to make that cleaner and more ruby like?
tkuchiki has joined #ruby
Azure has joined #ruby
sibchcoder has quit [Ping timeout: 264 seconds]
baweaver has quit [Read error: Connection reset by peer]
sinequanon has quit []
<waxjar>
jaequery: what do you mean by empty?
emanu has joined #ruby
baweaver has joined #ruby
<graft>
jaequery: something['a']['b']['c'] is asking for a nil nomethoderror
tokik has joined #ruby
oo_ has joined #ruby
uptownhr has joined #ruby
pglombar_ has quit []
sdwrage has joined #ruby
<jaequery>
grat: so , how would you do it?
sibchcoder has joined #ruby
arescorpio has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
danijoo has joined #ruby
<graft>
jaequery: it would help if i had more context. why are you storing things in a nested hash anyway?
tkuchiki has quit [Ping timeout: 272 seconds]
<graft>
jaequery: that's probably your first mistake.
arescorpio has quit [Remote host closed the connection]
<jaequery>
i just have data = fetch_data_from_api() , and im structuring output with it: company = { :name => data['company']['name'] } , but sometimes, company might not be there
nfk has quit [Quit: yawn]
adriancb has quit [Remote host closed the connection]
ThaDick has joined #ruby
<graft>
jaequery: so what's the proper behavior if company is not there?
<tastycode>
you could make the argument that some object is going to be deeply coupled into the structure of that hash .. and you should have some sort of other object managing the concerns of the structure of that hash and insulating the system using that against uncertainties about the hash structure
lemur has quit [Ping timeout: 258 seconds]
<jaequery>
just be empty string , even null would be fine as long as it don't halt the code
reinaldob has quit [Remote host closed the connection]
<jhass>
tastycode: curios, why do you need to override Kernel#fail?
<graft>
jaequery: so in that case, company = { :name => nil }?
<jaequery>
yes
blackmes1 has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
<graft>
jaequery: why not do company = Company.new data['company'] ?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jaequery>
i just have a very simple output i want it to look, and, i dont wanna create a codebase full of if/else checks, i wanna do it all inline in the output hash im building
olivier_bK has quit [Ping timeout: 272 seconds]
<graft>
jaequery: well, you can do that, but that's probably the wrong way to do things
echooo has joined #ruby
<graft>
jaequery: your code will be shit, it will break all the time, and people who have to maintain it after you will curse your name
<jaequery>
i wanna just do something like this:
<jaequery>
how bout like, res = { :name => get_stuff_if_exists (data['company'], '') , where second param makes it default to empty
mikecmpbll has quit [Quit: ciao.]
<jaequery>
how woudl i go about creating the get_stuff_if_exists ?
<graft>
jaequery: again, you clearly want an object, not a bare hash
<tastycode>
it would be easier to just put a whole bunch of stuff double checking the structure of the hash.. but that would leak details about the structure of the hash into the system using it… it would be better designed to have an object manage that hash
<graft>
jaequery: why NOT put this stuff in an object with validations? You obviously want the validations
<jaequery>
graft: because data im getting is not reliable, data could keep changing, i can't update validation code every single time it updates or it will break our codebase middle of night
baweaver has quit [Remote host closed the connection]
QKO has joined #ruby
<jaequery>
it's a remote data source i have no control over
<tastycode>
jaequery: if you do something like this:: class CompanyResponse; def initialize(data); @data = data; end; def company; @data[‘company’] || {}; end; def name; company[‘name’]; end; end;
<graft>
jaequery: it's not better that way, it's worse
<tastycode>
jaequery: then you’ll only have to account for uncertainty in CompanyResponse… not in the rest of your system
reinaldob has quit [Ping timeout: 256 seconds]
<tastycode>
you would be isolating the crapiness.. instead of letting it leak
<graft>
jaequery: if they change the format upstream, your code base will break no matter what. you can build the appropriate behavior into your classes, but there's no reason not to use classes to structure the entities you want to manage
iamjarvo has joined #ruby
<jaequery>
graft: not true, but point taken
iamjarvo has quit [Max SendQ exceeded]
nb_bez___ has joined #ruby
<jhass>
lol
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
arescorpio has joined #ruby
iamjarvo has joined #ruby
jimbach has quit [Remote host closed the connection]
Bira has joined #ruby
tkuchiki has joined #ruby
<graft>
jaequery: if you have a remote data source that you have no control over, you should want to protect yourself as much as possible, not hard-code things so they crawl deep into whatever hash structure they happen to be spitting out this week
giuseppesolinas has quit [Quit: This computer has gone to sleep]
foureight84 has joined #ruby
<pontiki>
^ +1
giuseppesolinas has joined #ruby
<pontiki>
protect your application from the outside; guard the borders lest you have boarders!
<jaequery>
im scraping html from sites
<jaequery>
and its not mission critical that sometimes it defaults to empty string if something got updated but like you said, point taken
anaeem1 has joined #ruby
<graft>
jaequery: in general the way you want to do data transformations is not A => B, it's A => model => B. That way, before you write B, you can check that it makes sense. You can also then just write model => C and get A => model => C for free.
<jaequery>
i dont wanna store data, i wanna output data, i have nothing to do with database FYI
<uptownhr>
so you against nosql?
shazaum has quit [Quit: Leaving]
<graft>
i mean store as in, represent in memory
x77686d has quit [Quit: x77686d]
razieliyo has quit [Quit: Saliendo]
<graft>
your code will quickly become impossible to follow
<uptownhr>
IMO, the NilClass example from that stackoverflow should have been the default for ruby
michaeldeol has joined #ruby
<godd2>
graft not if he's super duper smart
<graft>
uptownhr: why? nil is nil for a reason! it's supposed to be nil
<jaequery>
im curious, does this look hard to read? { name: data['company']['name'] || 'some name' }
robustus has quit [Ping timeout: 255 seconds]
<uptownhr>
and it still returns nil
<uptownhr>
instead of erroring out
<uptownhr>
you should try it
<uptownhr>
makes a lot of sense
<shevy>
jaequery yeah hard to read; it's always a problem if you have two conditions on the same line to test
<graft>
i'd rather subclass Hash than patch nil
<jhass>
uptownhr: you confuse the null pattern with nil
<uptownhr>
jhass: please explain
<dkphenom>
if i have a hash of arrays like this: array = {"name" => ["jason", "brandon"]}, how can I output it so that I have name: on one line and then both names on each separate line using a .each?
<godd2>
uptownhr null pattern makes a special nil for a given class
alexherbo2 has joined #ruby
<jhass>
^ and nil represents the absence of any object
marr has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
<godd2>
It solves the problem of being able to add methods to nil without affecting the rest of the system which relies on how nil mornally behaves
<shevy>
the magic of nil
tjsousa has quit [Quit: (null)]
woven has quit [Quit: Leaving]
<pontiki>
i feel like avdi's shill here, but avdi has an interesting monograph "Much Ado about Naught" about null patterning. he goes *deep* and i don't think it's all that *practical*, but it's and interesting read
<pontiki>
but my infinity is bigger than your infinity, so nyah
<uptownhr>
can someone please expalin...
<uptownhr>
i don't want to read or watch all this
<uptownhr>
for simplicity sake
<jaequery>
its okay guys .. like i said, only i have this sort of problem ... i am good at running into these type of things
<uptownhr>
wouldn't it nice to check if something exists by just typing it?
<shevy>
if you got a nil you ain't got much uptownhr
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tastycode>
I basically have 100s of “fail ‘some random string’” .. and i’m trying to patch it all in one go by inferring or generating a class at runtime
<godd2>
uptownhr I assure you that youtube vid I sent is worth watching and it will provide a better explanation of the null object pattern than any one of us could try to explain to you in irc
<shevy>
uptownhr there are much more interesting videos to watch!
<tastycode>
uptownhr: I agree with godd2
jenrzzz has joined #ruby
Joufflu_ has joined #ruby
<jhass>
tastycode: I would probably opt for including only into the affected classes & custom method name
<uptownhr>
im' wqatching
<uptownhr>
but i don't like that guy, he is wearing green
<tastycode>
its alll the damn classes in the project :/
<pontiki>
the problem arises, still when ['a'] does not exist, or if it does, ['b'] does not exist, and so on, down the chain
pdtpatrick_ has quit [Quit: pdtpatrick_]
<uptownhr>
yes
Joufflu has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
<tastycode>
you could easily even do class NullHash < Null; def [](key); self; end; end … if you do that, and you initialize the default for hash .. e.g. company = Hash.new(NullHash.new); then you can do company[“name”][“address”][“whatever”][“you”][“want”].nil? => true
<jaequery>
i guess the language itself just can't do it
wolflee has quit [Read error: Connection reset by peer]
<jaequery>
so i will look at re-arranging my code to better suit it
bricker`work has quit [Ping timeout: 264 seconds]
wolflee has joined #ruby
<jaequery>
i will have to validate check every single data levels
<pontiki>
by the time you've written `data['a']['b']['c']` you're already evaluating it
<godd2>
jaequery thanks to the Church-Turning thesis, any language can do anything any other language can do :)
<pontiki>
there you go
Dreamer3__ has quit [Max SendQ exceeded]
<jaequery>
the data i have is like 10 levels deep, im dealing with lots of data
<jaequery>
gonna be a fun night
<tastycode>
jaequery: i gave you an example that would work. for your case.. give you exactly what you want.. also, check out uptownhr’s crazy extension he just mentioned.. it would work for you too
chipotle has joined #ruby
<pontiki>
isolate it, put in it's own library / class, keep it away from the application
<jaequery>
tastycode: well i will do it the right way, hacking a class is not my forte
<pontiki>
ensure the application gets what it needs
agent_white has quit [Read error: Connection reset by peer]
<pontiki>
protect the borders!!
<tastycode>
uptownhr’s is a hack, .. mine doesn’t patch anything
seitensei has quit [Read error: Connection reset by peer]
<jaequery>
gonna be a file with alteast 2,000 lines of code atleast for this type of validation
fabrice31 has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
agent_white has joined #ruby
<uptownhr>
tastycode: i agree. someone should have answered with this earlier
<pontiki>
there are likely many places where there are patterns
Xiti` has joined #ruby
<jaequery>
wish me luck
<tastycode>
good luck!!
robbyoconnor has quit [Max SendQ exceeded]
<godd2>
uptownhr you can do it any way you want, I just want you to be informed about the different ways so you can choose the best one for you :)
<jaequery>
damn this gonna be fun
seitensei has joined #ruby
robbyoconnor has joined #ruby
Dreamer3 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
<tastycode>
jaequery: we gave you plenty of tools to give you exactly what you need to do without very much code.. i just don’t think you were willing to critically listen, and you just want a 1 liner that’ll just give you what you want.. its just not that simple..
Xiti` has quit [Client Quit]
Xiti has quit [Ping timeout: 264 seconds]
wolflee_ has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
<jaequery>
tastycode: i get what you are saying , thanks for the kind help
aspiers has joined #ruby
<pipework>
pontiki: Successfully met havenwood and was simultaneously blown away by how awesome truffle and graal are.
hamakn has quit [Remote host closed the connection]
<tastycode>
jaequery: no matter what you access on @data, it will chain without error.. and no objects were patched! .. good reason to move the data handling to its own class
<pontiki>
pipework: who/what/where are truffle and graal?
<waxjar>
things that are gonna make jruby crazy fast if i understood it correctly
it0a has joined #ruby
<pipework>
waxjar: Well, Graal makes ruby and C crazy. Jruby merged truffle though.
econerd4ever has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<jhass>
tastycode: puts x.inpsect -> p x ;)
<headius>
pipework: glad to hear you were impressed
econerd4ever has joined #ruby
<pipework>
headius: Yeah! Were you in the room?
<headius>
both jruby proper and jruby+truffle will be working toward more ruby in core and leveraging each others strengths over the next year
<pipework>
I think you're at rubyconf, bu cannot confirm.
hamakn has quit [Ping timeout: 240 seconds]
<headius>
sure, we had to be there to support chrisseaton :-)
<headius>
he did an excellent job
<pipework>
headius: Neat! I'll be at the jruby stuff. He was fantastic.
<headius>
we've been out of the conf most of the day to finish our talk for tomorrow
<tastycode>
jhass: i know.. i don’t know why i did that.. i’ve been in a weird state not remembering what rails gives me and what ruby gives.. i can’t quite figure out who provides “y”
<godd2>
"working towards" "leveraging strengths" sound like I'm at a meeting
<pipework>
Made me more excited about ruby than keynote.
<pipework>
godd2: It's the language of people who do work.
<jhass>
tastycode: just hang out here for a few months, that will cure that ;P
x77686d has joined #ruby
charliesome has quit [Quit: zzz]
<godd2>
it's the language of people who persuade investors
<headius>
godd2: we dun' gon' share mo' code, git 'er fast
<pipework>
headius: The C interpreter thing made me go all 90's "whoa, radicool!'
Takle has quit [Ping timeout: 240 seconds]
<headius>
pipework: that stuff is crazy...and chrisseaton believes it may even be possible for jruby proper to use it too
<headius>
it's going to be very interesting
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pipework>
Oh look chrisseaton is on IRC.
valeriansaliou has joined #ruby
<chrisseaton>
hello
<pontiki>
they're using those terms ironically, so it's okay
vinleod has joined #ruby
<pipework>
headius: If I were of any help whatsoever, I'd help out. But I'm no PHDer.
dermothaughey has joined #ruby
<pipework>
chrisseaton: Your talk was really awesome and you delivered it so well. havenwood and I were getting more and more excited as you kept telling us more and more amazing things.
rudisimo has quit [Remote host closed the connection]
<chrisseaton>
pipework: there's some issues tagged as beginner, and we're very happy to hold people's hands working through them if they want - Truffle is conceptually much simpler than other JITs - although in practice there are still some very tricky bits
econerd4ever has quit [Ping timeout: 258 seconds]
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
<godd2>
tastycode looks like Clojure
<tastycode>
lol.. semantically a little more like scala , but i could see how you might say that.. you could implement it in ruby. easily though
<jumparo>
is there a more thorough documentation? i don't really like the official docs, they're not detailed enough
<pontiki>
buy the pickaxe book
<jumparo>
i already have it
<pontiki>
there you go
<jumparo>
it's written in a manner that's not easy for me to understand
<jumparo>
maybe i'm not meant to be a programmer
<pontiki>
even so, the docs will always be more up to date
<pontiki>
it's not a primer on programming...
<godd2>
jumparo I can sympathize. But I made a goal for myself. I said two years ago that in two years I would know Ruby, and I do now
j_mcnally has joined #ruby
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jumparo>
godd2: i have a lot of things on my shoulders right now... some really wealthy individuals would like me to work with them, i'm young but i need to learn as much as i can as fast as i can
<jumparo>
i've been learning ruby for the last few months
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jumparo>
it's the hardest thing i've done in my life
oculus has joined #ruby
<godd2>
jumparo well we can all only learn so fast. but over time you will learn it if you immerse yourself. one day you'll wake up and not know why you never knew stuff!
<airdeluxe>
that looks like a good book, thanks for mentioning pontiki
sibchcoder has joined #ruby
rudisimo has joined #ruby
<jumparo>
jhass: the docs, in my opinion, are written for professional programmers who know every term
<pontiki>
this is generally how i learn something: read the docs, then try it out in pry, ask a question or two if i get stuck, and plow on until i get it, sometimes writing a full application to get the idea, then try to teach someone else
econerd4ever has quit [Remote host closed the connection]
<jumparo>
i will need to open a dictionary in order to understand the heightened language
zionpe has joined #ruby
<pontiki>
but i have a distinct advantage in this, as i'm starting from a large base of knowledge
<jhass>
jumparo: maybe you want something like chris pine's "learn to program"
<pontiki>
it's jargon, not heightened
rudisimo has quit [Remote host closed the connection]
<pontiki>
and sproul's "think like a programmer"
<jumparo>
pontiki: i've been stuck at one exercise for the last few hours
* pontiki
highly recommends both
<jumparo>
i gave up and looked at the answer
<jumparo>
jhass: i've already read that book
<pontiki>
that's always fair, if you work out why it's the answer
<jumparo>
i feel like i'm at the next level above that book, but i haven't found anything that caters to my current level
<godd2>
jumparo "a few hours" is not very much time. "a few weeks" is when you should start to worry
<pontiki>
programming is a skill, it's a skill of solving problems, puzzles, etc, with particular language syntax and semantics
<jumparo>
pontiki: right now my problem is expressing myself in ruby
<pontiki>
those places will help
<jumparo>
i know what i want to do and what logic i would like to implement
sibchcoder has quit [Remote host closed the connection]
dkb20k has joined #ruby
<godd2>
jumparo it doesnt matter what the problem is. everyone learns different things differently. I'm just saying remain optimistic :) and that a few hours is like, zero time to understand something
<jumparo>
godd2: thank you for the kind words of encouragement
<jumparo>
i am however going to a programming bootcamp
<pontiki>
i don't now what would help
<jumparo>
i don't know how they accepted me
<airdeluxe>
money?
<pontiki>
you gave them money?
<jumparo>
yeah, but it's not just money
<jumparo>
they have an application process before you give them money
<jumparo>
if they accept you you give them money
<airdeluxe>
stressing out in IRC isn't gonna help you mate, go outside and breathe some air
<airdeluxe>
you're fine
<jumparo>
thanks guys
<jumparo>
i love all of you :)
<godd2>
airdeluxe easy for you to say with all that deluxe air
<airdeluxe>
really digging ruby... on my second week
<jumparo>
so realistically how long did it guys take you to become proficient?
rudisimo has joined #ruby
<jumparo>
how did you learn?
<jumparo>
my biggest regret is not learning it earlier in life
mikepack has joined #ruby
<airdeluxe>
time, patience, sweat
<godd2>
jumparo I'm 28 and I didn't start learning how to program until I was 25/26.
<airdeluxe>
same here
<jumparo>
are you guys working for a company now?
testcore has quit [Remote host closed the connection]
<jumparo>
or doing your own thing? why did you decide to learn?
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<airdeluxe>
its how i money make
rudisimo has quit [Remote host closed the connection]
<jumparo>
thanks for exercism :P
<jumparo>
:)
<jumparo>
**
<pontiki>
good-o
<pontiki>
so, i'm probably the truly weird one here
zzzbra has joined #ruby
<pontiki>
i just turned 57
<airdeluxe>
cheers mate
zzzbra has quit [Remote host closed the connection]
<louism2wash>
Hey guys, I am trying to use String#split with a regular expression that matches a pattern of any letter, followed by a space, followed by and digit. I am successfully matching that pattern but I now want to grab only that space between the letter and the number. If anyone could help me out if would be much appreciated. Thanks. https://gist.github.com/louism2/2c506f23127150d72c9a
<pontiki>
jumparo: that may be another thing, i really find playing computer/video games boring
<pontiki>
louism2wash: what ever is in the split expression is discarded. are you sure you want to be using split?
<louism2wash>
pontiki: I am trying to split the string on that pattern. My goal is to have that string by split into an array with 4 values... ["Everton","4","Aston Villa","4"]
<godd2>
louism2wash have you tried .split(" ") ?
<pontiki>
louism2wash: are there are combinations of the two alpha strings that may contain spaces? do the number parts ever contain spaces?
<godd2>
well that's closer. anyway, you can look into lookaheads and lookbehinds
<godd2>
but while that will force regex to solve this problem, it probably doesn't solve the issue you have. what are you trying to do?
<louism2wash>
godd2: aren't those only validating the presence of a pattern at some point before or after a match?
Spami has joined #ruby
jimbach has quit [Remote host closed the connection]
kireevco1 has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
<louism2wash>
godd2: The goal is to split a string such as "Chelsea 2 Aston Villa 2" strings and digits. The string is a team name and the digit is the score of a soccer match
Mars` has quit [Ping timeout: 244 seconds]
mathias3 has quit [Ping timeout: 258 seconds]
<godd2>
well I would probably regex over name/number pairs and then do something with those separately
dermothaughey has quit [Ping timeout: 250 seconds]
jusmyth has joined #ruby
oo_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
<dickoff>
checking, trying to patch up this libary I inherited. Out of curiousity, what does `Curl.spnego?` print for you
artm has joined #ruby
<Eiam_>
dickoff: I was checking that on my server haha
<Eiam_>
irb(main):003:0> Curl.spnego?
<Eiam_>
=> false
<Eiam_>
;)
<Eiam_>
it works fine.
valeriansaliou has joined #ruby
<Eiam_>
we have the same version of curl on our system so
lxsameer has joined #ruby
<Eiam_>
my first thought is perhaps a binding error, or a bug. it definitely works. whats `klist` say on your system? do you have a ticket?
kevr has joined #ruby
iml has joined #ruby
hiyosi has joined #ruby
wolflee_ has quit [Quit: (null)]
jack_rabbit has joined #ruby
<dickoff>
yeah I've got an active ticket
aspiers has quit [Ping timeout: 255 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevr has quit [Remote host closed the connection]
<Eiam_>
We've taken the discussion to PM cause I felt like I was listening to myself talk 7 years ago, suspecting he was working on the same problems I was =p
lolmaus has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
lxsameer has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
jenrzzz has joined #ruby
bal has joined #ruby
emmesswhy has quit [Quit: Leaving]
jusmyth has left #ruby [#ruby]
mathias3 has quit [Ping timeout: 240 seconds]
kevr has joined #ruby
preview has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
wolflee has joined #ruby
<Eiam_>
night gents!
timonv_ has joined #ruby
lxsameer has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
timonv_ has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
artm has quit [Ping timeout: 255 seconds]
godd2 has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
DaveDH2_ has quit [Remote host closed the connection]
terlar has joined #ruby
timonv_ has joined #ruby
crus` has joined #ruby
anarang has joined #ruby
josephndenton has joined #ruby
preview has quit [Quit: leaving]
ramfjord has joined #ruby
lolmaus has joined #ruby
crus has quit [Ping timeout: 244 seconds]
kamil has joined #ruby
st1gma1 has quit [Read error: Connection reset by peer]
zzzbra has quit [Remote host closed the connection]
bcavileer_ has quit [Write error: Connection reset by peer]
charles81 has quit [Write error: Connection reset by peer]
ramblinpeck_ has quit [Write error: Connection reset by peer]
featheryahn has quit [Read error: Connection reset by peer]
pmarreck has joined #ruby
daxroc__ has quit [Ping timeout: 244 seconds]
mjc_ has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
bluehavana has joined #ruby
jpinnix____ has joined #ruby
lidaaa has quit [Ping timeout: 255 seconds]
bcavileer_ has joined #ruby
NameNotFound has quit [Ping timeout: 272 seconds]
ramblinpeck_ has joined #ruby
charles81 has joined #ruby
daxroc__ has joined #ruby
featheryahn has joined #ruby
timonv_ has quit [Remote host closed the connection]
tessi_zz has quit [Ping timeout: 272 seconds]
corehook has quit [Remote host closed the connection]
mjc_ has joined #ruby
musicmatze has quit [Ping timeout: 272 seconds]
NameNotFound has joined #ruby
l3kn has joined #ruby
tessi_zz has joined #ruby
alex88 has joined #ruby
machty has joined #ruby
Xeago_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
preview has joined #ruby
dj_zubehoer has quit []
shtirlic has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
reinaldob has joined #ruby
St_Marx has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
<AlienCat>
<apeiros_>, yes I thought so
<AlienCat>
but I cannot log in to the http user
reinaldob has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
blackmes1 has joined #ruby
gregoriokusowski has joined #ruby
sk87 has joined #ruby
funburn has joined #ruby
preview has quit [Quit: leaving]
<AlienCat>
Okay, I can log in now, but is this really a good idea?
timonv_ has joined #ruby
<apeiros_>
this?
Zorxax_ has joined #ruby
<Zorxax_>
hello everybody
<tatsuo>
hi
<Zorxax_>
Is posible in nokogiri readd all comments AND some tags?
<Zorxax_>
tatsuo, ;D
<Zorxax_>
i use .xpath("//tag") how read tag and all comments?
narph has joined #ruby
rh1n0 is now known as rh1n0_away
adriancb has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
<AlienCat>
yes, the http user should not have a user dir or be able to log in
nagaraj has joined #ruby
<AlienCat>
But now I created a userdir for it
dangerousdave has joined #ruby
davedev24_ has joined #ruby
chthon has joined #ruby
narcan has joined #ruby
<Zorxax_>
ok, second q, how read data inside <tag> text</tag>
<Zorxax_>
how read all tags inside text
<apeiros_>
AlienCat: then don't install it under the http user
<apeiros_>
you'll usually not have your pages under the http user either, do you?
adriancb has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
<AlienCat>
pages?
Takle has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 256 seconds]
caveat- has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
Mongey has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
musicmatze has joined #ruby
msgodf has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Quit: Outta here...]
hiyosi has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Client Quit]
<gr33n7007h>
Zorxax_, .text or .context methods?
<Zorxax_>
i have text = "text and <b>text bold</b> and <i>italic</i> ...
<Zorxax_>
how convert it to tree, nice format etc.
<Zorxax_>
inside .text i have some tags
mathias4 has joined #ruby
rshetty has quit [Remote host closed the connection]
mathias4 has quit [Read error: Connection reset by peer]
<gr33n7007h>
using nokogiri?
fabrice31 has quit [Remote host closed the connection]
<gr33n7007h>
Zorxax_, ^^
<Zorxax_>
yes
mikecmpbll has joined #ruby
mathias3 has quit [Read error: Connection reset by peer]
<Zorxax_>
trouble is "<b> text <i> italic and bold</i></b>"
<gr33n7007h>
just say, text = "text and <b>text bold</b>"; text.css('b').text
hiyosi has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
<AlienCat>
apache need to have access to the passenger gem thing so it seems I have to choose between allowing everyone to access the folder or install it on the http user
blackmes1 has quit [Ping timeout: 264 seconds]
<Zorxax_>
gr33n7007h, Is possible more than one tag <b> and <i>
<gr33n7007h>
Zorxax_, yes
<Zorxax_>
I need normal="text and" bold="text bold" normal="etc"
<Zorxax_>
no only text inside bold
fabrice31 has joined #ruby
<Zorxax_>
meybe I can read xml but inside some tags use HTML?
danijoo has quit [Quit: Leaving...]
<gr33n7007h>
use the id/class for specific content
jheg has joined #ruby
<Zorxax_>
I have text with some tags. Text have errors (doubled spaces etc.) I need read xml and write in this same format but with correct text
<Zorxax_>
how read a.text() with all tegs , and read id similar .each procedure
<apeiros_>
AlienCat: pages - aka that stuff your webserver serves upon requests
<apeiros_>
and no, the two options you presented are not your only option
valeriansaliou has quit [Ping timeout: 265 seconds]
<apeiros_>
I have nothing installed under root. I run my apache under user A, I have my gems and website under user B. apache/passenger is configured to use user B's ruby.
elaptics`away is now known as elaptics
sdwrage has quit [Quit: This computer has gone to sleep]
oo_ has quit [Remote host closed the connection]
ozzloy has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
<AlienCat>
okay but in the httpd.conf file would have a path like /home/myuser/.gem/ruby/2.1.0/gems/passenger-4.0.53/...
oo_ has joined #ruby
synergyz has joined #ruby
psy_ has joined #ruby
<AlienCat>
so somehow I have to allow the access to this path
<apeiros_>
yes. the path which passenger-install-apachesomething tells you
<AlienCat>
so I just allow everone to that path?
rodfersou has joined #ruby
ferr has joined #ruby
kevr has joined #ruby
<AlienCat>
the home folders are very protected as default, did you have to do anything particular
<AlienCat>
?
Spami has quit [Quit: This computer has gone to sleep]
AndChat| has joined #ruby
funburn has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jusmyth1 has joined #ruby
ozzloy has joined #ruby
jusmyth1 has left #ruby [#ruby]
AndChat| has quit [Ping timeout: 250 seconds]
<gr33n7007h>
can you push onto an array while popping?
<apeiros_>
AlienCat: no
<apeiros_>
gr33n7007h: since push and pop are method calls, one has to happen before the other. or do you mean concurrently in a threaded env?
sdwrage has joined #ruby
<gr33n7007h>
apeiros, no, one after the other would do
<AlienCat>
Okay, I guess I will try
jenrzzz has quit [Ping timeout: 256 seconds]
<gr33n7007h>
basically, I'm trying to populate an queue/array with over 4 billion integers, but thats gonna take forever
Takle has quit [Remote host closed the connection]
doev has quit [Quit: Verlassend]
max96at|off is now known as max96at
davidhq has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<Zorxax_>
Timgauthier, polish
x1337807x has joined #ruby
doev has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
Takle has joined #ruby
_main_ has joined #ruby
corehook has quit [Remote host closed the connection]
wsmoak has joined #ruby
cajone has quit [Remote host closed the connection]
kenndel has joined #ruby
sigurding has joined #ruby
x1337807x has quit [Ping timeout: 258 seconds]
_main_ is now known as __main__
AlexRussia has quit [Ping timeout: 272 seconds]
Blizzy has joined #ruby
AlexRussia has joined #ruby
elcheckito has joined #ruby
parzzix has joined #ruby
<shevy>
Zorxax_ whenever I dive into something ruby-related
<shevy>
I store information in a local knowledge base
<Zorxax_>
shevy, can You correct my code?
NoNMaDDeN has joined #ruby
<workmad3>
shevy: whenever I delve into any subject, I store information in a local knowledge base ;)
<shevy>
I abandoned XML years ago Zorxax_
doev has quit [Quit: Verlassend]
<shevy>
workmad3 you do too?
<workmad3>
shevy: sure... I suspect most people do... as long as we count biological knowledge bases carried around in a thin bone casing...
<shevy>
Zorxax_, years ago, last time I used REXML ... I have old code like: doc = REXML::Document.new( File.open( 'XML/gamebook02.xml' ) ) in it... I can not even look at it
<shevy>
workmad3 oh that
<shevy>
I forget too quickly
<workmad3>
shevy: ;)
<Timgauthier>
workmad3 lol
<Timgauthier>
shevy what do you use to create a local knowledge base? (serious question)
shredding has quit [Quit: shredding]
<shevy>
Timgauthier ah that is more or less an open question for me as well
doev has joined #ruby
<shevy>
Timgauthier I kinda use a mixture of different approaches; most information is just hardcoded in .cgi files right now
<shevy>
I kinda inherited that from my old .php files
<shevy>
Timgauthier for my ruby projects, I tend to use markdown .md files whenever possible
<Timgauthier>
what do you mean by hardcoded in cgi?
nfk has quit [Quit: yawn]
<shevy>
well, just as if you'd use a .html page right?
<Timgauthier>
i'm mostly interested in how you interact with this information
<shevy>
but more dynamic
Zorxax_ has left #ruby ["Wychodzi"]
<shevy>
with ruby!
<Timgauthier>
so you use irb or whatever as an interface to look up questions etc?
<shevy>
in principle, all I could do on the commandline with ruby, I could do through .cgi files as well
<shevy>
nah, just serve .cgi files
<shevy>
or invoke some .rb file on the commandline through aliases
<Timgauthier>
and how does this information look? Like how are your questions/answers stored
<Timgauthier>
i think i should learn/figure out how to write documentation (says the guy who can barely figure out how to comment his own code) and start to do that for my own knowledge
<shevy>
for instance: "qa chemistry" on the commandline is to ask me a chemistry question; I have this aliased to "chem?" on the commandline, and if my answer is correct I type "solved" or similar to tag it as solved
<Timgauthier>
so you use this as a way to study topics?
<shevy>
Timgauthier ah, of course I also use yaml files; the exam questions are one huge .rb file though, a module... module Exams or something like that
<shevy>
that as well, yes!
<Timgauthier>
what about like, i want to remember the syntax for something how would i look that up?
<Timgauthier>
What does an else statement in erb look like for example
nrsk has joined #ruby
<shevy>
well
<shevy>
I have some aliases for that
<shevy>
for instance, I can never remember the % syntax
<Timgauthier>
to write it out? or to look it up
<shevy>
so I remembered it as "beautiful string" or something; "beautify string"; on the commandline I type "beauty?"
<shevy>
and this is the result:
<shevy>
'%3s' % '1' will become ' 1'
<shevy>
'%03d' % 3 # => '003'
<shevy>
etc...
<shevy>
Timgauthier dunno, I don't use erb so I don't have this snippet stored
<shevy>
I have a file generator though; "rubygen foo.rb" will generate a default .rb file for me; "rubygen foo.cgi" a default .cgi file etc...
<shevy>
and if I do: "rf ruby" my local knowledge base is loaded in the default browser
<shevy>
but it's one huge thing
<shevy>
like 30.000 lines or so
<Timgauthier>
cool :)
<shevy>
Timgauthier one problem is - I store stuff in german :(
<shevy>
I was undecided for a long time whether I should use english or german
<Timgauthier>
http://getkirby.com/docs/ the documentation here is excellent, i love it. it shows you the code and how to use it etc
chipotle has quit [Max SendQ exceeded]
<shevy>
I am ok with english too... but the thing is, I noticed that my brain has a much easier time keeping things organized in german; the cost of processing for my brain is lower
<shevy>
k lemme see
<Timgauthier>
and i wish i had something like this for everything.
moritzs has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Fades into the shadows]
manzo has joined #ruby
AFKGeek has joined #ruby
godd2 has joined #ruby
AFKGeek has quit [Read error: Connection reset by peer]
<Timgauthier>
seriously, if there was a ruby based project that had this level and quality of documentation i'd likely understand it effortlessly
<shevy>
Timgauthier this is the current header for my local ruby knowledgebase; don't laugh, the pictures were without colours, I tried to improve on them and combine them http://i.imgur.com/G8S7nOg.png
<Timgauthier>
but this guys documentation on PHP for his cms is literally how i've learned to read and write PHP
<shevy>
I like the rails API for such things more
<shevy>
:link_to =>
<shevy>
PHP has good docs
<Timgauthier>
I dont like :link_to=> because i find it brutal to have control on how my links work
jenrzzz has joined #ruby
cajone has joined #ruby
<Timgauthier>
i'm at the will of whatever i'm using to format my links correctly
<shevy>
I dunno, I just like the idea more
<shevy>
I kinda picture all CMS as an organic living thing
<shevy>
it must become clever!
<shevy>
like skynet
<Timgauthier>
PHP.net docs are okay, this guys stuff though is steller, honestly i'd love to write documentation for everything i know at this level, but i doubt i could
<shevy>
when I am dead, my knowledgebase must persist on
<Timgauthier>
the benifit of :link_to is that you can fix all of the links at once
<shevy>
yes Timgauthier
<shevy>
this is a great thing
<shevy>
I do this with my main URL mapper
<Timgauthier>
if you build something and then you can change the spec is nice
<shevy>
for instance: the symbol :local_ruby points to my local knowledge base all the time
<shevy>
so if I ever change that, I only have to change it in one place, and all links will work again
<Timgauthier>
yeah
Takle has quit [Remote host closed the connection]
<apeiros_>
dangerousdave: because "test," != "test"
<shevy>
wow apeiros was fast
<shevy>
or his clone is :)
<apeiros_>
err, "note,"
<apeiros_>
but well…
kasperti_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
shazaum has joined #ruby
<Timgauthier>
hah
<Timgauthier>
shevy i have this huge curiosity for taxonomy and cataloging, but i feel like i utterly suck at them.
<Timgauthier>
right now trying to think about them feels like trying to wrap my arms around a big balloon that is too big for my arms to reach around
yeticry has quit [Ping timeout: 240 seconds]
<shevy>
cool
<shevy>
taxonomy is like the philosophy to clean up things and tag everything
<Timgauthier>
yeah
<Timgauthier>
but how should i tag files on my mac
<shevy>
like calling a human being Homo sapiens sapiens
<shevy>
dunno; meta information?
<Timgauthier>
its easy when i know a system like the system of classification of animals and humans etc knowing how to class things and apply those is easy
<shevy>
File: `screenshot.png'
<shevy>
Size: 178870 Blocks: 352 regular file
<shevy>
Device: 801h/2049d Inode: 5243487
<shevy>
all sorts of extra info!
__main__ has quit [Ping timeout: 244 seconds]
<Timgauthier>
but looking at a pile of icons and figuring out how to create a classification system for them is where i am stumbling
<shevy>
hmm
yeticry has joined #ruby
<shevy>
I have this problem with my images
<Timgauthier>
but you shouldn't add tags for .meta info, thats already in the file and searchable!
<shevy>
I have like ... 10.000 or so
<Timgauthier>
i know that feeling yes
rshetty has quit [Remote host closed the connection]
<shevy>
no idea how to really keep the well organized
<shevy>
*them
fabrice31_ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<Timgauthier>
i've taken advantage of things like facial recognition in iPhoto and that helps a bit but like... what about these files. this is a photo i reuse because its the photo of my face. where do i store it, what versions of it do i keep, do i keep each new crop and shape as i generate it, which folder does it go in.
<Timgauthier>
i honestly, my heads like *crrrrrr* *static* when i try to focus on this type of thing lol
<Timgauthier>
i've started using a os x app called stache to keep track of websites that have content that i deem useful for later knowledge, and that was nice because it has a very flexible system of tagging and folders where things appear in multiple places, or let me reorganize nondestructively
fabrice31 has quit [Ping timeout: 258 seconds]
<Timgauthier>
but most of my messes are due to having multiple active systems to sort them going on at once.
Takle has joined #ruby
<Timgauthier>
man, this is a very non #ruby discussion :P
anarang has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
parzzix has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
supersym has quit [Ping timeout: 244 seconds]
<shevy>
I dunno
carlosoliveira has quit [Quit: Connection closed for inactivity]
<shevy>
my primitive way is to create directories
<shevy>
and put images there when they might fit
sameerynho has joined #ruby
Xuerian has quit [Remote host closed the connection]
Xuerian has joined #ruby
lxsameer_ has quit [Ping timeout: 240 seconds]
<Timgauthier>
i just had this phrase in my head, "I Have a hard time translating thoughts into words" and i google searched it... now i have cancer thanks webmd
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3>
Timgauthier: hah
<workmad3>
Timgauthier: brain tumor pressing on some important part of your brain? :)
<Timgauthier>
actually it took me to an asbergers syndrom page.
<Timgauthier>
workmad3 maybe actually :P
dissident has joined #ruby
hiyosi has joined #ruby
<workmad3>
Timgauthier: you mean aspergers?
<Timgauthier>
thanks yeah
<workmad3>
Timgauthier: although if that's a common typo it explains why American tv shows seem to call it 'ass burgers'
<Timgauthier>
i'm trying to get music playing
<shevy>
lol
<shevy>
ass burgers
<Timgauthier>
workmad3 naw, i spell it wrong because of american tvshows
<workmad3>
Timgauthier: :D
<dissident>
hi. i want to start out learning ruby. i'm on ubuntu, and from reading am unsure if i use the default ubuntu ruby, or install independently, and if i should use RVM or not.
<shevy>
that's what I love about US americans - they bring things down to simple levels of understanding
<dissident>
various documentation is telling me rvm has been replaced by bundler
<workmad3>
shevy: it threw me on a couple of shows, I wondered why people kept on saying they had ass burgers...
<shevy>
dissident bundler can not replace rvm
<shevy>
workmad3 HAHAHA
<shevy>
this is too funny
<Timgauthier>
shevy i'm going to berlin on friday, what should i do there? i'm there for a few hours while my wife has an interview
fantazo has joined #ruby
<shevy>
workmad3 do you know the mockery about some song from rihanna and ... hmm
<shevy>
and shakira
<workmad3>
shevy: I know many a parody and mockery song :)
<workmad3>
shevy: not sure I know that one though...
<shevy>
but another phrase was... "he is an ass clown" ... I never heard the term ass clown before
mayday_jay has quit [Quit: Leaving]
NoNMaDDeN has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<Timgauthier>
how do you store these shevy for easy recall?
krz has quit [Quit: WeeChat 1.0.1]
psy_ has quit [Remote host closed the connection]
<workmad3>
hmm, lunch time methinks
hiyosi has quit [Ping timeout: 272 seconds]
workmad3 is now known as wm3|away
<shevy>
Timgauthier store what?
<Timgauthier>
links like those
<Timgauthier>
we should have a room called #rubybullshit for just these conversations :P
<shevy>
#ruby is well suited
<shevy>
I am still not quite sure what you mean
<Timgauthier>
i would like a system to store and organize thoughts, ideas, information, documentation, dates, etc.
ThaDick has joined #ruby
<Timgauthier>
i feel like i've got a ton of thoughts, but they are all gas and i can't connect them to works or coherence :| this happens often
<shevy>
dissident you could stick to the ubuntu ruby for now if all you want to do is learn ruby; but one day you should switch. ubuntu changes defaults of ruby, and also eliminates functionality like 'mkmf'; you can install this, but most newbies don't know how or what to do
<shevy>
Timgauthier ah yeah
<shevy>
Timgauthier tell you the truth, aside from the .cgi files, I also store a lot of stuff into .yml files
<shevy>
Timgauthier dunno! I like to describe my systems in some text file
<Timgauthier>
i get 3 lines from that link lol
<shevy>
yeah it's a small file
<Timgauthier>
oh, i see yeah
<shevy>
I also have a mime_types.yml file
karmatr0n has quit [Remote host closed the connection]
<shevy>
Timgauthier all programs that I can compile and install also got their own .yml file; php.yml for instance has data to compile and install it
<Timgauthier>
these don't seem quite like i'm thinking in my head. i'm like trying to figure out how to store like, This is a way to do this thing, heres a snippet of code that does this other thing etc
sk87 has joined #ruby
<Timgauthier>
ahh, so like directions + info and gotchyas ?
<dissident>
shevy: I'm learning because I've started using capistrano and have just started looking at Chef. what does the "switch" entail?
<shevy>
Timgauthier this is like the cleaned up variant of php.yml, it has more data than the two previous examples http://pastie.org/pastes/9727534/text
<shevy>
Timgauthier yes exactly
yfeldblum has quit [Ping timeout: 255 seconds]
<shevy>
I removed 20 lines of german :-)
<Timgauthier>
lol, i'm learning my german so its okay ;)
<Timgauthier>
so this is all the stuff you need to remember how to get php going, or how you got php going
<shevy>
dissident well - eventually you will feel that ubuntu ruby restricts you
<shevy>
dissident so there are alternatives; rvm... chruby... and other things. I don't use any of these, I compile ruby from source all the time, but many other people do here on #ruby
<shevy>
Timgauthier yes, just how to get php going + installed; for php code snippets, I use another approach; actually back then I just stored info in .php but that also kinda sucks
<shevy>
Timgauthier I want like a global system where I can manipulate every snippet all the time, regardless of how and where it is stored
<shevy>
like a wiki, but a good wiki
<Timgauthier>
yea, like store snippets from various languages etc
<shevy>
that too - $RUBY_SRC points to my ruby source files; /test/ directory there has all my tests
<Timgauthier>
and then some way to tag what they are doing, so you can cross language search for a snippet to do something (maybe ruby, maybe js, maybe php all have answers)
<shevy>
hopefully
<shevy>
one day
livathin_ has joined #ruby
<Timgauthier>
i'm tossing the idea of using kirby to build something right now, i'd use middleman or jekyll but my concern is that i have to rebuild it everytime i change something, where kirby wouldn't be an issue... or maybe github repo?
<shevy>
dunno
<shevy>
some people here are github freaks
nvdpl has joined #ruby
<Timgauthier>
could a git repo really work to hold and store information like that, i could see jekyll on git doing stuff like that maybe
shemerey has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
livathinos has quit [Ping timeout: 240 seconds]
<bhaak>
sorry, if I'm asking something you already told us but why would you want to have it in HTML form as well?
lesyalife has joined #ruby
<Timgauthier>
these are the types of things i love to design, systems that do lots of really good and useful things, but yet i havn't figured out how to do this for myself yet lol
<Timgauthier>
bhaak i guess it wouldn't need html form would it... but its the most obvious form of interacting with it i can come up with
gaussblurinc11 has quit [Read error: Connection reset by peer]
thoraxe_ is now known as thoraxe
gaussblurinc1 has joined #ruby
<bhaak>
only if you have a problem with readable markdown :)
x1337807x has joined #ruby
f0ster has quit [Ping timeout: 255 seconds]
beilabs has joined #ruby
<Timgauthier>
the problem isn't the readible markdown etc, i'm thinking of how do you search and navigate content?
anaeem1_ has quit [Remote host closed the connection]
<bhaak>
grep :)
<Timgauthier>
i don't spend a ton of time in the terminal, i'd need a way to put terminal commands into my spotlight search but thats not too bad.
<bhaak>
but I can see the need of having a static copy if you are away from your main computer
<bhaak>
and yes, if you are not a terminal persion, that, too
<Timgauthier>
bhaak well that and syncing, or backup
<Timgauthier>
moving it from one computer to another
jonathanwallace has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
banister has quit [Ping timeout: 272 seconds]
NoNMaDDeN has joined #ruby
x1337807x has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
<Timgauthier>
i'm going to look at yml files, i think they'd be a great form of outlining, and making i can use them to generate something so that i can expand on content
__main__ has quit [Ping timeout: 258 seconds]
<Timgauthier>
if i could make a yml that becomes a navigable tree of sub files that i can then expand on, so it either could be a list of things, but as those things grow it could turn into a list of list of lists of things.
mkaesz has joined #ruby
agjacome has joined #ruby
banister has joined #ruby
InformatiQ has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
gaussblurinc1 has joined #ruby
funburn has quit [Quit: funburn]
lesyalife has quit [Quit: Page closed]
doodlehaus has quit [Remote host closed the connection]
engineered_acade has quit []
avarice has quit [Quit: this channel is bakas]
St_Marx has joined #ruby
shemerey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cleopatra has joined #ruby
<bhaak>
Timgauthier: you know TiddlyWiki? it might not be exactly what you want but I found the editable html always quite intriguing. much closer to the original concept of the WWW than what we have now
Timgauthier is now known as timgauthier_away
cajone has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has joined #ruby
doodlehaus has joined #ruby
giuseppesolinas has joined #ruby
fandi has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
jxf has joined #ruby
psy_ has joined #ruby
krz has joined #ruby
spyderman4g63 has joined #ruby
timgauthier_away is now known as Timgauthier
giuseppesolinas has quit [Client Quit]
ReeseCarlyle777 has joined #ruby
toretore has joined #ruby
__main__ has joined #ruby
Soda has joined #ruby
Takle has joined #ruby
razieliyo has joined #ruby
Deele has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
shazaum has quit [Changing host]
shazaum has joined #ruby
<Timgauthier>
bhaak it seems interesting, but if it was a native app that'd be easier, node.js seems far to complicated to run locally for me
sigurding has joined #ruby
kp666 has quit [Quit: Leaving]
<bhaak>
Timgauthier: it's basically a html file, just open it in your preferred browser. the node.js option just gives you some additional features.
coderhs has quit [Remote host closed the connection]
<ponga>
oh ok twohlix_ i read the ruby-doc about 'shift'
<ponga>
i understood, thanks!
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<twohlix_>
you're welcome
lxsameer has quit [Ping timeout: 250 seconds]
josephnd1nton has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
supersym has quit [Quit: WeeChat 1.0.1]
St_Marx has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
Bira has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
Bira has joined #ruby
Takle has quit [Remote host closed the connection]
<ponga>
twohlix_: actually i sort of had an idea that library already exists to help this out, but i just wanted to practice
rshetty has joined #ruby
<ponga>
and thank again telling me i did not need $
corehook has quit [Remote host closed the connection]
<twohlix_>
also ponga: if you just want to access the end of an array you can do negative indexing. arr[-1] is the end, arr[-2] is one away from the end, etc...
josephnd1nton has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
grn_ has quit []
brushdemon has quit [Disconnected by services]
tagrudev has quit [Remote host closed the connection]
brushdemon_ has joined #ruby
brushdemon_ has quit [Client Quit]
binw has quit [Ping timeout: 240 seconds]
binw has joined #ruby
timonv_ has quit [Remote host closed the connection]
supersym has quit [Quit: WeeChat 1.0.1]
Jake232 has joined #ruby
jleishman has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
joncol has joined #ruby
mooru has joined #ruby
<joncol>
How can I use Bundler to manage my dependencies without being forced to use Git? When I run "bundle install", I get a "fatal: Not a git repository" message.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joncol>
Or should I use something else for dependency management?
<ddv>
joncol: Why are you not using Git?
<joncol>
My company uses hg
<benzrf>
hg is ok
<benzrf>
im told that hg has almost exactly the same model as git
<benzrf>
and heaven knows that git has an awful interface
iamjarvo has joined #ruby
<benzrf>
mabye i should learn hg
noop has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Client Quit]
Lingo has joined #ruby
joonty has joined #ruby
<joncol>
But why is Bundler giving me Git error msgs?? What is it trying to do?
<txdv>
i kinda got used to gits interface
<txdv>
everything else doesn't make sense anymore
<txdv>
linus way is the only way
<workmad3>
joncol: depends on what's in your Gemfile
<txdv>
get used to it or focking die()
<workmad3>
joncol: does it have a gem that's trying to be fetched from a company repo with a 'git: "some-repo-url" ' directive?
<joncol>
workmad3> Nothing special. More or less what bundle gem xxx gave me by default
treehug88 has joined #ruby
banister has joined #ruby
<workmad3>
joncol: oh, you've generated a gem with bundler
banister has quit [Max SendQ exceeded]
arup_r has joined #ruby
<workmad3>
joncol: the default template for the gemspec bundler generates tries to look up files using git ;)
<joncol>
workmad3> Yes, I have bunch of source code that I wanted to make into a Bundler gem. That's not how to do it?
banister has joined #ruby
josephnd2nton has joined #ruby
banister has quit [Max SendQ exceeded]
ZaRDaK has joined #ruby
timonv_ has joined #ruby
<workmad3>
joncol: it's not a 'bundler gem'... it's just a gem (no different from any other)... all bundle does is provide a fairly minimal template... but it does assume you'll use git for source control, and generates a gemspec accordingly
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<workmad3>
joncol: just edit your gemspec to look up files differently (should be fairly obvious what needs to change)
allcentury has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<joncol>
workmad3> I've removed the reference to git from my gemspec, but it still doesn't help
tvw has joined #ruby
banister has joined #ruby
cajone has joined #ruby
josephnd2nton has quit [Client Quit]
razieliyo has quit [Quit: Saliendo]
<joncol>
Oh, it DOES work. I was just confused :)
<workmad3>
heh
<joncol>
Too many gems open :)
<joncol>
Thanks!
yeticry has quit [Ping timeout: 244 seconds]
troulouliou_dev has quit [Read error: Connection reset by peer]
josephnd1nton has joined #ruby
josephnd1nton has quit [Client Quit]
jlebrech has joined #ruby
joncol has quit [Quit: leaving]
yeticry has joined #ruby
econerd4ever has joined #ruby
<jlebrech>
any gems to put a value into a clipboard (from rails for example) and then access it from irb?
<jlebrech>
guess i could do this with redis
hamakn has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
dkphenom has joined #ruby
mikepack has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvl is now known as tobiasvl
<txdv>
shevy: he just knows that apeiros_ has the power to kick everyone
ZaRDaK has quit [Quit: Leaving]
<txdv>
so he sticks his appeases him
stunder has joined #ruby
tus has joined #ruby
<txdv>
i appease you just for self satisfaction
adriancb has quit [Remote host closed the connection]
tus has quit [Client Quit]
<shevy>
lol
redjack1964_ has joined #ruby
tus has joined #ruby
mooru has joined #ruby
mooru has quit [Client Quit]
<godd2>
I hate the Collatz Conjecture so much. It's so tantalizing
<txdv>
i meant to say: so he appeses him*
nvdpl has quit [Quit: ZZZzzz…]
mooru has joined #ruby
<txdv>
What i wanted to say originally is that he sticks his head uptothebottom
x1337807_ has quit [Ping timeout: 245 seconds]
<txdv>
but that got mixed, deleted, and not rephrased correctly
anotherZero has quit [Quit: Konversation terminated!]
fabrice31_ has quit [Remote host closed the connection]
redjack1964 has quit [Ping timeout: 256 seconds]
nvdpl has joined #ruby
nvdpl has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
nvdpl has joined #ruby
nvdpl has quit [Max SendQ exceeded]
Avahey has quit [Quit: Connection closed for inactivity]
Timgauthier is now known as timgauthier_away
nvdpl has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
timonv_ has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
hornairs has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
Techguy305 has joined #ruby
sambao21 has quit [Client Quit]
klmlfl has quit [Ping timeout: 256 seconds]
msgodf has quit [Ping timeout: 250 seconds]
aspiers has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
mr_foobar_baz has joined #ruby
oo_ has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
oo_ has joined #ruby
jherbst has joined #ruby
aclearman037 has quit [Quit: I'm out!]
x1337807x has joined #ruby
<davidcelis>
probably a stupid question but i'm not finding how to do this online. is there an easy way to run a line of ruby before running a file passed to ruby? i.e. i just want to do something like `ruby -e '$stdout.sync = true' file.rb`
aclearman037 has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
jlast has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
x1337807_ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
josephnd1nton has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
oculus has joined #ruby
visof has quit [Ping timeout: 255 seconds]
nvdpl has quit [Quit: ZZZzzz…]
einarj_ has quit [Remote host closed the connection]
redjack1964 has joined #ruby
centrx has joined #ruby
x1337807_ has quit [Ping timeout: 264 seconds]
Spami has quit [Client Quit]
redjack1964_ has quit [Ping timeout: 255 seconds]
ikaros has quit [Quit: Ex-Chat]
Techguy305|2 has joined #ruby
kasperti_ has quit []
mkrank has quit [Remote host closed the connection]
itspots has joined #ruby
itspots has joined #ruby
RitterJack has quit [Remote host closed the connection]
<rpag>
davidcelis, best I can come up with is ruby -e 'do_something; eval File.read('file.rb')"
<davidcelis>
yeah, that's what i ultimately figured. was hoping for a better way, but thank you!
redjack1964_ has joined #ruby
<davidcelis>
or load, i guess
<rpag>
yup, load/require should work too
timgauthier_away is now known as Timgauthier
Techguy305 has quit [Ping timeout: 255 seconds]
finferl has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
artm has quit [Quit: Ex-Chat]
timgauthier_away is now known as Timgauthier
tatsuo is now known as umttumt
rippa has joined #ruby
redjack1964__ has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
redjack1964 has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
jaequery has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
nilurie has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
redjack1964_ has quit [Ping timeout: 255 seconds]
adriancb has joined #ruby
oo_ has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
kobain has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
apeiros_ has quit []
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
jenrzzz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narph has quit [Quit: Connection closed for inactivity]
lucasmartins has joined #ruby
redjack1964 has joined #ruby
aspires has joined #ruby
redjack1964__ has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
jaequery has quit [Ping timeout: 256 seconds]
Pip has joined #ruby
arup_r has quit [Quit: Leaving.]
whoisjake has quit []
arup_r has joined #ruby
lucasmartins has quit [Quit: lucasmartins]
whoisjake has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
geggam has joined #ruby
dermothaughey has joined #ruby
joonty has quit [Quit: Leaving]
redjack1964_ has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.0.1]
spyderman4g63 has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
redjack1964 has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
dkb20k has joined #ruby
dermothaughey has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
duggiefresh has quit [Remote host closed the connection]
gsd has joined #ruby
livingstn has joined #ruby
duggiefresh has joined #ruby
Lingo has joined #ruby
alex88 has quit []
Lingo__ has joined #ruby
Lingo has quit [Read error: Connection reset by peer]
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
benzrf|offline is now known as benzrf
spyderman4g63 has quit [Ping timeout: 264 seconds]
wald0 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jtdowney has joined #ruby
duggiefresh has quit [Ping timeout: 250 seconds]
pietr0 has joined #ruby
Lingo__ has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
troyready has joined #ruby
michaeldeol has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
nkumari has joined #ruby
jtdowney has quit [Client Quit]
ptrrr has joined #ruby
michaeldeol has quit [Client Quit]
allcentury has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
<gregf_>
how about :ruby -le 'BEGIN { puts "yay"} puts ARGV.join("-");' a.txt b.txt c.txt
<gregf_>
oops, scrolls to the bottom :/
hamakn has quit [Read error: Connection reset by peer]
ponga has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 258 seconds]
jxf has joined #ruby
michaeldeol has joined #ruby
emanu has quit [Client Quit]
runa has quit [Ping timeout: 240 seconds]
<jheg>
is it possible to create a hash with keys 1..9 with the values all ‘ ‘ in a way where you don’t have to explicity type it out like {1 => ‘ ‘, 2 => ‘ ‘ …} ?
Jackneill has quit [Ping timeout: 244 seconds]
DaniG2k has quit [Quit: leaving]
<centrx>
jheg, Hash.new { |h,k| h[k] = ' ' }
dkb20k has quit [Ping timeout: 264 seconds]
spyderman4g63 has joined #ruby
redjack1964 has joined #ruby
<centrx>
jheg, Hash.new(' ') is similar, but probably uses the exact same string object for every value, not a new separate string
runa has joined #ruby
<jheg>
thnx centrx I typed this into irb and it created an empty hash ...
<jheg>
h = Hash.new{ |h,k| h[k] = ' '}
jimmyhoughjr has joined #ruby
<centrx>
oh I see
redjack1964_ has quit [Ping timeout: 255 seconds]
<centrx>
That will give you hash where the default value for any key is always ' ', but doesn't actually create the 1..9
<jheg>
So I’m creating 9 squares that need to be empty when a new game is initialized
<jheg>
its the tic tac toe game or naughts and crosses
klmlfl_ has quit [Remote host closed the connection]
InformatiQ has joined #ruby
<jhass>
why a hash?
<jheg>
just thought there might be a quickler way then writing each one out
<jhass>
if you go the "enumerate the fields route"
<jhass>
why not a simple array and start at 0 ?
<jhass>
Array.new(9) { ' ' }
<jheg>
good idea
<jheg>
thanks I’ll try that
allcentury has joined #ruby
vimer has joined #ruby
AdamMeghji has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jheg>
jhass perfect thanks :)
Techguy305|2 has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
fgo has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
vimer has quit [Client Quit]
shazaum_ has joined #ruby
vimer has joined #ruby
claw has joined #ruby
jheg has quit [Quit: jheg]
airdeluxe has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
mwlang has joined #ruby
shazaum has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
chihhsin has joined #ruby
rshetty has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
Pip has left #ruby ["Leaving"]
toretore has quit [Quit: Leaving]
<mwlang>
I just started a new contract where my client is running Ruby on Rails 1.2 on Ruby 1.8.6 in a Windows environment. I have everything set up and running in my local mac environment, but on their production server Time.today actually returns a value whereas my Time.today gives me an undefined method. I checked Ruby docs and Time.today isn’t a part of Ruby 1.8.6 or 1.8.7 for that matter. How do I figure out where Time#today is coming f
yfeldblum has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
dc_ has joined #ruby
corehook_ has quit [Remote host closed the connection]
<mwlang>
it seems like it might be some mysterious gem, but this is just plain vanilla irb that’s working in their production environment.
<jhass>
you can try if Time.method(:today).source_location worked 10 years ago already
Jackneill has joined #ruby
<mwlang>
jhass: I think that came along with 1.9
Takle has joined #ruby
Pupeno has quit [Ping timeout: 264 seconds]
<mwlang>
I did try it, tho’ against hope and it says “undefined method"
<jhass>
I'd double check if the irb runs the ruby you think it does
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
maletor has joined #ruby
baweaver_ has quit [Ping timeout: 258 seconds]
<hesco>
So, benzrf, ericwood, shevy: Is this on the right track, then? require 'json'; container_meta_data = JSON.parse( Facter::Core::Execution.exec("/usr/bin/docker inspect #{container}") )
benlieb has joined #ruby
rshetty has joined #ruby
<shevy>
dunno what Facter does
<ericwood>
sure, as long as it's not taking in arbitrary user input :D
<ericwood>
but that looks like it's fine if it's returning a JSON string
<ericwood>
idk just try it and see if it works?
<shevy>
hesco break it up into a variable, then pass that variable to JSON.parse()
rshetty has quit [Read error: Connection reset by peer]
<shevy>
also output that variable and show at least the beginning to verify it can work :P
<hesco>
ok, thanks, will try that.
rshetty has joined #ruby
josephnd1nton has joined #ruby
econerd4ever has quit [Ping timeout: 255 seconds]
whoisjake has joined #ruby
elaptics is now known as elaptics`away
jheg has joined #ruby
cmckee has quit [Quit: cmckee]
FDj_ is now known as FDj
patrick99e99 has quit [Ping timeout: 240 seconds]
MattB2 has quit []
rshetty_ has joined #ruby
blackmesa has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
paulfm_ has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
josephnd1nton has quit [Ping timeout: 272 seconds]
mikeg has joined #ruby
rshetty_ has quit [Ping timeout: 272 seconds]
whoisjake has quit []
tier has joined #ruby
sambao21 has joined #ruby
baweaver has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
kireevco has joined #ruby
Takle has joined #ruby
cajone has quit [Remote host closed the connection]
wex13r has quit [Quit: end]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
[gmi] has joined #ruby
LudicrousMango has joined #ruby
yfeldblum has joined #ruby
Jesterman81 has left #ruby [#ruby]
beilabs has quit [Quit: Be back later ...]
maestrojed has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
gregf has joined #ruby
<ReRixo>
how do i ruby
maestrojed has joined #ruby
<Igneous>
yes
<ericwood>
^^^^^^^
jheg has quit [Quit: jheg]
sailias has quit [Quit: Leaving.]
delianides has quit [Remote host closed the connection]
<ReRixo>
I'm fine with html/css but only languages I really know is c
<Igneous>
that's not usually a trio you'd expect
<ericwood>
go ahead and pick up the pickaxe book
<ericwood>
there's a ton of good ruby tutorials out there
baweaver has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
narcan has joined #ruby
Bira has joined #ruby
<ericwood>
they definitely are not
<lampd1>
they look a lot like JSON in pry :P
doodleha_ has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
banister is now known as banisterfiend
<Igneous>
ruby inspect notation is pretty close to json
doodleha_ has quit [Remote host closed the connection]
<Igneous>
that's probably what you're mistaking for json
<shevy>
lampd1 doesn't JSON look like an Array?
spyderman4g63 has quit [Ping timeout: 240 seconds]
<lampd1>
not nested json
<lampd1>
feel so stupid for not being able to figure out why i couldn't parse this last night
<lampd1>
going to blame it on being sick :P
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 258 seconds]
max96at is now known as max96at|off
Photism has joined #ruby
testcore has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
zorak8 has joined #ruby
jheg has joined #ruby
rshetty has joined #ruby
sailias has quit [Quit: Leaving.]
dkb20k has joined #ruby
<Blizzy>
anyone know any gems for automating web tasks, like filling out a Google Form?
phutchins has joined #ruby
rshetty has quit [Read error: No route to host]
<rpag>
JSON just looks better than XML -_-
<centrx>
Blizzy, Mechanize
rshetty has joined #ruby
bmichelsen has joined #ruby
Lightsword has joined #ruby
cajone has joined #ruby
baweaver has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
geggam has quit [Remote host closed the connection]
jerius has quit []
geggam has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
<Igneous>
it is pretty funny that ruby has a better implementation of mechanize than the language we stole it from
mikeg has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 245 seconds]
pietr0 has joined #ruby
<txdv>
Igneous: what language?
pietr0 has quit [Remote host closed the connection]
* lampd1
guesses python
<centrx>
Perl
einarj has quit [Remote host closed the connection]
<Lightsword>
I’m trying to figure out the best way to handle port forwarding automation and queueing of requests, I’m using eventmachine to do requests asynchronously but I can only open a limited number of ports at a time
jgrevich has quit [Ping timeout: 256 seconds]
sdwrage has joined #ruby
chrchr- has joined #ruby
<chrchr->
I am having a horrible problem with bundler/rbenv/osx