sepp2k1 has quit [Read error: Connection reset by peer]
<tejasmanohar>
got sidetracked looking at airfarewatchdog stuff :P - was writing a scraper to go get all the IATA codes they support for arrival/departure flights
HoppingMadMan has joined #ruby
<shevy>
Ox0dea I don't even have any Rakefile
<Ox0dea>
shevy: Huh?
HoppingMadMan has quit [Max SendQ exceeded]
HoppingMadMan has joined #ruby
<Ox0dea>
shevy: You could change example.com to a server whose logs you have access to in order to (roughly) determine how many gem installs are automated.
<shevy>
I have no server :(
Limix has quit [Quit: Limix]
crdpink2 has joined #ruby
HoppingMadMan has quit [Max SendQ exceeded]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
crdpink has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 246 seconds]
<shevy>
Anything faster than Dir.entries ?
<Ox0dea>
shevy: readdir(3)
<shevy>
hmmm
DJSpies has quit [Ping timeout: 272 seconds]
monoprotic has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby
scrudrv has joined #ruby
Matadoer_ is now known as Matadoer
hashrocket has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
marr has quit []
eggoez has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
rehat has quit []
zacstewart has joined #ruby
eggoez has joined #ruby
CloCkWeRX has joined #ruby
Casty has joined #ruby
CloCkWeRX has left #ruby [#ruby]
simplyianm has joined #ruby
hashrocket has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has quit []
scrudrv has quit []
blue_deref has quit [Quit: bbn]
<jtdoncas>
where's a fun place to work? I'm thinking vancouver... any thoughts?
monoprotic has joined #ruby
monoprotic is now known as Guest71046
jbw has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
jbw has joined #ruby
diegoviola has joined #ruby
christiandsg has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
christiandsg has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
dogeuira has joined #ruby
dorei has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
funfunctor has joined #ruby
Guest71046 has quit [Ping timeout: 265 seconds]
cntrx has joined #ruby
cntrx has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
texasmade has joined #ruby
jester13_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
DLSteve has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has joined #ruby
Guest78802 has quit [Quit: Connection closed for inactivity]
hahuang61 has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 255 seconds]
keen__________34 has joined #ruby
RegulationD has joined #ruby
zacstewart has quit [Remote host closed the connection]
keen__________33 has quit [Ping timeout: 260 seconds]
irctc944 has joined #ruby
<irctc944>
hello im having some issues with my code, can anyone help?
<Ox0dea>
?anyone irctc944
<ruboto>
irctc944, Just ask your question, if anyone has or can, they will respond.
RegulationD has quit [Ping timeout: 264 seconds]
<irctc944>
okay is it okay if its a stackoverflow link? i posted it earlier. just dont wanna type out the whole thing again.
<pontiki>
and another example of someone completely not bothering to listen.
<NoidedSuper>
as a term
<texasmade>
listening to plain text is rather hard unless you have everything set up for that.
<pontiki>
oh shut up
<texasmade>
:D
<Ox0dea>
Do consider taking her advice, though.
<NoidedSuper>
Wait, was this not an instance where somebody used the term "Females" and somebody else said to use "Women" instead?
prestorium has joined #ruby
<NoidedSuper>
I mean, for the record, I do think "women" is a better term in 99% of cases
gwendall has joined #ruby
christiandsg has joined #ruby
<Ox0dea>
I vote for "people".
<Rinzlit>
Ox0dea actually I was just bored trying to see if I could stir up a conversation of Ruby applications that can be used to impress people who don't know much about coding
dimasg has quit [Ping timeout: 255 seconds]
<Ox0dea>
2/10
hahuang61 has quit [Ping timeout: 240 seconds]
<Rinzlit>
Ox0dea, You make it sound like I was trying to troll lol
<pontiki>
<blink>
<Rinzlit>
Ox0dea, I was hoping someone might have something impressive
<pontiki>
that *is* a troll
<Rinzlit>
And they'd want to show off
drewo has joined #ruby
pl1ght has quit [Ping timeout: 264 seconds]
gwendall has quit [Ping timeout: 256 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
<tabakhase>
hm, i think ive got a understanding issue how ruby threats globals and cross-class comms...
<NoidedSuper>
What's the issue?
simplyianm has joined #ruby
serivich has joined #ruby
erichodges has quit [Quit: erichodges]
arooni-mobile has joined #ruby
hahuang61 has joined #ruby
<tabakhase>
not yet formed to an actuall issue or question :D
<tabakhase>
still poking-around stage..
drewo has quit [Ping timeout: 244 seconds]
prestorium has quit [Quit: Konversation terminated!]
null_ref has quit [Quit: Lost terminal]
symm- has quit [Ping timeout: 260 seconds]
simplyianm has quit [Ping timeout: 255 seconds]
texasmade has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j3r0 has quit [Remote host closed the connection]
<tabakhase>
var, :var, @var, $var... awww so much doku to read
<Ox0dea>
tabakhase: You missed @@var. :P
<tabakhase>
ty for the motivation :P
<Ox0dea>
Local, symbol, instance, global, and class.
casadei_ has quit [Ping timeout: 265 seconds]
<Ox0dea>
Five "kinds" of identifier really isn't so bad.
scripore has quit [Quit: This computer has gone to sleep]
<tabakhase>
im not getting the symbol use yet, and im unsure "how global global is" - and if class is @@ i wonder whats diffrent to @
<craysiii>
how could it be? it's explicit and each kind can be justified IMO
<Ox0dea>
I agree.
<craysiii>
sidenote- i just got your name. it took that long.
<Ox0dea>
tabakhase: Symbols are essentially immutable strings; global variables are *really* global, insofar as they can be accessed from anywhere; and class varaibles are accessible from every instance of the class
<Ox0dea>
*variables
Azure has joined #ruby
NoidedSuper has left #ruby [#ruby]
djbkd has quit [Quit: My people need me...]
<tabakhase>
dont even bother explaining just now, ill do my homework with the docs first^^
<tabakhase>
but when i get back from that and still have a "?" ill appreciate it =)
<al2o3-cr>
and constants :p
<Ox0dea>
Ah, constants too.
<Ox0dea>
Also, "hidden" globals and instance variables.
<ruboto>
shevy # => /tmp/execpad-df676bf4d7a8/source-df676bf4d7a8:2: Can't set variable $2147483647 (https://eval.in/410309)
yqt has quit [Ping timeout: 244 seconds]
<shevy>
so bogus!
<tabakhase>
my current bummer more seems to be the general class concept anyway, too spoiled by years of php, trying to correctly wrap down to an interface kindish layer as im used to
<Ox0dea>
tabakhase: PHP has classes...
<tabakhase>
"concept" *shrug*
<Ox0dea>
I take it you didn't use classes in your PHP code, then?
<craysiii>
tabakhase are you taking any sort of class or just trying to learn on your own? codecademy?
dwithers has joined #ruby
s2013 has joined #ruby
scripore has joined #ruby
<eam>
Ox0dea: to be fair ruby is a much classier language than php
sarkyniin has quit [Quit: Quit]
krz has quit [Quit: WeeChat 1.2]
<Ox0dea>
The classiest!
<craysiii>
in both ways ;P
<tabakhase>
craysiii just a deep dive :D just wanne build a small tool with a few gems only ruby has, and "how hard" can another lang bee :P
freerobby has joined #ruby
serivich has quit [Ping timeout: 250 seconds]
<craysiii>
i really recommend codecademy. it can be finished in a day or so and you will get a good beginner understanding of ruby and OOP
braincrash has quit [Quit: bye bye]
<Ox0dea>
Ruby Koans > Codecadamy as an introduction to the language, in my opinion.
<tabakhase>
but ive wrote some code before (php, c#, some java) so its mostly the "understanding how ruby wants it" and not so much the "how to code" :D
<craysiii>
never heard of it.
<shevy>
ruby wants it in a simple way
pl1ght has quit [Ping timeout: 260 seconds]
<tabakhase>
some aka making my money with it for +6 years :F
<shevy>
hence why everything is public, you need to make an effort to become private
<craysiii>
i mean, ive used a multitude of languages as well, but i still did it.
<shevy>
and .send happily ignores private \o/
senayar has joined #ruby
senayar has joined #ruby
sevenseacat has joined #ruby
<craysiii>
even though you're versed in other languages, you're still a ruby beginner :)
<craysiii>
so am i.
<shevy>
if he knows php then he will pick up ruby in no time
<Ox0dea>
I've not heard many good things about Codecademy; people tend to come away from it having learned how to type Ruby.
<shevy>
ruboto is triggerhappy when you feed it >>
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea>
>> Not always.
Eiam_ has joined #ruby
<craysiii>
oh snap.
djbkd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy>
illegal unicode
darkf has joined #ruby
serivich has joined #ruby
Rickmasta has joined #ruby
maq has joined #ruby
gwendall has joined #ruby
s00pcan has quit [Read error: No route to host]
maq has quit [Client Quit]
[k- has joined #ruby
maq has joined #ruby
psy_ has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
texasmade has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
ten27pm has quit [Remote host closed the connection]
roo7 has joined #ruby
<ribbons>
Is anyone familiar with haversine formula?
<ribbons>
I'm having trouble determining what units it returns
juanpablo_______ has joined #ruby
eggoez has joined #ruby
ivanskie has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
gambl0re has quit []
gix has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
djbkd has quit [Quit: My people need me...]
<tabakhase>
craysiii hehe the "done others" is more about the "i understood how computers work and can thinkery "things" into codeflow in my brains" + controllFlow :D
juanpablo_______ has quit [Ping timeout: 272 seconds]
gix has joined #ruby
<craysiii>
yes but from your own admission it sounds like you need a formal introduction to OOP and classes.
gambl0re has joined #ruby
<craysiii>
in ruby at least i mean
lwu has quit [Quit: This computer has gone to sleep]
null_ref has joined #ruby
tkuchiki has joined #ruby
poguez_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Ox0dea>
tabakhase: Feigning ignorance is, in very rare circumstances, the right thing to do, but never the opposite.
<Ox0dea>
I ask out of genuine curiosity and not as an accusation: what good can ever come from pretending to know what one does not?
<sevenseacat>
Ox0dea: you can get a job and or a pay rise. ;)
<tabakhase>
this usually backfires^^
<Ox0dea>
sevenseacat: That is, in most cases, a temporary benefit.
<sevenseacat>
true, but I couldnt resist saying it.
<Ox0dea>
Fair enough.
<tabakhase>
:D
<Ox0dea>
tabakhase: How do computers work? :D
<[k->
they don't
<Ox0dea>
[k-!
<Ox0dea>
tabakhase: Have you completed NAND to Tetris?
<[k->
Ox0dea!
irctc944 has quit [Ping timeout: 246 seconds]
<tabakhase>
Similar to how babys are formed i guess
<tabakhase>
and never heard of that Ox0dea
<Ox0dea>
tabakhase: It wasn't always the case that computers begat computers; how were computers conceived before the advent of computers?
<[k->
taken out of context, you never heard of Ox0dea?!
<craysiii>
Ox we know that's a chicken and egg problem
<craysiii>
:P
<Ox0dea>
He's never heard of *this* Ox0dea; I'm sure he's encountered the number 3562 elsewhere.
<nofxx>
ribbons, haversine give meters
<nofxx>
usually
<nofxx>
anyone know a GUI file viewer that can handle huge files? need to peek 300mb..1gb files, really boring
charliesome has quit [Quit: zzz]
<Ox0dea>
nofxx: Why use a GUI for that?
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ribbons>
nofxx, could you link a source please?
<ribbons>
I want to make sure
<ribbons>
I've googled multiple times!
<nofxx>
Ox0dea, trying to find a github, was a 'how computer works' from the button press to the electron...hehe
<nofxx>
Ox0dea, well, because I don't know how to cat with some skip... now I see
<Ox0dea>
nofxx: `head -c` should do.
<nofxx>
ribbons, calculate 1 degree, it should be around 110km on the equador
<Ox0dea>
Sine and cosine don't really have "units", per se, so why should Haversine?
<nofxx>
Ox0dea, heheh, iirc it's a guy name
<roo7>
hi guys. i'm new to ruby and i'm trying to learn by porting a small program from python. i'm wondering if anyone can help by telling me what i'm doing wrong. The problem i'm encountering is being able to share an argument from a method within a class to another in a different class
<Ox0dea>
Dammit. eval.in is a 32-bit environment, but hopefully you get my intention.
<nofxx>
izabera, curious, compared to what?
bronson has quit [Ping timeout: 265 seconds]
<izabera>
compared to < 2^60
<nofxx>
no I mean... C lib/matlab?
<nofxx>
the slow part
<Ox0dea>
izabera: Could you provide demonstration code?
RegulationD has joined #ruby
<Ox0dea>
Ruby switches to Bignum at 2**62 in 64-bit environments; I can't think how to convince it to do so prematurely, but perhaps you've hit a weird edge case.
theery has joined #ruby
<izabera>
no it's ok, i just expected it to go up to something like 2^63-1
<izabera>
>> var=100000000000000000; for i in 1..1000000; x = var * 9; end; puts(x)
<jakesyl>
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- torrentz (LoadError)
funfunctor has quit [Ping timeout: 252 seconds]
jtdoncas has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: No route to host]
Ox0dea has joined #ruby
jtdoncas has joined #ruby
<Ox0dea>
jakesyl: Are you able to require other gems you've installed, or is this the first you've tried?
<jakesyl>
this is the first i've tried!
skade has joined #ruby
<Ox0dea>
jakesyl: You're sure the `gem install` succeeded?
<[k->
?root
<ruboto>
general advice in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
quimrstorres has quit [Remote host closed the connection]
<[k->
such Ruby internal jargon, me no understand
Mendenhall has joined #ruby
lxsameer has joined #ruby
hectortrope has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
lxsameer_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
<Ox0dea>
[k-: And all because you wondered aloud about superators.
<Ox0dea>
You are to blame for these tribulations!
<Ox0dea>
As well as the inevitable triumph, of course.
gwendall has joined #ruby
lemur has joined #ruby
layke_ has joined #ruby
<[k->
i helped you find a bug, where you will be throned as a contributor!
<Ox0dea>
Nah, I can't find where to fix the damned thing. :/
bronson has quit [Ping timeout: 246 seconds]
monoprotic has joined #ruby
<layke_>
Hey. I installed ruby. (ubuntu 14.04). apt-get install ruby-full, then I tried to install rubygems.. (I'm trying to get jekyll installed). When I try and use jekyll, I notice that my gems are isntalled in /var/lib/gems/1.9.1/ .. however, ruby -v shows me as ruby 1.9.3p484
<[k->
dont worry, it will come to you in a prediction ;)
j4cknewt has quit [Read error: Connection reset by peer]
<layke_>
Is this a problem? Because I get errors when I trya nd run jekyll build...
j4cknewt_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Ox0dea>
layke_: No, it shouldn't be a problem. Would you mind posting the exact error(s) you're receiving?
quimrstorres has joined #ruby
doublemalt_ has joined #ruby
<layke_>
Sure.
whiteline has quit [Read error: Connection reset by peer]
sross_work|2 has quit [Read error: Connection reset by peer]
sross_work|2 has joined #ruby
monoprotic has joined #ruby
monoprotic has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 256 seconds]
bruno- has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
monoprotic has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
Hobbyboy has quit [Quit: I think the BNC broke.]
alex88 has quit [Quit: Bye bye]
nofxx has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bruno- has joined #ruby
banister has joined #ruby
j4cknewt has joined #ruby
aiesec has joined #ruby
banister has quit [Client Quit]
sarkyniin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
charliesome has joined #ruby
skade has joined #ruby
nofxx has joined #ruby
djbkd has joined #ruby
The_Phoenix has joined #ruby
ruurd has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ruurd has quit [Client Quit]
j4cknewt has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
pengin has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
banister has joined #ruby
DexterLB has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
banister has quit [Client Quit]
j4cknewt has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
monoprotic has joined #ruby
Trynemjoel has joined #ruby
banister has joined #ruby
aiesec has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
banister has quit [Client Quit]
banister has joined #ruby
monoprotic has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
lxsameer_ has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
Muhannad has joined #ruby
banister has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
Trynemjoel has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
Trynemjoel has joined #ruby
bruno- has joined #ruby
banister has joined #ruby
<shevy>
dumdedum
bodgix has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 246 seconds]
gwendall has quit [Remote host closed the connection]
dimasg has joined #ruby
abara has joined #ruby
abara has quit [Client Quit]
aiesec has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
banister has joined #ruby
casadei_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
casadei_ has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otisZart has joined #ruby
bodgix has joined #ruby
noeden has joined #ruby
allcentury has joined #ruby
juanpablo_______ has joined #ruby
monoprotic has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
<noeden>
Hi there. I am new to ruby development and I am trying to develop a command line application with gli. I have to execute it with bundler exec bin/application. How can I install the application to ommit this?
Pupeno has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
juanpablo_______ has quit [Ping timeout: 264 seconds]
<shevy>
no idea about bundler, but in a normal gem structured direction, you just put the file into bin/name_here
<shevy>
then when you install that .gem file, it'll be available on the commandline
monoprotic has quit [Ping timeout: 244 seconds]
bruno- has quit [Read error: Connection reset by peer]
<shevy>
in the .gemspec file, it will be an entry such as ".executables ="
<Neon>
Hello, I'm trying to send some bytes to a server using TCPSocket and there's a 30 second delay until the data is sent. I open the socket, call write twice with strings made with Array#pack, call read and output the result. When I execute that code it takes 30 seconds until the response is output. With a similar script in Python I get an immediate response so it's rather not a server/application issue.
<unshadow>
[k-_: yeha, this specific try I didn't do a \n in the end and I didn't notice... I feel stupid , sorry
<unshadow>
Neon: when building the socket you can try using the nodelay flag
<[k-_>
Neon: have you waited 30s yet :3
erichodges has quit [Client Quit]
<Thomas-0725>
is it ok/reliable to use something like this_statement_is_true || perform action ? e.g. 1 == var || var = 3 (as in, assign 3 to var unless var already equals 1)
<pontiki>
Thomas-0725: it seems a bit more obscure than doing: var = 3 if 1 == var
<[k-_>
Thomas-0725: yes, that would work
<[k-_>
pontiki: there is still something wrong with that order there
<[k-_>
the subject is wrong!
<pontiki>
kay: most people would reverse the 1 == var
nsuke has quit [Remote host closed the connection]
<pontiki>
but it is not incorrrect
<pontiki>
if you mistype == with = a lot, the error shows up a lot faster if you put the immutable part on the left :)
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
<unshadow>
Neon: s = TCPSocket.new(bla, 80); s.setsockpot(Socket::Option.linger(false))
<Thomas-0725>
pontiki, ok thanks. Although I would use unless 1 == var for my example, but point taken no less
<[k-_>
pontiki: substitude a logical error with another?
The_Phoenix has quit [Read error: Connection reset by peer]
<unshadow>
Neon: or (true, 10)
<unshadow>
etc..
<pontiki>
oh, sorry, Thomas-0725,you are correct: unless instead of if
aryaching has quit [Read error: Connection reset by peer]
<Thomas-0725>
1 == var is not a logical error
thatsnotjack has joined #ruby
<[k-_>
you are going to check if var (the subject) is equal to 1 (the object)
<pontiki>
it's possible you may have to hunt for quite some time to find out that you typed var = 1 instead of var == 1; 1 == var will blow up right away
<pontiki>
it's not a logical error at that point, it's a typo
gjvc has quit [Quit: leaving]
schaerli has quit [Remote host closed the connection]
<[k-_>
it's weird to 1 == var
<[k-_>
i always put the subject first
<pontiki>
most people do
aryaching has joined #ruby
<Thomas-0725>
that's your style. your style does not define logic. ;P
<pontiki>
it still doesn't make the other wrong
ruurd has quit [Client Quit]
<[k-_>
by convention and maths, it is always the LHS!
<pontiki>
well, there you are wrong for maths
<Thomas-0725>
equality is symmetric, so by maths it does not matter. by convention, you may be on to something
<[k-_>
you dont do 6 = x do you
<pontiki>
THAT'S WHY IT'S AN ERROR
<Thomas-0725>
not in Ruby, because = is an assignment operator. In maths, however, 6 = x is perfectly valid.
<pontiki>
we're talking about ==
<[k-_>
no, it is wrong, you cant define 6 as x!
<[k-_>
6 is a constant in maths!
<Thomas-0725>
ok, well I'm going to abandon this argument in favor of something more productive. thanks for the help :)
<[k-_>
if i marked someone's paper and they did that, i would mark them wrong
ruurd has joined #ruby
<pontiki>
in maths, = is an equation, not an assignment; = is an operation in programmaing, in maths it denotes and equation
<Neon>
unshadow, not working. I've made a test you can do as well, see http://pastebin.com/Ka0NszB8 if you can reproduce the delay.
<[k-_>
it was already made, i already accepted it, but i dislike it still
<pontiki>
you have until just the past 2 comments never indicated any acceptance
<[k-_>
maybe my use of the word "wrong" was wrong
casadei_ has quit [Ping timeout: 255 seconds]
<[k-_>
my use of "wrong" is wrong ok
serivich has joined #ruby
lxsameer_ has quit [Quit: Leaving]
skade has joined #ruby
serivich has quit [Remote host closed the connection]
serivich has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
<[k-_>
i was busy thinking of the word: i think it's against convention. arguably a phrase but ¯\_(ツ)_/¯
gwendall has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
lukas has left #ruby ["WeeChat 0.4.2"]
Trynemjoel has joined #ruby
AnoHito has joined #ruby
<adaedra>
against what convention
Nahra has quit [Remote host closed the connection]
<[k-_>
subject == object
christiandsg has joined #ruby
<[k-_>
John is a boy
ruurd has quit [Quit: ZZZzzz…]
<[k-_>
people = 5
theery has joined #ruby
Violentr has joined #ruby
gwendall has quit [Ping timeout: 244 seconds]
<adaedra>
wat
theery has quit [Remote host closed the connection]
<pontiki>
first: stop conflating different operations with left-right convetions
<pontiki>
in ruby, you are sending messages to objects
unshadow has quit [Quit: leaving]
<shevy>
I send message objects!
<pontiki>
subject.==(object) means something very deliberately different than subject.=(object)
tubuliferous has joined #ruby
<[k-_>
yes they are different
<pontiki>
object.==(subject), if object and subject match types or are convertable to matching types, are equivalent operations.
Tempesta has quit [Read error: Connection reset by peer]
<pontiki>
when they aren't you should get an error
<pontiki>
THAT IS ENTIRELY THE POINT
<adaedra>
pontiki: I think [k-_'s point is just "You must all code like I code"
<[k-_>
yes!
<pontiki>
oh
<pontiki>
frivolous trolling, then
<[k->
something like that, i was pushing for subject first
<[k->
not really to force
<adaedra>
no, you're saying the other way is wrong.
<[k->
i corrected myself already :(
<Thomas-0725>
are variables assigned within if statements local to those if statements?
<[k->
no
<[k->
wait yes
<[k->
i misread that
<[k->
actually i should clear it up
serivich has quit [Ping timeout: 255 seconds]
<pontiki>
probably not
<pontiki>
if you don't really understand
diegoviola has joined #ruby
<adaedra>
easy to try by yourself, though
<[k->
did you mean if (assignment) { } or if () { assignment }
tubuliferous has quit [Ping timeout: 240 seconds]
<Thomas-0725>
the latter
<[k->
yes
freerobby has joined #ruby
ragingcake has joined #ruby
dionysus69 has joined #ruby
_blizzy_ has joined #ruby
j3r0 has quit [Ping timeout: 244 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
christiandsg has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 256 seconds]
_Aleserche_ has joined #ruby
Trynemjoel has joined #ruby
marr has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
ishahnaz has quit []
__Aleserche__ has quit [Ping timeout: 256 seconds]
aryaching has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
jonee has quit [Remote host closed the connection]
roolo has joined #ruby
djbkd has joined #ruby
einarj has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jimms has joined #ruby
juanpablo_______ has joined #ruby
theery has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
scripore has joined #ruby
gwendall has joined #ruby
einarj_ has joined #ruby
einarj_ has quit [Remote host closed the connection]
thatsnotjack has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 265 seconds]
<Neon>
I've installed the varint gem (https://github.com/liquidm/varint/blob/master/ext/varint/varint.c) and require 'varint/varint' returned true. However, neither Varint.encode nor Varint.decode are defined. As there is no documentation maybe someone here can help me with this.
juanpablo_______ has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
<Neon>
Ew, I need to extend the module. That's a weird concept, isn't it?
<[k-_>
is Varint defined?
<Neon>
Yes yes. I made a v = Object.new.extend(Varint) and then I can use v.encode and v.decode...
<Neon>
Is that a usual design?
<Neon>
I just saw they used rb_define_method and a method is usually an object-bound thing, but Varint is only a Module.
ruurd has quit [Quit: ZZZzzz…]
<Neon>
So it was probably lacking object context
<[k-_>
try include
<Neon>
Instead of require?
<canton7>
I imagine the intended use-case is that you define a class which can be encoded and decoded, and include Varint into that class, which will give you the methods #encode and #decode on that class
tuelz has joined #ruby
<[k-_>
Neon: include is totally diffenet from require
<Neon>
Could be, but if I understand the C code correctly you have to pass an IO object to encode and decode.
<Neon>
[k-_, I know, isn't it used to include a Module into a Class or another Module?
<[k-_>
yea, but you wanted to use it instead of require!
schaerli has quit [Remote host closed the connection]
khebbie has joined #ruby
<Neon>
[k-_, no, I asked you if you meant me to use it instead of require, because otherwise I don't understand your suggestion.
<Neon>
Because I said it appears to work with Object.new.extend(Varint) and you suggest me to try include.
<[k-_>
replace extend with include of course!
<[k-_>
>> Object.new.include(Enumerable)
<ruboto>
[k-_ # => undefined method `include' for #<Object:0x41f04308> (NoMethodError) ...check link for more (https://eval.in/410515)
<pontiki>
extend adds to an object, include adds to a class
Trynemjoel has quit [Ping timeout: 250 seconds]
theery has quit [Remote host closed the connection]
<Thomas-0725>
I know about uniq. uniq is not what I want, so what are you trying to tell me? :x
nfk has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
<[k-_>
are you sure it is not what you want?
imperator has joined #ruby
dimasg has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
<Thomas-0725>
The method I have linked to patches the Hash class to include a new method that takes another hash as an argument and returns a new hash which includes members found in one hash or the other, but not both
<havenwood>
atmosx: yup, i drove like a maniac to fit in...
<atmosx>
[k-_: oh, awesome. I'd like to visit Singapore some time.
<atmosx>
havenwood: hahahahahahaha, when?
<atmosx>
when did this happen?
elektronaut has joined #ruby
<havenwood>
atmosx: hem, years ago - more than five years ago but less than ten
skryking has left #ruby [#ruby]
<atmosx>
did you stay at Thess/niki or did you go to Chalkidiki (the peninsula right next)
<havenwood>
atmosx: stayed in, then visited sis out in the countryside and went to Meteora
<havenwood>
atmosx: good trip!
phrozen77 has joined #ruby
<atmosx>
havenwood: did you like the girls at Thess/nki? it's kinda crazy student-driven city. Lots of pubs/clubs/nightlife
<atmosx>
meteora are great too
bauruine has joined #ruby
drPoggs has joined #ruby
<havenwood>
atmosx: I did enjoy the nightlife. A bustling city!
MatthewsFace has joined #ruby
Trieste has joined #ruby
<havenwood>
Fun when people go out.
<atmosx>
yeah, it is.
nateberkopec has joined #ruby
<atmosx>
actually you have to go out after 21:00
<atmosx>
nice, too bad I didn't know you back then. I might have been your city-guide! :-)
Trynemjoel has quit [Ping timeout: 250 seconds]
tmtwd has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Matthews_ has joined #ruby
AbdulRehman has left #ruby [#ruby]
Trynemjoel has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
<imperator>
atmosx, just curious, can you read ancient greek (herodotus, etc) or is it like me trying to read old english?
patteh has quit [Remote host closed the connection]
<atmosx>
imperator: I studied ancient Greek at school (everybody here does, the extend ranges though) but not really. I would miss a lot. It's a lot worse than you reading Shakespeare. It's like you reading latin actually.
gwendall has quit [Remote host closed the connection]
<atmosx>
I'm also half Italian, I can understand some latin (I studied latin in the univ. actually) but ancient Greek is IMHO more distant to modern Greek than Latin to Italian.
gwendall has joined #ruby
<atmosx>
imperator: can you?
chris2 has joined #ruby
<imperator>
not so much any more
scripore has quit [Quit: This computer has gone to sleep]
<atmosx>
how did you turn out a programmer from the classics?
sevenseacat has quit [Quit: .]
<imperator>
i got my masters then decided i needed an income
jjj123 has quit [Ping timeout: 250 seconds]
<imperator>
so...i joined the air force
<imperator>
and they made me a programmer
<atmosx>
cool
jimms has quit [Ping timeout: 240 seconds]
<pontiki>
some of the best programmers i've known have been English majors
<imperator>
btw, old english == much older than shakespeare :)
Igorshp has quit [Remote host closed the connection]
blue_deref has joined #ruby
Trynemjoel has joined #ruby
chinmay_dd has joined #ruby
radgeRayden has joined #ruby
ruurd has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
tubuliferous has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
Igorshp has joined #ruby
dimasg has joined #ruby
pawnbox has joined #ruby
akkad has quit [Excess Flood]
ruurd has joined #ruby
leafybasil has quit [Remote host closed the connection]
treybul has joined #ruby
phutchins has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
ruurd has quit [Client Quit]
tkuchiki has quit [Ping timeout: 244 seconds]
darkf has quit [Quit: Leaving]
AlexRussia has quit [Read error: Connection reset by peer]
dimasg has quit [Ping timeout: 240 seconds]
<treybul>
maybe this is a dumb question, but in rspec can you test if two functions give the same value in the following manner: expect(subject.functionA(1)).to eq subject.functionB(1)
akkad has joined #ruby
lkba has quit [Quit: Bye]
<Coraline>
treybul: why not just try it?
<treybul>
doesnt work
drewo has joined #ruby
<Coraline>
What's the result you get?
christiandsg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<treybul>
error refers to a "undefined method `each' for nil:NilClass
bruno- has quit [Read error: Connection reset by peer]
<treybul>
but when i run the code in irb and test values for functiona and functionb i get the same values. strange
AbdulRehman has joined #ruby
<Coraline>
How are you defining 'subject'?
Trynemjoel has quit [Ping timeout: 256 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
<diegoviola>
what is % in ruby? like when you say "This is a %s in ruby" % ["string"]
<Coraline>
Sounds like error might be with how you set that up. Somewhere in your class you're calling each on an atttribute that you didn't set in your test setup.
<treybul>
just an instance of the class
Trynemjoel has joined #ruby
<adaedra>
diegoviola: in a string, the format method, see the link above
<Coraline>
treybul: track the error down using the stacktrace from the "undefined method" exception
<adaedra>
s/in/on/
<apeiros>
diegoviola: note that % is a method, and like all methods, what it does depends on what you call it on.
<treybul>
in principle though, what I am doing is allowed in rspec? that's really the answer I'm after. I have a feeling you can only use "to eq" for specific values/strings and can't compare functions
bruno- has joined #ruby
<diegoviola>
I see, thanks
schaerli has quit [Remote host closed the connection]
<treybul>
i can try fixing the code, but I want to first know if what I am doing is actually allowable
Rickmasta has joined #ruby
<pontiki>
treybul: try wrapping the arguement to eq in parens: eq(subject.functionB(1))
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<pontiki>
if that doesn't work, i suspect the issue may be with using subject in the eq, but i'm not sure
<pontiki>
in general, though, you should be able to pass any expression to eq()
saddad has joined #ruby
jamesaxl has joined #ruby
thatsnotjack has joined #ruby
tresmundos has joined #ruby
<tresmundos>
chanel in spanish or ingles
bruno- has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<treybul>
how about this: expect(subject.functionA(1)).to eq subject.count -where lets say subject is an array instance. Is this a viable rspec test? You're basically checking if your function is equivalent to the .count inbuilt method
bruno- has quit [Client Quit]
tresmundos has quit [Quit: Saliendo]
NoidedSuper has joined #ruby
chinmay_dd has quit [Quit: See ya!]
juanpablo_______ has joined #ruby
chouhoulis has joined #ruby
<treybul>
anyone?
<Coraline>
treybul: like I said, read your stack trace
<pontiki>
i don't believe your problem is with rspec
<treybul>
ok, but is the test i propose in my previous comment acceptable code in rspec? if the answer is yes then I can look into fixing the method, otherwise there is no point pursuing the fix
m8 has joined #ruby
devbug has joined #ruby
mleung has joined #ruby
senayar has quit [Remote host closed the connection]
mjs2600 has quit [Quit: Connection closed for inactivity]
imperator has quit [Quit: Leaving]
<Thiru>
Hi,
<pontiki>
treybul: i make tiny little examples of things i don't understand, until i do understand them
nateberkopec has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<pontiki>
i have examples folders just packed full of things
drewo has quit [Ping timeout: 256 seconds]
<Thiru>
how to collaborate with yours ?
dgutierrez1287 has joined #ruby
<Coraline>
Thiru: I don't understand your question, can you rephrase it please?
<Thiru>
I am new to this place. Is this a doubt clarification area for ruby ?
chuy has quit [Ping timeout: 260 seconds]
<pontiki>
i think the answer is "yes"
<pontiki>
"doubt clarification area for ruby" -- you can ask and answer questions about ruby
codecop has joined #ruby
CustosLimen has joined #ruby
<Thiru>
oh ok thanks. If i have any doubts or answers i will post here.
pawnbox has quit [Remote host closed the connection]
freerobby has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
HoppingMadMan has joined #ruby
Musashi007 has joined #ruby
mjs2600 has joined #ruby
Spleeze has quit [Ping timeout: 256 seconds]
<shevy>
Thiru getting an IRC client might help, I found webchat very limited
tkuchiki has joined #ruby
sdwrage has joined #ruby
tkuchiki has quit [Remote host closed the connection]
hmnhf has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<centrx>
shevy, Do you use node.js in addition to PHP?
<shevy>
I use neither of that
<shevy>
only thing related to javascript that I use is jquery, which is actually nice. for my webstuff I just add :drag when I want to drag an element and it works \o/
schaerli has joined #ruby
<centrx>
and all this time I thought you were a PHP guru
<shevy>
I abandoned PHP more than 10 years ago!
chuy has joined #ruby
<shevy>
centrx I do scan every once in a while whether http://php.net/manual/en/ has anything useful though that can be put into ruby
theery has quit [Remote host closed the connection]
<pontiki>
i miss the old one
casadei_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Thiru has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
ragingcake has quit [Quit: ragingcake]
j_mcnally has joined #ruby
<shevy>
of ruby?
<pontiki>
no, php
<shevy>
what gets to me is when functionality gets lost during an update
<shevy>
the new gist.github page does not allow me to easily copy/paste anymore with middle mouse button click
j_mcnall_ has joined #ruby
<pontiki>
this is common with web site facelifts
zacstewart has joined #ruby
<pontiki>
i miss having a middle button i can click
hmnhf has quit [Ping timeout: 246 seconds]
<pontiki>
i can't manage clicking the wheel
<centrx>
running around in circles
<shevy>
power-pontiki
<shevy>
power-mouse
sdwrage has joined #ruby
ragingcake has joined #ruby
pietr0 has joined #ruby
<pontiki>
it's a logictech m570
<pontiki>
not sure you can call it a mouse, exactly
casadei_ has quit [Ping timeout: 240 seconds]
<shevy>
gun station
<Outlastsheep>
Mice. Who needs them :L
<shevy>
cats
<Outlastsheep>
Exactly. And I am not a cat.
* pontiki
weeps
<firoxer>
pontiki: is your mouse sticky too or is it just me?
<firoxer>
Got the same mouse
<adaedra>
sticky mouse?
<adaedra>
ew
<shevy>
I had a mouse whose plastic covering fell apart every second month
<pontiki>
firoxer: it gets sticky, then i clean it out
<Outlastsheep>
I've heard of sticky keys, but sticky /mouse/?
<firoxer>
Yeah, it's the ball that gets all sticky
<firoxer>
... :---D
<shevy>
since that day I am all for black mice
j_mcnally has quit [Ping timeout: 265 seconds]
<firoxer>
Alright
<pontiki>
pop out the ball, wash it, and use a pencil eraser to clean the wheels inside
<centrx>
my mouse is made out of lasers
<shevy>
laser mouse for the win
<firoxer>
Pencil eraser? Gotta try that
<firoxer>
Thanks for the tip
<shevy>
cats stand no chance at all against a mouse with a laser
zacstewart has quit [Ping timeout: 244 seconds]
<ynroot>
hi , i found tutorial every where about how to do many things with ruby on rails, none about what to do when your aplication is done, do you have a tutorial for that
pietr0_ has joined #ruby
<adaedra>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<pontiki>
firoxer: other fix: keep your hands perfectly clean while using it :>
frem has joined #ruby
<centrx>
?trains
<ruboto>
I don't know anything about trains
<adaedra>
I like trains.
pietr0 has quit [Ping timeout: 240 seconds]
<centrx>
Trains can be powered by a variety of energy sources including steam, diesel and electricity.
pietr0_ is now known as pietr0
christiandsg has joined #ruby
schaerli has quit [Remote host closed the connection]
skade has joined #ruby
<firoxer>
pontiki: I do; I'm a Ruby programmer anyway, not a filthy Java peasant
<adaedra>
Don't forget the hype train.
<pontiki>
or the crazy train
<pontiki>
(OZZY!)
<pontiki>
lol firoxer
Spleeze has joined #ruby
<adaedra>
We don't talk about Java here.
<pontiki>
except to belittle it
<shevy>
firoxer ruby was your first scripting language? or did you dabble in php... perl or python
<firoxer>
shevy, I do PHP at work and it was my first language so... I confess
sdwrage has quit [Quit: Leaving]
<adaedra>
Nobody expects the shevy inquisition
<centrx>
burn him!
<adaedra>
mysqli_real_burn()
<firoxer>
Hey, a man's gotta do what a man's gotta do
<shevy>
adaedra you are one monty python fan
<firoxer>
We got Centos 5, Apache, all of that
crankharder has joined #ruby
<adaedra>
CentOS 5?
<firoxer>
Centos 5.
<adaedra>
Do you have dinosaurs, too?
<firoxer>
Don't ask
christiandsg has quit [Ping timeout: 265 seconds]
<shevy>
well they surely give one opportunity to use ruby 1.8.7
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
<firoxer>
UGH
j3r0 has quit [Ping timeout: 250 seconds]
<firoxer>
Well
<firoxer>
I do most of my work thru SSH (as opposed to SCP + Notepad++ as the guy before me used to)
<firoxer>
And I tried to install Syntastic and all of that pompous hipster shit to actually program instead of checking for syntax errors
_ixti_ has quit [Quit: WeeChat 1.2]
yaw has joined #ruby
<firoxer>
But alas, I'd have to compile Vim 7.4 manually to get it to work... and to compile, I'd need a newer version of GCC, which, in turn, needs a newer version of coreutils
<firoxer>
Into the rabbit hole!
<firoxer>
</offtopic>
devdazed has joined #ruby
<miah>
you don't do dev on your laptop/workstation? or your workstation also runs centos5?
<diegoviola>
firoxer: just use your distro package manager
<shevy>
firoxer I can understand that - however had for the most part, compiling into the home directory should work
<miah>
diegoviola: that wont help
<firoxer>
We use Git, and I'd like to have a copy of the database etc., but it's just too much of a hassle to install everything in a VM...
<firoxer>
diegoviola, we got CentOS 5
banister has joined #ruby
olistik has quit [Read error: Connection reset by peer]
<diegoviola>
upgrade?
<firoxer>
shevy, I'd have to recompile 99% of the system
christiandsg has joined #ruby
<shevy>
\o/
<firoxer>
diegoviola, I've suggested that and got the permission... but I'll have to wait till autumn
yaw has left #ruby [#ruby]
<miah>
recompile 95% of the system to compile vim? no.
<diegoviola>
I hope you are not doing make install as root
<firoxer>
miah, I feel obliged to give you the credentials to our backend
<diegoviola>
because that will just break things
<miah>
firoxer: are you going to pay me?
<firoxer>
diegoviola, that'd be an improvement
<diegoviola>
firoxer: not really
<shevy>
diegoviola are you still using windows
<miah>
you should be able to compile most of this stuff in your ~ without too much issue
<diegoviola>
shevy: no, I quit
<shevy>
no joke?
<diegoviola>
shevy: serious
<shevy>
whoa... things change quickly
<shevy>
now I can't make windows jokes anymore :(
<firoxer>
miah, it's just going to be easier to format and reinstall the whole shit from the ground up
<miah>
firoxer: i agree, but you can't do that _now_
<miah>
firoxer: you can do that in "the fall" which is months away
<craysiii>
why does one use ruby on windows :)
<firoxer>
miah, I'll manage
<miah>
so concentrate on what you can do today to resolve your development woes =)
<diegoviola>
craysiii: I don't
<shevy>
craysiii for a job where they put you in a prison called a room with co-workers
<diegoviola>
I've been using Linux for 15 years
yfeldblum has quit [Ping timeout: 244 seconds]
<firoxer>
miah, my to-do's way too long for concentrating on tools
<diegoviola>
craysiii: I was forced to use Windows at some company but I quit working for this company
<shevy>
diegoviola you quit a lot man!
<diegoviola>
shevy: meaning?
<shevy>
meaning you quit a lot
<diegoviola>
that doesn't make any sense
<miah>
firoxer: so you're complaining just to vent and not really seeking resolution to your issue?
<shevy>
yeah then don't quit a lot!
<firoxer>
miah, the resolution is just to wait and vent :D
<miah>
ok
<miah>
cool =)
<shevy>
there are doers
<shevy>
and then there are waiters
<diegoviola>
shevy: I didn't quit, I was going to quit but they fired me
mikecmpbll has joined #ruby
schaerli has joined #ruby
<miah>
getting fired is :( been there a few times.
crdpink has joined #ruby
<mikecmpbll>
anyone any ideas how i find the first previous sibling that matches a selector, in nokogiri?
HoppingMadMan has quit [Ping timeout: 244 seconds]
<havenwood>
shevy: (yes, i've spent the time to color it red)
<adaedra>
you mean open it in gimp and change hue?
<havenwood>
adaedra: that
<adaedra>
what a huge amount of time spent
<havenwood>
adaedra: no, i one by one changed the pixels in paint
<havenwood>
adaedra: time yourself
<diegoviola>
shevy: it doesn't matter anymroe if I quit or not from that company, I told the manager he was dishonest
<adaedra>
wat
GriffinHeart has joined #ruby
chinmay_dd has joined #ruby
Xiti has joined #ruby
juanpablo_______ has joined #ruby
khebbie has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Ping timeout: 256 seconds]
<diegoviola>
adaedra: the manager was speaking ill of me for time I was there and I didn't know it, but I found that up, he was telling people like the HR that I was crazy, etc
juanpablo_______ has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
<adaedra>
You were discussing that with shevy, not me
AmBienCeD has joined #ruby
countryHick has joined #ruby
<diegoviola>
right
AbdulRehman has quit [Quit: AbdulRehman]
yfeldblum has joined #ruby
<miah>
diegoviola: sounds like a good situation to get out of.
Trynemjoel has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
<diegoviola>
they had their company values like "Ethics, Honesty, etc" printed in their wall, and the day I left I told him "I've seen what you said about me. Ethics is not just a word in your wall, you should be more honest"
<diegoviola>
and I quit
andikr has quit [Remote host closed the connection]
<miah>
:( sorry you went through that. hopefully your new job is better?
<diegoviola>
he apologized
<diegoviola>
miah: I don't have a job yet
Trynemjoel has joined #ruby
mhib has joined #ruby
chinmay_dd has quit [Quit: Leaving]
<miah>
diegoviola: oh.
symm- has joined #ruby
tubuliferous has quit [Ping timeout: 255 seconds]
dseitz has joined #ruby
j3r0 has joined #ruby
Musashi007 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
diegoviola has quit [Read error: No route to host]
Trynemjoel has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
niiamon has quit [Remote host closed the connection]
malcolmva has quit [Ping timeout: 240 seconds]
<craysiii>
good luck in your hunty
<craysiii>
(fat fingers)
Musashi007 has quit [Client Quit]
<diegoviola>
job hunt?
<miah>
indeed. good luck in the hunt for a good place to work.
<craysiii>
yes
<diegoviola>
thanks
<miah>
its taken me quite a few jobs to find a place i enjoy working; even though im suffering through burn out currently.
NeverDie has joined #ruby
<diegoviola>
it's the second time I actually confront that manager, the first time he was calling me by my nationality and I asked him to call me by my name
<diegoviola>
some idiots just never learn I guess
<miah>
wow
<craysiii>
thats really unprofessional
<miah>
very
<craysiii>
maybe a bad attempt to build rapport with you?
fantazo has joined #ruby
<diegoviola>
rapport?
<miah>
rapport - a close and harmonious relationship in which the people or groups concerned understand each other's feelings or ideas and communicate well.
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<miah>
i think calling somebody by their nationality vs name is a bad way to build rapport based on the definition.
<craysiii>
hence why i said bad attempt :P
<miah>
ya =)
<craysiii>
in less professional occupations though it could be seen as effective. poking fun at one another is common, but in this situation it was most likely unwarranted
<diegoviola>
miah: I'm really not interested in close and harmonious relationship
spider-mario has joined #ruby
<craysiii>
thats probably why he said you have an attitude
<craysiii>
not blaming you or anything, but it could be a reason.
jhubert has joined #ruby
blaines has joined #ruby
A124 has quit [*.net *.split]
tekk has quit [*.net *.split]
DylanJ has quit [*.net *.split]
davidcelis has quit [*.net *.split]
greedo has quit [*.net *.split]
tchebb has quit [*.net *.split]
bzf has quit [*.net *.split]
\13k_ has quit [*.net *.split]
hasB4K has quit [*.net *.split]
go|dfish has quit [*.net *.split]
`Nibble has quit [*.net *.split]
quarcu has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
gnarf has quit [*.net *.split]
jamo_ has quit [*.net *.split]
funnel has quit [*.net *.split]
Guest97074 has quit [*.net *.split]
Janusz1 has quit [*.net *.split]
QKO has quit [*.net *.split]
snakehsu has quit [*.net *.split]
larshaugseth has quit [*.net *.split]
iamayam has quit [*.net *.split]
monsieurp has quit [*.net *.split]
scripore has quit [Quit: This computer has gone to sleep]
<mikecmpbll>
work hard + be nice = win
QKO has joined #ruby
`Nibble has joined #ruby
Janusz1 has joined #ruby
Janusz1 has quit [Changing host]
Janusz1 has joined #ruby
greedo has joined #ruby
sts_ has joined #ruby
bzf has joined #ruby
KrzaQ has joined #ruby
<mikecmpbll>
and don't netsplit.
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
yfeldblu_ has joined #ruby
DylanJ has joined #ruby
\13k has joined #ruby
tchebb has joined #ruby
<diegoviola>
I was being nice and I worked hard, I just didn't allow him to get away with being a jackass
tekk has joined #ruby
quarcu has joined #ruby
iamayam has joined #ruby
<mikecmpbll>
sounds like you're fine then
`Nibble is now known as Guest98814
sts_ is now known as Guest82709
funnel has joined #ruby
go|dfish has joined #ruby
larshaugseth has joined #ruby
Musashi007 has joined #ruby
scripore has joined #ruby
snakehsu has joined #ruby
Musashi007 has quit [Client Quit]
Xaitec has quit [Read error: Connection reset by peer]
gnarf has joined #ruby
A124 has joined #ruby
malcolmva has joined #ruby
<diegoviola>
:)
yfeldblum has quit [Ping timeout: 244 seconds]
<diegoviola>
indeed
DaniG2k has joined #ruby
jamo_ has joined #ruby
weemsledeux has joined #ruby
_Aleserche_ has quit [Quit: Leaving]
Musashi007 has joined #ruby
jakesyl has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
khebbie has joined #ruby
lkba has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Ping timeout: 250 seconds]
ddv has quit [*.net *.split]
zenspider has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
ptierno_ has quit [*.net *.split]
edenc has quit [*.net *.split]
Aeyrix has quit [*.net *.split]
DenSchub has quit [*.net *.split]
alexblom has quit [*.net *.split]
headius has quit [*.net *.split]
jeaye has quit [*.net *.split]
M-Technic has quit [*.net *.split]
TDJACR has quit [*.net *.split]
tmi has quit [*.net *.split]
superspring has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
danshultz_ has quit [*.net *.split]
Schmidt has quit [*.net *.split]
danoo_ has quit [*.net *.split]
Platini has quit [*.net *.split]
perry has quit [*.net *.split]
Bish has quit [*.net *.split]
ekem has quit [*.net *.split]
ZYPP has quit [*.net *.split]
hplar has quit [*.net *.split]
adam12 has quit [*.net *.split]
allie has quit [*.net *.split]
infernix has quit [*.net *.split]
jso- has quit [*.net *.split]
dont-panic has quit [*.net *.split]
ahuman_ has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
ruisantos has quit [*.net *.split]
peteyg has quit [*.net *.split]
tskogberg has quit [*.net *.split]
sjohnsen- has quit [*.net *.split]
xxx has quit [*.net *.split]
Koshian has quit [*.net *.split]
stevednd has quit [*.net *.split]
p8952 has quit [*.net *.split]
soosfarm has quit [*.net *.split]
KramerC has quit [*.net *.split]
linduxed has quit [*.net *.split]
justinweiss has quit [*.net *.split]
cookiez has quit [*.net *.split]
dont-panic has joined #ruby
zenspider has joined #ruby
ruisantos has joined #ruby
sjohnsen has joined #ruby
SebastianThorn has joined #ruby
ptierno has joined #ruby
soosfarm has joined #ruby
ahuman has joined #ruby
M-Technic has joined #ruby
ZYPP has joined #ruby
jso has joined #ruby
danoo_ has joined #ruby
allie has joined #ruby
peteyg has joined #ruby
ekem has joined #ruby
dhruvasagar has joined #ruby
edenc has joined #ruby
stevednd has joined #ruby
Koshian has joined #ruby
alexblom has joined #ruby
justinweiss has joined #ruby
adam| has joined #ruby
danshultz has joined #ruby
Schmidt has joined #ruby
perry has joined #ruby
KramerC has joined #ruby
Sou|cutter has joined #ruby
p8952 has joined #ruby
xxx has joined #ruby
realDAB has joined #ruby
tskogberg has joined #ruby
headius has joined #ruby
jeaye has joined #ruby
superspring has joined #ruby
hplar has joined #ruby
realDAB has quit [Client Quit]
Platini has joined #ruby
Bish has joined #ruby
Aeyrix has joined #ruby
ddv has joined #ruby
Trynemjoel has joined #ruby
DenSchub has joined #ruby
infernix has joined #ruby
linduxed has joined #ruby
TDJACR has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<diegoviola>
mikecmpbll: I guess the most important thing I've learned here is to not take disrespect anymore, there are people that will just take whatever because they fear losing their job
<mikecmpbll>
sure, that's one takeaway :).
CustosLimen has quit [Ping timeout: 260 seconds]
<diegoviola>
and confronting your manager in front of other people feels good, hell yeah
cookiez has joined #ruby
tmi has joined #ruby
ishahnaz has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
tejasmanohar has joined #ruby
<tejasmanohar>
is #ruby or #ruby-lang more popular? on the website, it said #ruby-lang was the official irc channel pretty sure.
<diegoviola>
tejasmanohar: they got merged
baegle has joined #ruby
<tejasmanohar>
diegoviola: ah
<shevy>
tejasmanohar #ruby-lang was smaller, perhaps 1/3 of #ruby
<tejasmanohar>
gotcha
<DaniG2k>
does anyone feel like reading some code and telling me how shitty it is? :P
chouhoulis has quit [Remote host closed the connection]
<baegle>
I'm trying to do grep a file for a pattern. open(file).grep(/p/) works just fine, unless the file is the wrong encoding. How do I get open/grep to expect the correct encoding for a file?
<tejasmanohar>
gem worked btw :) - but airfarewatchdog turned out not to be what i wanted haha
<apeiros>
baegle: you have to know the encoding
<apeiros>
baegle: and you'd pass it to open
<baegle>
apeiros: I can find the encoding by running the file utility from the command line. Is there an equivalent in Ruby?
bigmac is now known as i8igmac
<apeiros>
baegle: no you can't find the encoding that way. you get a guess, at best.
<baegle>
apeiros: is that guess what Ruby uses by default?
<apeiros>
baegle: no
<apeiros>
ruby doesn't guess. it does what you tell it to do.
<apeiros>
see Encoding.default_external for the default value of encoding.
schaerli has joined #ruby
HoppingMadMan has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baegle>
apeiros: is there a utility in ruby for guessing what a file's encoding might be, akin to the BSD "file" utility
<Ox0dea>
baegle: There's charlock_holmes.
<apeiros>
there are some, like chardet. there's probably others.
<apeiros>
baegle: but if you don't know the encoding, how do you want to grep?
atomical has joined #ruby
<baegle>
GNU grep seems to have no problem doing it
houhoulis has joined #ruby
<apeiros>
*sob*
zacstewart has joined #ruby
* apeiros
wishes programmers would take a mandatory course in encodings
Trynemjoel has quit [Ping timeout: 250 seconds]
<apeiros>
baegle: maybe dig into how gnu grep does it.
jjj123 has quit [Ping timeout: 260 seconds]
<apeiros>
and I wouldn't be surprised if it just treated everything as binary. maybe it's even clever and special cases files with BOM.
schaerli has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
Trynemjoel has joined #ruby
CustosLimen has joined #ruby
ragingcake has quit [Quit: ragingcake]
<apeiros>
eh, seems gnu grep just utterly fails with encodings like utf-16. so much for "seems to have no problem".
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
leafybasil has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
DaniG2k has quit [Quit: leaving]
<miah>
interesting
Mon_Ouie has joined #ruby
maq has joined #ruby
scripore has quit [Client Quit]
ragingcake has joined #ruby
ragingcake has quit [Client Quit]
casadei_ has joined #ruby
<shevy>
hehe
<apeiros>
another thing I wish for: a universal metadata container for all files.
<apeiros>
then we could actually store the encoding along with the file.
devbug_ has joined #ruby
null_ref_ has joined #ruby
<shevy>
container all the things!
<apeiros>
also I could have good old type & creator back. stupid file suffix doesn't even come close to that.
devbug has quit [Ping timeout: 272 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
casadei_ has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
jhubert has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.2]
Thomas-0725 has quit [Max SendQ exceeded]
HoppingMadMan has quit [Ping timeout: 250 seconds]
dc has joined #ruby
lkba has quit [Remote host closed the connection]
<Ox0dea>
apeiros: FUSE apparently makes it rather easy to roll your own filesystem.
* Ox0dea
wonders whether there are any unused inode bits.
Thomas-0725 has joined #ruby
kirun has quit [Quit: Client exiting]
thesquidbits[SF] has quit [Quit: WeeChat 0.4.2]
tkuchiki has joined #ruby
devbug has joined #ruby
NoidedSuper has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150630154324]]
Pupeno has quit [Remote host closed the connection]
schaerli has joined #ruby
devbug_ has quit [Ping timeout: 255 seconds]
thesquidbits has joined #ruby
Yzguy has joined #ruby
umgrosscol has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
Pupeno has quit [Remote host closed the connection]
Thomas-0725 has quit [Max SendQ exceeded]
schaerli has quit [Ping timeout: 240 seconds]
HoppingMadMan has joined #ruby
Yzguy has quit [Ping timeout: 264 seconds]
rakm has joined #ruby
thesquidbits has quit [Quit: WeeChat 0.4.2]
Volsus has joined #ruby
<Ox0dea>
apeiros, shevy: Got local trunk builds?
<shevy>
local trunk builds?
jjj123 has joined #ruby
Kalov has quit []
mhib has quit [Remote host closed the connection]
<shevy>
trocal bunk lilds!
<Ox0dea>
shevy: You've mentioned that you compile many things from source, but I can never remember whether or not you do so for Ruby.
<Ox0dea>
Was it that you compile 2.2.2 from source?
<shevy>
oh
<shevy>
I download the source into one directory; from there, I follow a simply convention, name of the program in question, downcased always. so ruby will then reside at BASE_DIR/ruby/ and inside there, is currently only the latest ruby version: ruby-2.2.2.tar.xz
<Ox0dea>
Gotcha.
<shevy>
I have about 2700 directories there, I think in total it is about ... 10 gigabytes or so... lemme count
<nofxx>
shevy, there is homebrew for linux, did you see?
<nofxx>
that been said .xz looks pacman, so you should have a reason to not use it
<shevy>
I noticed one minor glitch in the display of ,... which I will fix soon
<shevy>
I look at homebrew every once in a while, and I have heard of homebrew for linux but never tried
<shevy>
I don't want to end up as the only person to use it, that feels too lonely :(
<Ox0dea>
> .xz looks pacman
<shevy>
.xz looks pacman?
* Ox0dea
is still trying to make sense of that.
<shevy>
I sorta transitioned from .tar.bz2 to .tar.xz, it just is more efficient for when you have to backup like the 13 gigs every few weeks
ruby-lang926 has quit [Ping timeout: 246 seconds]
<nofxx>
xz is archlinux pacman default compression for pkgs
<nofxx>
Ox0dea, does red start hav a pkg manager?
<nofxx>
star*
devbug_ has joined #ruby
Guest96767 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea>
nofxx: Sure, but I don't see why that's any reason to associate a specific package manager with a specific archive extension.
Trynemjoel has joined #ruby
devbug has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
Guest96767 is now known as Hobbyboy
<shevy>
>> round(5)
jenrzzz has quit [Ping timeout: 264 seconds]
<ruboto>
shevy # => undefined method `round' for main:Object (NoMethodError) ...check link for more (https://eval.in/410551)
Yzguy has joined #ruby
<Yzguy>
hello
<Yzguy>
is OptionParser the best command line parser for ruby?
Hobbyboy has quit [Quit: I think the BNC broke.]
juanpablo_______ has joined #ruby
Hobbyboy has joined #ruby
Hobbyboy is now known as Guest5020
Guest5020 has quit [Remote host closed the connection]
<shevy>
I hate optionparser; there are some alternatives, not sure which one are best... get_opt_long in stdlib, thor... slop in external gems, and a few more
<adaedra>
Define "best"
khebbie has quit [Remote host closed the connection]
<adaedra>
shevy: I don't know if you noticed, I know ruby docs a bit
dgutierrez1287 has joined #ruby
<miah>
ive been a gamer since the early 80's =)
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
<shevy>
the good old games have been replaced by games in 3D worlds :(
chouhoulis has quit [Ping timeout: 264 seconds]
Helheim has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 246 seconds]
<miah>
i dont mind the 3d worlds so much though
kraljev11 has quit [Client Quit]
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
j_mcnally has quit [Max SendQ exceeded]
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
Helheim has joined #ruby
saddad has joined #ruby
kraljev11 has joined #ruby
j_mcnally has joined #ruby
kraljev11 has quit [Remote host closed the connection]
doublemalt_ has quit [Remote host closed the connection]
kraljev11 has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
stef204 has joined #ruby
kraljev11 has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
Silus10 has joined #ruby
kraljev11 has joined #ruby
kraljev11 has quit [Remote host closed the connection]
kraljev11 has joined #ruby
kraljev11 has quit [Client Quit]
gix has joined #ruby
kraljev11 has joined #ruby
quimrstorres has joined #ruby
kraljev11 has quit [Client Quit]
olistik has joined #ruby
<scpike>
shevy: I use trollop and like it, but the name is kind of unfortunate
fantazo has quit [Quit: Verlassend]
mamercad has joined #ruby
<shevy>
lol miah that page is hilarious... "IF HAS-GOAT 0 AND OBJHIT-EDGE 14 AND EDGE-OBJ-HIT 1 AND GOAT-GONE 0 AND SHOW-CARROT 0 THEN ASSIGN GOAT-ROOM 11, ERASE 14"
tenderlove has quit [Quit: Leaving...]
<shevy>
IF HAS-GOAT ... they were the true originators of lolcode
senayar has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bodgix has joined #ruby
ragingcake has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
Trynemjoel has quit [Ping timeout: 245 seconds]
Soda has quit [Remote host closed the connection]
deavid has quit [Ping timeout: 244 seconds]
<_whys_guy>
Can't have hyphens in LOLCODE identifiers.
Trynemjoel has joined #ruby
j_mcnall_ has joined #ruby
saddad has joined #ruby
<shevy>
:\
<_whys_guy>
It's still a great language. :P
araujo has quit [Ping timeout: 246 seconds]
<wasamasa>
can you have hyphens in any other language than lisp as identifiers?
araujo has joined #ruby
<_whys_guy>
Does CSS count?
lwu has joined #ruby
<wasamasa>
...
<Mon_Ouie>
Assembly?
devbug has joined #ruby
<wasamasa>
hmm
<_whys_guy>
Most Forth-inspired languages.
j_mcnally has quit [Ping timeout: 256 seconds]
<_whys_guy>
Concatenative languages are pretty nice in general.
jhubert has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
niiamon has joined #ruby
lwu has quit [Client Quit]
_whys_guy is now known as Ox0dea
Trynemjoel has joined #ruby
<wasamasa>
I dunno, they sound even more impractical than lisp
lwu has joined #ruby
<Ox0dea>
wasamasa: You would be hard-pressed to find something Factor's standard library couldn't tackle.
devbug_ has quit [Ping timeout: 272 seconds]
leat has quit [Ping timeout: 255 seconds]
hachiya has quit [Quit: updates]
fedexo has joined #ruby
tkuchiki has joined #ruby
<ELCALOR>
is there a better way to do something like this?
<Ox0dea>
Heh, "quarter" is a dollar word. I think that's quite humorous.
<ELCALOR>
awesome Ox0dea.
Silus10 has quit []
maq has quit [Quit: maq]
Asher has joined #ruby
<Ox0dea>
ELCALOR: For what it's worth, you might consider structuring your code such that you could say @quarters.all?(&:closed?).
<ELCALOR>
hmmm
phutchins has quit [Ping timeout: 264 seconds]
<Ox0dea>
Being able to write code like that is generally indicative of having organized things nicely and neatly, but it might be overkill in your present scenario.
<Ox0dea>
Just something to keep in mind.
ragingcake has quit [Client Quit]
<scpike>
It would be cool if there was a syntactic sugar parallel to &: for "call a method in the current namespace on this object"
<ELCALOR>
i'm not sure how i would do that. this is my quarter_closed? function btw: http://pastebin.com/YZtESQvC
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Ox0dea>
scpike: How do you mean?
<Ox0dea>
ELCALOR: Yikes. :P
<scpike>
In more aggressively functional languages like clojure you don't have methods on objects, you just have functions which take an object and work on them
<ELCALOR>
yikes? ;p
<Ox0dea>
scpike: That's what you do in any non-OO language, not just Clojure.
mdavid613 has joined #ruby
<scpike>
Ox0dea: right, just giving an example
<Ox0dea>
I don't see the gap that such sugar would fill?
<Ox0dea>
You just... call the method with an argument?
dh64 has quit [Remote host closed the connection]
<scpike>
Well, in the example above where you want to do `all? { |q| quarter_closed? q }`, you can't do `all?(&:quarter_closed?)` because it sends the method to the object
banister has joined #ruby
mjs2600 has quit [Quit: Connection closed for inactivity]
<scpike>
I totally agree the idiomatic thing in ruby would be for `q` to respond to closed?
<scpike>
but sometimes (e.g., if q were a core class like String) you have reasons for wanting to call functions that aren't on the object
diegoviola has joined #ruby
<scpike>
and then you have to write the longer { |x| thing x }
<Ox0dea>
You can use RubyVM::InstructionSequence.of, but it's really nasty and inherently brittle.
ndrei has joined #ruby
<shevy>
this code is not for the sane of minds
ledestin has joined #ruby
<shevy>
guess I have to manually sync to the other method
leat has joined #ruby
El3ktra has joined #ruby
<Ox0dea>
Well, are you going to have really complex signatures?
El3ktra has left #ruby [#ruby]
ragingcake_ has quit [Quit: ragingcake_]
blue_deref has joined #ruby
Helheim has quit [Max SendQ exceeded]
rakm has joined #ruby
<shevy>
nah only 2 input, one string, then a number. I guess I can store in constants and use the constants
nofxx has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ragingcake has joined #ruby
Pupeno has joined #ruby
quimrstorres has joined #ruby
Helheim has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ragingcake has quit [Client Quit]
Iskarlar has quit [Remote host closed the connection]
<Ox0dea>
Well, reconstructing an arbitrarily complex signature requires manually "interpreting" Ruby's bytecode, which is indeed crazy, but it's not so bad if you only need to look for instances of, say, :putobject.
devbug__ has joined #ruby
codecop has quit [Remote host closed the connection]
devdazed_ has joined #ruby
theery has joined #ruby
Iskarlar has joined #ruby
ragingcake has joined #ruby
Ilyes512 has joined #ruby
ap4y has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
deavid has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Ping timeout: 240 seconds]
bodgix1 has quit [Quit: Leaving.]
<apeiros>
Ox0dea: the point of the container would be that it is not on the filesystem level
<apeiros>
all FS level info is lost once you send a file somewhere
ndrei has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Helheim has quit [Max SendQ exceeded]
leat has quit [Remote host closed the connection]
mamercad has quit [Ping timeout: 246 seconds]
leat has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
Helheim has joined #ruby
mamercad has joined #ruby
gwendall has joined #ruby
arooni-mobile has joined #ruby
towski_ has joined #ruby
ragingcake has quit [Quit: ragingcake]
ragingcake has joined #ruby
quimrstorres has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
juanpablo_______ has joined #ruby
ecksit has joined #ruby
Helheim has quit [Max SendQ exceeded]
leat has quit [Remote host closed the connection]
leat has joined #ruby
phutchins has joined #ruby
<ecksit>
hi, i am looking to write a puppet-like syntax for a custom project of mine but i'm not sure how to achieve it in ruby. i've played with blocks but i can't seem to get it right. this is the type of syntax i'd like to use - https://gist.github.com/anonymous/e19fdd7cb00a73343aa1
Helheim has joined #ruby
theery has quit [Remote host closed the connection]
senayar has joined #ruby
<Ox0dea>
ecksit: That's not very insightful.
<ecksit>
at this stage the requirements are pretty loose. i just want to know if it's possible and what approaches i could take
juanpablo_______ has quit [Ping timeout: 256 seconds]
<Ox0dea>
ecksit: If... what's possible?
Lewix has joined #ruby
einarj has joined #ruby
<Lewix>
hi all
<ecksit>
that style of style of syntax (within ruby)
<Ox0dea>
ecksit: In the code you posted, you're passing a Hash to the #example method, which is... obviously possible.
quimrstorres has joined #ruby
Helheim has quit [Max SendQ exceeded]
j4cknewt has quit [Remote host closed the connection]
tubuliferous has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Helheim has joined #ruby
Silox| has joined #ruby
<ecksit>
but you need to wrap it in parenthese for it to work. i.e. `example({ value: option })` instead i would like `example { value: option }`
senayar has quit [Ping timeout: 260 seconds]
<Mon_Ouie>
example(value: option)
<ecksit>
i can get it working with a single string, but not hashes
gard has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
You can't have the latter simply because of the ambiguity with the syntax to pass a block to a method
<ecksit>
@Mon_Ouie: that's not the syntax i _really_ wanted. i was aiming to make it fairly close to the puppet synta
<ecksit>
syntax*
einarj has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Adding two characters (opening and closing parentheses) is fairly close…
<Ox0dea>
ecksit: Look into #instance_eval and #instance_exec.
yqt has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
theery has joined #ruby
Violentr has joined #ruby
Helheim has quit [Max SendQ exceeded]
dc has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 272 seconds]
texasmade has quit [Ping timeout: 255 seconds]
<Ox0dea>
That shows the two most conventional ways of doing the thing, and it's really quite clean compared to what you can do in most other languages.
chouhoulis has quit [Ping timeout: 272 seconds]
<ecksit>
it looks good but it's still a little way off :(
<ecksit>
perhaps this isn't easily achievable
bodgix has joined #ruby
<Ox0dea>
You're asking for the wrong thing, in my opinion.
casadei_ has joined #ruby
pietr0 has quit [Quit: pietr0]
<Ox0dea>
You can change that do/end to {} if that'd better tickle your fancy.
mamercad has quit [Ping timeout: 260 seconds]
Igorshp has quit [Ping timeout: 250 seconds]
<Ox0dea>
If it's the case that you simply cannot abide Ruby's syntactic limitations, you get to make your own! :)
Vile` has quit [Ping timeout: 252 seconds]
pyrotecnix has joined #ruby
senayar has joined #ruby
mxrguspxrt has joined #ruby
Vile` has joined #ruby
<ecksit>
i was afraid of that Ox0dea :(
<ecksit>
thanks anyway
lapide_viridi has quit [Read error: Connection reset by peer]
casadei_ has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
<Ox0dea>
ecksit: You could probably do something hackish with binding_of_caller.
charliesome has joined #ruby
eL_bAmba has joined #ruby
theery has quit [Ping timeout: 240 seconds]
[k- has quit [Ping timeout: 256 seconds]
<ecksit>
ehhh, that does seem very hackish
zacstewart has joined #ruby
<Mon_Ouie>
It's easier of you allow for a method call at the end of the block
<n1993r>
Ox0dea: how can you tell that it's my first day on irc?
avahey has joined #ruby
<al2o3-cr>
Ox0dea: IYO
<Ox0dea>
al2o3-cr: Really, though?
n1993r is now known as nr1993
<al2o3-cr>
everything is done for a reason, does the inhibit the language?
<al2o3-cr>
*this
<nr1993>
someone told me that my username: [16:15] <TheJH> because your username interpreted as leetspeak reads "nigger" (which I'm sure you were already aware of). also, I'm going to stop talking to you now. bye! [16:15] <n1993r> no i wasn't aware of that [16:16] <n1993r> is this better? [16:16] <nr1993> i just thought n1993r looks cool [16:16] <nr1993> so i set it to that
<Ox0dea>
I think it's reasonable enough to expect to be able to XOR wherever you can AND and OR.
<nr1993>
completely offtopic
theery has joined #ruby
<nr1993>
but i don't get it
<Ox0dea>
nr1993: 6/10
<Ox0dea>
I hadn't even realized.
<al2o3-cr>
use a set then
<pontiki>
nr1993: was it this channel?
<nr1993>
this is the ruby channel
<Ox0dea>
al2o3-cr: By that logic, how did Array#& and Array#| even come into existence?
<nr1993>
according to the rules we can't talk about rails and other things besides ruby
<al2o3-cr>
summer holidays is it?
<pontiki>
yes, it is. was that message you received that you just pasted in here from this channel?
<nr1993>
what's the difference between array$& and array#|?
<nr1993>
i never saw that before
<al2o3-cr>
whut
<nr1993>
no that's a pm from one of the admins of a channel
<pontiki>
nr1993: *WHICH* channel?
<Ox0dea>
pontiki: Please stop feeding?
<nr1993>
security
j4cknewt has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
<Ox0dea>
banister: That won't handle duplicate entries well.
<Fire-Dragon-DoL>
Ox0dea: thanks. I wished for something visually shorter, that's ok. I'll avoid the `-` because it happens in a place called a lot of times, might impact performances
i8igmac has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has quit [Ping timeout: 272 seconds]
mdomino has joined #ruby
<Fire-Dragon-DoL>
thanks anyway guys
weemsledeux has joined #ruby
<Ox0dea>
?guys Fire-Dragon-DoL
<ruboto>
Fire-Dragon-DoL, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
bruno- has joined #ruby
apt-get_ has quit [Remote host closed the connection]
<mdomino>
Hey guys, I'm looking at making a webapp for work that renders some device configuration templates based on form input. I really don't need a full Rails app since there is no data persistence. If I were better at JavaScript the entire thing could probably be done client-side. Is there a better fit than rails/sinatra for something as simple as 'create forms', 'submit forms', 'render templated response compiled from form data'
bruno- is now known as Guest66504
<Ox0dea>
?guys mdomino
<ruboto>
mdomino, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<Fire-Dragon-DoL>
ruboto: you maybe don't consider all cultures, in my cultures "guys", translated in the male version, is considered the neutral form, I had already a long discussion about this =\
ragingcake has quit [Quit: ragingcake]
<Ox0dea>
?guys2 Fire-Dragon-DoL
<ruboto>
Fire-Dragon-DoL, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
weemsledeux has quit [Max SendQ exceeded]
zacstewart has joined #ruby
<banister>
blah blah blah
<Fire-Dragon-DoL>
I believe in speech freedom and whoever consider me sexist for such a thing is in any way not respecting MY culture
<Ox0dea>
mdomino: The term you're looking for is "microframework".
<banister>
so sick of the PC-bullshit that has totally taken over the ruby community
<mdomino>
I like the micro part ;)
<banister>
rubyists need to get out more, that shit is so unbelievably trivial and boring
<apeiros>
Fire-Dragon-DoL: so if it's my culture to just call you asshole, that's A-OK?
<Fire-Dragon-DoL>
apeiros: I believe in speech freedom, you can call me asshole, I'm free to not like you though
mdavid613 has quit [Quit: Leaving.]
<mdomino>
It seems like every site wants me to create some persistent model and link everything to that. Really I need an easy way to generate HTML forms and respond with a simple plaintext response rendered from that form data. I feel like it's probably a solved problem but I just don't know where to start looking to find it
<apeiros>
Fire-Dragon-DoL: well, you're free to behave in whatever way you want outside of #ruby. but not inside. sorry if that's not to your liking.
<apeiros>
Fire-Dragon-DoL: and I don't think it's too much to ask.
<Ox0dea>
mdomino: Just do it with pure Ruby and a Rack handler?
<mdomino>
Never looked int othat
senayar has joined #ruby
senayar has joined #ruby
<mdomino>
Thanks Ox0dea... anywhere else to check while I'm googling furiously?
Guest66504 has quit [Ping timeout: 250 seconds]
theery has quit [Remote host closed the connection]
<apeiros>
Fire-Dragon-DoL: also note that freedom of speech is not freedom of consequences.
<shevy>
hmm... how did it go from guys -> assholes ?
zacstewart has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 272 seconds]
<al2o3-cr>
beats me!
<apeiros>
shevy: Fire-Dragon-DoL made a good call and moved it to #ruby-offtopic. I'm there.
i8igmac has quit [Ping timeout: 260 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
theery has joined #ruby
lwu has quit [Ping timeout: 272 seconds]
theery has quit [Remote host closed the connection]
Ropeney has joined #ruby
AbdulRehman has joined #ruby
lwu has joined #ruby
hanmac has joined #ruby
bronson has joined #ruby
bruno-_ has joined #ruby
theery has joined #ruby
theery has quit [Read error: Connection reset by peer]
theery has joined #ruby
gard has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
Igorshp has joined #ruby
dgutierrez1287 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
AbdulRehman has quit [Quit: AbdulRehman]
AbdulRehman has joined #ruby
AbdulRehman has quit [Client Quit]
spider-mario has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
theery has quit [Ping timeout: 260 seconds]
phutchins has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
Azure has joined #ruby
mdomino has quit [Quit: Page closed]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
helpa has joined #ruby
juanpablo_______ has joined #ruby
towski_ has joined #ruby
j4cknewt has joined #ruby
marr has quit []
devbug has joined #ruby
devbug__ has quit [Ping timeout: 265 seconds]
alveric has quit [Ping timeout: 240 seconds]
juanpablo_______ has quit [Ping timeout: 244 seconds]
Antiarc has quit [Read error: Connection reset by peer]