<sphex>
havenwood: no, syntax error in a custom parser
<havenwood>
ah
alxndr has joined #ruby
bttf has joined #ruby
<havenwood>
i totally misread the question
harleypig has joined #ruby
firevolt has joined #ruby
charles81 has joined #ruby
adambeynon has joined #ruby
pusewicz has joined #ruby
cschneid has joined #ruby
alakra has joined #ruby
whoojemaflip has joined #ruby
v0n has joined #ruby
c0ncealed has joined #ruby
danoo_ has joined #ruby
wookiehangover has joined #ruby
atmosx_ has joined #ruby
ratazzi has joined #ruby
yardenbar has joined #ruby
cgrieger^away has joined #ruby
GarethAdams has joined #ruby
CHVNX has joined #ruby
RegulationD has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
joaomdmoura has joined #ruby
<sphex>
now.. I gotta make a new derived exception class... and.. it gotta pretty-print right and show its error message right. hugh. I don't know how to do anything yet. :/
RegulationD has joined #ruby
cardoni has joined #ruby
manveru has joined #ruby
rfv has joined #ruby
<apeiros>
sphex: just remember not to inherit from Exception directly
<elektronaut>
sphex: good.. encoding is the only thing that makes me feel i know less the more i learn
NightMonkey has joined #ruby
bjeanes has joined #ruby
<apeiros>
at max, inherit from StandardError
<sphex>
dammit I can't think with all this netsplitting
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_blizzy_>
ignore the messy code. it's on line 29
<nietzschette>
you should put your declairation in an initialization function
dopie has quit [Quit: This computer has gone to sleep]
<_blizzy_>
oh, ok.
keen____________ has joined #ruby
<nietzschette>
@moves = [] from line 6 to line 16
<nietzschette>
class BATTLE!?
<_blizzy_>
?
<_blizzy_>
thanks, nietzschette
keen___________ has quit [Ping timeout: 252 seconds]
<nietzschette>
np!
<_blizzy_>
:)
<seanstickle>
Better a class Battle
mcclurmc has joined #ruby
<seanstickle>
Than a class war
<_blizzy_>
lol.
<_blizzy_>
it's a Pokemon bot.
<seanstickle>
Use metaprogramming
<seanstickle>
It's super-effective
<nietzschette>
ahh.
<nietzschette>
I made one for sdl with sprites ripped from ninja warrior
<nietzschette>
it was also super-effective
swgillespie has joined #ruby
<_blizzy_>
nice.
<nietzschette>
does anyone else here use ruby sdl?
mcclurmc has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
<nietzschette>
I've run into issues when I upgrade, and I don't like being stuck in ruby 1.9 and i'd like to get with this century
<seanstickle>
I don't. I have a game in mind, but I feel like it'll probably be easier to make it in JavaScript.
<nietzschette>
yeah. I used ruby to learn GLSL and SDL
<nietzschette>
and I'm starting to migrate code to C
jtdoncas has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<nietzschette>
but I like to use it for some visualization of geometry problems and other bs. But I can't seem to get the latest versions to work
aredridel is now known as ARia
ARia is now known as Aria
mt_ has quit [Remote host closed the connection]
<nietzschette>
it's like, the classes are all loaded but none of their methods. I don't know if this is an error in my build or what
StephenOTT has quit [Quit: StephenOTT]
yqt has quit [Ping timeout: 250 seconds]
Al3ks_ has joined #ruby
startupality has quit [Quit: startupality]
_pakchoi_ has quit [Remote host closed the connection]
baweaver has joined #ruby
htmldrum has joined #ruby
uptownhr has joined #ruby
Al3ks has quit [Ping timeout: 276 seconds]
rafaelsales has joined #ruby
startupality has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has quit [Remote host closed the connection]
uptownhr has quit [Ping timeout: 252 seconds]
startupality has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
nickjj has joined #ruby
seanstickle has left #ruby [#ruby]
j4cknewt has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
jfarmer has joined #ruby
fgo has joined #ruby
jtdoncas has joined #ruby
Agoldfish has quit [Quit: G'Bye]
bentanweihao has joined #ruby
j4cknewt has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 246 seconds]
jtdoncas has quit [Ping timeout: 256 seconds]
Cust0sLim3n has quit [Max SendQ exceeded]
jeaye_ is now known as jeaye
Cust0sLim3n has joined #ruby
hahuang65 has joined #ruby
workmad3 has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
NeverDie_ is now known as NeverDie
blue_deref has quit [Quit: bbn]
hahuang65 has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
bakingbread is now known as icedp
jglover has joined #ruby
<jglover>
has anybody here been able to build and use either Thin or Puma, from a local gem
<jglover>
maybe that makes no sense..
<jglover>
gem install does something to build the parser, in both of those, that doesn't seem to get done if i clone out either repo and include it as a local gem in a project
<toretore>
because then it's not a gem
<jglover>
toretore: hm how so?
<pontiki>
jglover: do you modify the source? otherwise i'm unclear about why you're including it in your repo
<jglover>
pontiki: just interested in how webservers work, so I want to put logger statements in the various files in order to check out the flow of control
<pontiki>
sure, that makes sense. you might need other things installed to make that work, depending on the original gem. i have no idea for puma
<pontiki>
i can't actually answer your quesiton, tho :/
t4nk266 has quit [Ping timeout: 246 seconds]
<jglover>
ill keep investigating then. having exactly the same issue in both gems, and I suspect if I tried any other webserver, it would be the same problem
<jglover>
they both use the modified version of the mongrel http/1.1 parser, built with ragel
<jglover>
and i need to do SOMETHING to get that sucker to work
<pontiki>
it might have to do with how it's started, in either case
<toretore>
did you try building and then installing the gem after you modified the source?
dopie has joined #ruby
<jglover>
toretore: haven't even modified the source yet, just trying to get "hello world" to work
<toretore>
remember to uninstall any puma versions you have installed already
bruno- has joined #ruby
noethics has joined #ruby
dlousy has joined #ruby
<jglover>
man, i feel like its something with the file paths
<jglover>
require': cannot load such file -- puma/puma_http11
<toretore>
what happens when you build and install it>
<toretore>
?
<jglover>
it appears to be fine
<jglover>
no errors
<toretore>
and how do you require it?
<toretore>
don't use a Gemfile
icebourg has joined #ruby
<jglover>
Using puma 2.11.3 from source at /Users/jglover/Projects/puma-test/puma
<jglover>
ah i am using the gemfile
<toretore>
ruby -rpuma -e'puts "hello"'
<jglover>
doesn't like that one
mcclurmc has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<Sypheren_>
Anyone know about any open source projects handling evolutionary neuro networks?
scx_ has joined #ruby
mcclurmc has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
t_ has quit [Ping timeout: 264 seconds]
t_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shevy has quit [Remote host closed the connection]
zenguy_pc has quit [Read error: Connection reset by peer]
dross has joined #ruby
scx has quit [Ping timeout: 264 seconds]
<nietzschette>
I've been dabbling
drewvanstone has joined #ruby
aridere has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
<nietzschette>
I'd love to share but my ruby is broken
jglover has quit [Quit: leaving]
<pabloh>
hello
drewvanstone has quit [Client Quit]
<pabloh>
does anyone knows how to recognize if a filesystem path on a string is a valid windows path?
bnagy_ is now known as bnagy
<nietzschette>
File.directory?(directory)
sdothum has quit [Ping timeout: 244 seconds]
darkf has joined #ruby
cappsio has joined #ruby
<pabloh>
nietzschette, and for paths including file names?
nietzschette_ has joined #ruby
<bnagy>
file?
<bnagy>
bear in mind that what's valid for ruby might not be valid for native win32 APIs or external apps
<bnagy>
ruby itself uses / as separator even on Windows
braincrash has joined #ruby
Casty has joined #ruby
nietzschette has quit [Ping timeout: 246 seconds]
nietzschette__ has joined #ruby
nietzschette__ has quit [Client Quit]
nietzschette_ has quit [Ping timeout: 264 seconds]
<pabloh>
bnagy, but can you not use regular windows for File.read(), for instance?
gnarf_ is now known as gnarf
aridere has joined #ruby
zenguy_pc has joined #ruby
pablo__ has joined #ruby
dross has quit [Read error: Connection reset by peer]
pablo__ is now known as Guest50658
dross has joined #ruby
fabrice31 has joined #ruby
<noethics>
Sypheren_, encog?
pabloh has quit [Ping timeout: 264 seconds]
jgpawletko has quit [Quit: jgpawletko]
ChoiKyuSang has quit [Excess Flood]
<pontiki>
File.read doens't work on windows??
<pontiki>
what?
Tempesta has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
letmein1723 has joined #ruby
dross has quit [Ping timeout: 252 seconds]
dross has joined #ruby
yoongkan_ has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
yoongkang has joined #ruby
iamninja has joined #ruby
Musashi007 has quit [Quit: Musashi007]
pontiki has quit [Quit: ZZZZZZZZ<clunk>NNNNNNNNN]
n008f4g_ has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
mary5030 has joined #ruby
Vile` has quit [Quit: .]
dross has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 256 seconds]
dross has joined #ruby
psy_ has quit [Remote host closed the connection]
havenn has joined #ruby
znz_jp0 has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
seansith has joined #ruby
MatthewsFace has joined #ruby
gix has joined #ruby
arescorpio has joined #ruby
psy_ has joined #ruby
pontiki has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
rehi
Exuma has joined #ruby
shevy has joined #ruby
dross has quit [Read error: Connection reset by peer]
dross has joined #ruby
Lucky_ has joined #ruby
Guest50658 has quit [Quit: Saliendo]
bronson has joined #ruby
michael_mbp has quit [Excess Flood]
santana has joined #ruby
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robertozimek has joined #ruby
michael_mbp has joined #ruby
mcclurmc has joined #ruby
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
Spami has joined #ruby
fgo has joined #ruby
_djbkd has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
aphprentice_ has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<shevy>
yo
fgo has quit [Ping timeout: 276 seconds]
jlast has quit [Ping timeout: 276 seconds]
<Nilium>
Hm, using CURRENT instead of RELEASE might've been a not entirely great decision just because it seems to have limited my use pkg, or I've just set something up wrong
jlast has joined #ruby
ropeney_ has joined #ruby
santana has quit [Quit: leaving]
dross has quit [Read error: Connection reset by peer]
dross has joined #ruby
jfarmer has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ropeney has quit [Quit: Leaving]
letmein1723 has quit [Quit: Bïtçh-X final release ¬ by iRC|pHrEaK ¬ Go get it free at : http://biatch-x.cjb.net]
schy has joined #ruby
scottschecter has quit [Quit: Leaving]
<schy>
Here
<schy>
wrong place
dross has quit [Read error: Connection reset by peer]
dross has joined #ruby
gr33n7007h has quit [Quit: the quieter you become, the more you are able to hear]
Cust0sLim3n has quit [Read error: Connection timed out]
<shevy>
lol
Cust0sLim3n has joined #ruby
<shevy>
#ruby is never the wrong place!
<schy>
lol it was the wrong place just for a moment
<schy>
I was going to send a screenshot
<schy>
I <3 #ruby even tho I just lurk it.
<shevy>
does anyone of you use ruby from the latest sources? I mean git-sources or svn-sources, whatever version control system is in use
<shevy>
I have a weird problem with the latest ruby-2.2.2 tarball suddenly; I installed some other distribution
<shevy>
linking miniruby
<shevy>
gcc: error: miniprelude.o: No such file or directory
avahey has joined #ruby
<shevy>
schy lurking and idling makes us stronger!
<schy>
lol I want to have strong bones!
Plimsol has joined #ruby
<shevy>
lol
<schy>
I guess milk would be better than IRC :\
al2o3-cr has joined #ruby
<schy>
but that method isn't found in the fridge class....
jlast has quit [Remote host closed the connection]
zenguy_pc has quit [Read error: Connection reset by peer]
<sphex>
[k-: so that it reports the original line number from which the parsed code was generated in stack traces, syntax error exceptions, etc. C and Perl (and prolly others) change their idea of the current line number when they encounter "#line N" comments, which allows just that. (yacc/lex use that, for example)
<[k->
Wait so you are changing line numbers and want the original one?
<[k->
I dont know cpp so...
<sphex>
[k-: well, the generated code line numbers won't match the ones from the input from which it was generated. so yeah, I'd want to "fix" them.
<sphex>
shevy: oh.. I see it allows to set the current line number / file name at the beginning of the parsing, but not sure afterward... :/
<[k->
Why not just use a map then
yardenbar has joined #ruby
amclain has quit [Quit: Leaving]
Torrieri has quit [Quit: Be back later ...]
<shevy>
sphex if you don't find an easy way to change it, you could always try to write a feature suggestion at http://bugs.ruby-lang.org/projects/ruby-trunk for the ruby core team; I am not sure how many people here on #ruby know the internals well... I think there is #ruby-core or #ruby-dev either of these two; but they may be less active as there be less people there
bruno- has joined #ruby
adac has joined #ruby
<sphex>
oh ok. yeah I'll do that if I can't find a way.
<[k->
instance_eval accepts line_no's too
<[k->
I...try abit too hard sometimes
<sphex>
[k-: oh yeah... actually.. I guess I could generate code with some lines merged with ";", and emit some extra blank lines to keep the parser's line numbers in sync with the original ones. kinda kludgy though. :/
schy has quit [Quit: WeeChat 1.2]
bruno- has quit [Ping timeout: 246 seconds]
tsvenson has quit [Quit: Leaving]
<[k->
I mean having a key-value store to map the line no to each other
JoshGlzBrk has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<[k->
So when you see line 7 on the generated one, you can replace it with 2 which is the original line
<sphex>
[k-: that doesn't get it "into ruby", so the exceptions/stacktraces won't have those line numbers
<shevy>
"Nobuyoshi Nakada" is one of the main devs, like matz' right hand (matz works mostly on mruby https://github.com/mruby/mruby)
j4cknewt has joined #ruby
<sphex>
oh really? 6-12? pretty surprising given the probably millions of users depending on it.
olistik_ has quit [Remote host closed the connection]
duderonomy has joined #ruby
<shevy>
well there are some sporadic committers
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
gr33n7007h has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
neanderslob has joined #ruby
blue_deref has quit [Quit: bbn]
<shevy>
from that list it is mostly ... Yusuke Endoh; Naohisa Goto; Nobuyoshi Nakada; Koichi Sasada; Yui Naruse, I may have forgotten one or two more japanese devs. Unsure about non-japanese devs in core team being regularly active
<shevy>
Aaron Patterson aka tenderlove perhaps
TinkerTyper has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 276 seconds]
j4cknewt has quit [Ping timeout: 246 seconds]
<sevenseacat>
yeah tenderlove is ruby core, also rails core
<sevenseacat>
the only one to be both
<baweaver>
Is he really the only one? Seems like there may be a few more.
<baweaver>
Xavier Shay wouldn't surprise me if he was.
<sphex>
does ruby have a large japanese user base too?
Torrieri has quit [Ping timeout: 252 seconds]
<sevenseacat>
i thought he was. I may be wrong.
* baweaver
shrugs
<sevenseacat>
its been known to happen very very occasionally.
<baweaver>
I've never looked into it myself.
TinkerTyper has joined #ruby
<shevy>
sphex somewhat yeah, I think non-japanese users outnumber the japanese users by a huge margin actually
<shevy>
but it's hard to say, I can't read japanese
<shevy>
on rubygems.org though, I think there are more non-japanese than japanese
<pragmatism>
My understanding is that Tenderlove contributes to both the Ruby and Rails cores.
<shevy>
:)
<sphex>
I'll probably end up using ruby a lot; I hope I'll contribute a bit to it.
<pragmatism>
Ruby is fantastic.
<pragmatism>
I've worked my way up the chain, and while slow, Ruby is my favorite language to build with.
User458764 has joined #ruby
<sphex>
oh yeah. I was mostly using perl as a scripting languages, but.. well, that was my problem :p. I started learning python a few months ago and really didn't like it. I was used to doing things the way I wanted to. :/
<pragmatism>
Have you worked in any other languages?
<sphex>
mostly C/C++. I really like Scheme, but I never get to really use it.
<pragmatism>
Object orient programming is worth doing a survey of
<pragmatism>
Oh cool
fusillicode1 has joined #ruby
fusillicode1 has left #ruby [#ruby]
<pragmatism>
Yeah, then you're set. I've found Ruby to be the most expressive language I've used
<pragmatism>
I really enjoy working in it, and it is so easy to read comments are actually considered bad-practice.
<pragmatism>
woo
<pragmatism>
But check out jRuby and Rubinious.
<sphex>
The smalltalk-ish design is pretty neat too... first time I ever used something like that.
<pragmatism>
There are non-MRI interpreters that don't implement a GIL.
<pragmatism>
Yeah, plus people like Sandi Metz are in the community now because of smalltalk.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pragmatism>
Excited to see what Ruby does in the next few years. Been playing around a lot with functional languages, too.
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
_blizzy_ has joined #ruby
antgel has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
<sphex>
pragmatism: personally I'm not too worried about the performance for now. it seems like MRI had *huge* performance boosts lately; method calls look really fast compared to what I'm used to with perl. dynamic language OO design won't stress me out for the first time ever, eh. :p
last_staff has joined #ruby
scx has joined #ruby
<sphex>
and I've always used processes for concurrency with scripting languages. mostly because I didn't really have a choice.
<shevy>
Last Update: 2014-04-07, so he did not abandon it entirely...
bruno- has joined #ruby
scx has quit [Ping timeout: 246 seconds]
<sphex>
shevy: oh.. interresting. I heard about a few CommonLisp graphical games before.. but not Scheme, until now!
awer has joined #ruby
<shevy>
the world is written in .scm files
<shevy>
(say knpc "According to legend, the sorceress Isin almost single-handedly defeated two armies. "
<shevy>
apparently that's some npc-dude speaking
<sphex>
hrm. looks like he has his own scheme interpreter with persistency support, among other things
_ht has joined #ruby
fgo has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
neanderslob has quit [Remote host closed the connection]
fgo has quit [Client Quit]
sameerynho has joined #ruby
<awer>
Hi. does anyone have a working example of posting a message with a set of facebook groups?
<awer>
i would like to post one message multiple times to facebook groups by using a ruby script
<awer>
i have got this work for pages just cant get it to works for groups
lxsameer_ has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
<awer>
im using koala
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
micmus has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
<shevy>
lol
sameerynho has quit [Ping timeout: 256 seconds]
<shevy>
baweaver look! they are using not only beavers but also koalas now
<[k->
shevy pls :(
mcclurmc has joined #ruby
unshadow has joined #ruby
<[k->
if it doesn't work using koala, contact the maintainer?
adamski2600 has joined #ruby
<[k->
if you need it now, try a different library
datanoise has joined #ruby
<awer>
ok thanks
sinkensabe has joined #ruby
sameerynho has joined #ruby
* baweaver
wanders back off
workmad3 has joined #ruby
lxsameer_ has quit [Ping timeout: 252 seconds]
scx_ has quit [Ping timeout: 252 seconds]
mcclurmc has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
datanoise has quit [Ping timeout: 246 seconds]
adamski2600 has quit [Ping timeout: 246 seconds]
Cust0sLim3n has quit [Ping timeout: 246 seconds]
scx has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
The_Phoenix has joined #ruby
Cust0sLim3n has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
casadei has quit [Remote host closed the connection]
hahuang65 has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
djbkd has quit [Quit: My people need me...]
duncannz has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
<pragmatism>
sphex done anything functional?
sandstrom has joined #ruby
djbkd has joined #ruby
Torrieri has joined #ruby
bMalum has joined #ruby
al2o3-cr has joined #ruby
swgillespie has joined #ruby
olistik has joined #ruby
Torrieri has quit [Ping timeout: 256 seconds]
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
DEA7TH has joined #ruby
ruby-lang521 has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
michael_mbp has quit [Excess Flood]
roolo has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
bMalum has quit [Quit: bMalum]
beneggett has joined #ruby
michael_mbp has joined #ruby
blackmes1 has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Igorshp has joined #ruby
chinmay_dd has quit []
sandstrom has quit [Quit: My computer has gone to sleep.]
dlousy has quit [Quit: Leaving]
Jackneill has joined #ruby
TvL2386 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
peter_paule has joined #ruby
blackmes1 has quit [Ping timeout: 256 seconds]
duncannz has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
air_ has joined #ruby
fabrice31 has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
adac has joined #ruby
wildroman2 has quit [Read error: No route to host]
dfockler has quit [Ping timeout: 252 seconds]
AvidChronos has joined #ruby
<pragmatism>
Anyone interested in sharing lightning talks? My company does them weekly, and it would be awesome to hear about some of the problems other engineers are solving.
<pragmatism>
* s/company/employer/g
fabrice31 has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 276 seconds]
fantazo has quit [Ping timeout: 246 seconds]
allomov has joined #ruby
esposito has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 256 seconds]
esposito has quit [Client Quit]
mcclurmc has joined #ruby
duncannz has joined #ruby
bMalum has joined #ruby
Spami has joined #ruby
micmus has joined #ruby
Ropeney has joined #ruby
sinkensabe has quit [Remote host closed the connection]
revath has joined #ruby
AlexRussia has joined #ruby
djbkd has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
blackmes1 has joined #ruby
starfox_1f has quit [Ping timeout: 252 seconds]
olistik has quit [Remote host closed the connection]
<shevy>
"I first saw ASCII art in the summer of 1995 and was intrigued by it. My immediate thought was that there were people in this world who had too much time on their hands"
<shevy>
can this be
<shevy>
people who have too much time on their hands
railsraider_ is now known as railsraider
* shevy
looks at #ruby in disbelief.
chinmay__ is now known as chinmay_dd
j4cknewt has joined #ruby
akkad has quit [Excess Flood]
akkad has joined #ruby
bentanweihao has quit [Remote host closed the connection]
subtwo has quit [Quit: (null)]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
mattarse has joined #ruby
datanoise has joined #ruby
aryaching has joined #ruby
workmad3 has joined #ruby
revath has quit [Ping timeout: 265 seconds]
[k- has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
dorei has joined #ruby
[k- has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
datanoise has quit [Ping timeout: 265 seconds]
<jesterfraud>
I don't have enough time on my hands, because I spend it all playing games
<jesterfraud>
does that count shevy?
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.2]
Synthead has quit [Ping timeout: 244 seconds]
<shevy>
what kind of games?
<shevy>
my high days of games sort of stopped... I am not even writing any games in ruby either
j4cknewt has quit [Remote host closed the connection]
vasilakisfil_ has quit [Quit: Konversation terminated!]
rubie has joined #ruby
vasilakisfil_ has joined #ruby
<shevy>
it's often the case that 3D engines and similar, often written in C++, will have bindings for python
<shevy>
and not for ruby
<shevy>
so that also sucks
lkba has joined #ruby
fantazo has quit [Ping timeout: 276 seconds]
vasilakisfil_ is now known as vasilakisfil
rubie has quit [Ping timeout: 265 seconds]
yoongkang has quit [Remote host closed the connection]
revath has joined #ruby
mcclurmc has joined #ruby
_blizzy_ has joined #ruby
yoongkang has joined #ruby
kaichanvong_ has joined #ruby
awer has quit [Ping timeout: 276 seconds]
Synthead has joined #ruby
j4cknewt has joined #ruby
mcclurmc has quit [Ping timeout: 252 seconds]
peter_paule has joined #ruby
startupality has joined #ruby
datanoise has joined #ruby
t_ has quit [Ping timeout: 252 seconds]
vasilakisfil has quit [Read error: Connection reset by peer]
prasselpikachu_ is now known as prasselpikachu
vasilakisfil_ has joined #ruby
vasilakisfil_ has quit [Client Quit]
vasilakisfil_ has joined #ruby
nertzy3 has quit [Ping timeout: 276 seconds]
otherj has joined #ruby
vasilakisfil_ has quit [Ping timeout: 256 seconds]
kraljev11 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Aswebb_ has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
t_ has joined #ruby
vasilakisfil_ has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
A205B064 has joined #ruby
Torrieri has quit [Ping timeout: 255 seconds]
allomov has joined #ruby
revath has quit [Ping timeout: 276 seconds]
bohallor has joined #ruby
vasilakisfil_ has quit [Ping timeout: 256 seconds]
pontiki has quit [Quit: ZZZZZZZZ<clunk>NNNNNNNNN]
t_ has quit [Ping timeout: 256 seconds]
oddmunds1 is now known as oddmunds
j4cknewt has quit [Remote host closed the connection]
<bougyman>
seems a bit bound to those active record models, but maybe that's just for the examples
x0f has quit [Ping timeout: 252 seconds]
<jesterfraud>
bougyman, "If you're not using ActiveRecord, the TablePrint default is to show all the methods defined directly on your object (nothing from superclasses/mixins)."
mary5030 has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Zinox101 has quit [Quit: Zinox101]
mcclurmc has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
serivichi has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
serivich has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
<shevy>
bougyman hmm
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<shevy>
bougyman if you require the file from another file as well?
scottstamp has joined #ruby
<ddv>
what do you prefer and why? 1) next if !header == 'ta' || !header == 'tz' 2) next if header != 'ta' || header != 'tz' 3) unless header == 'ta' || header == 'tz'
<shevy>
if they are in a module or class, you could do: Name.constants
<jgt>
shevy: I mean anything that looks like a class
<shevy>
aha
<jgt>
I have this rails app with a seeds.rb file
Torrieri has quit [Ping timeout: 276 seconds]
<jgt>
I want to get a list of classes referenced in that seeds.rb file
<jgt>
so I can exclude them from DatabaseCleaner
<jgt>
rather than write them all out by hand
<jhass>
uh
free_speech has joined #ruby
<jhass>
write them out by hand
<shevy>
if ruby would only allow per-file manipulations like that! ".rb file, tell me the constants you use"
<shevy>
though I guess it's not a very common use case actually
<Mon_Ouie>
Maintaining the complicated logic to properly detect the right constants is probably more work than maintaining the list of classes
_blizzy_ has quit [Ping timeout: 248 seconds]
<jgt>
call me naïve, but the logic doesn’t seem to complicated to me, given all classes referenced in seeds.rb are written in the same way
<jgt>
it’s basically SomeModelName.create([…]), but 21 times
<jgt>
s/to/too/
micmus has quit [Ping timeout: 264 seconds]
<jgt>
eh… I guess I’ll just write them
p1k has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<Mon_Ouie>
You could keep that list somewhere and loop over it to call create like seeds.rb does, and use it to exclude it from DatabaseCleaner
<p1k>
hi
<jhass>
p1k: hi
vasilakisfil_ has joined #ruby
iamninja has joined #ruby
<Mon_Ouie>
But actually looking at the way the code looks at runtime is usually only a good idea for development tools, not for your application's code
<p1k>
so I'm trying rbenv in a container instead of rvm to manage versions, and does it not auto-set new gem-paths when you switch versions? or am I missing something?
<jgt>
Mon_Ouie: Do feature tests count as development tools? Or application code?
noethics has joined #ruby
Aswebb_ has quit [Ping timeout: 275 seconds]
rkadius has joined #ruby
vasilakisfil_ has quit [Client Quit]
countryHick has joined #ruby
sharpmachine has joined #ruby
vasilakisfil_ has joined #ruby
<shevy>
jgt it should be trivial to grab all constants from a given .rb file; they must start with an uppercase character
<Mon_Ouie>
Do you have tests that say 'code should look like X'? I think tests should test the behavior of code, not how it is structured, etc. --- otherwise those tests are just going to break if the implementation changes, even if it still works correctly
<jgt>
Mon_Ouie: I’m not sure that’s relevant to this discussion
migbar has quit [Ping timeout: 255 seconds]
xtsee has quit []
sharpmachine has quit [Remote host closed the connection]
xtsee has joined #ruby
sharpmachine has joined #ruby
rkadius is now known as arkadius
rubie has joined #ruby
Aswebb_ has joined #ruby
micmus has joined #ruby
arkadius is now known as rkadius
<jgt>
well, this seems to be a good start…
<jgt>
File.open("db/seeds.rb") { |file| file.each { |line| puts line if line =~ /\.create/ } }
tvw has quit []
<jgt>
that gets me the right lines
<jhass>
seriously though, if I'd discover that in a codebase the author would get a long grumpy stare from me
rafaelsales has joined #ruby
<ddv>
it's a pretty weird thing to do
rubie has quit [Ping timeout: 265 seconds]
The_Phoenix has quit [Quit: Leaving.]
rkadius has quit []
e1nh4nd3r1 has joined #ruby
vasilakisfil_ has quit [Ping timeout: 256 seconds]
<jgt>
I don’t see the problem
<Mon_Ouie>
Weird is fine, but it's extremely fragile. You'd have to read a completely different file to see why changing the syntax of the code in seeds.rb breaks things.
sinkensabe has joined #ruby
<jgt>
Mon_Ouie: That’s a valid point
e1nh4nd3r has quit [Ping timeout: 246 seconds]
<jgt>
I’m not sure what code is supposed to look like in seeds.rb though, if not SomeModel.create(…
<jhass>
I've seen FactoryGirl.create
<jgt>
I’d say my solution is actually more robust than writing all the tables out, since I don’t need to keep them in sync if I add to seeds.rb
<Mon_Ouie>
If you had a list of the model names and the arguments to pass to create, you could just iterate over that list in seeds.rb to call create
<Mon_Ouie>
And then you could also extract the name of the models from that list for DatabaseCleaner
sinkensabe has quit [Remote host closed the connection]
<jgt>
Mon_Ouie: I’m curious how that would look
<jgt>
would I separate the model names from the attributes?
<shevy>
that is used by other programs (.rb files)
<shevy>
then I should reset its original value again lateron right?
rubie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
fsvehla has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
<jhass>
shevy: if you have concerns about that you should seek a better class design with stronger encapsulation
<bpfh>
A question for you guys: what application do you use in your workplace for help desk services? We've been trying redmine here, but the help desk thing specifically IMO is not very suited for it
<shevy>
oh you are doing lots of assumptions; for instance, I am looking at code written by someone else
<jhass>
but yes, if you have to modify it you should reset it
<shevy>
the code confused me
<shevy>
he was using: $/ = "\n\n"
<shevy>
and then DATA.readlines.sample
<noethics>
SIDE EFFECTS
<lupine>
some ruby globals are thread locals
<lupine>
I don't think $/ is one of them
<lupine>
seriously, sometimes ruby needs to GTFO
<jhass>
shevy: doesn't readlines take that as parameter?
<shevy>
lupine I get scared by those globals
<shevy>
jhass yeah, I realized that too, which made me wonder even more about that code :))
maia has joined #ruby
<jhass>
$/ is basically just the default value for a bunch of parameters
<jhass>
it should be a constant IMO
<shevy>
yeah
<Xeago>
is there a loop_with_counter?
fsvehla has quit [Client Quit]
<Xeago>
or something similar?
<shevy>
or obtainable in another way, like through Kernel.method or something like that
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Xeago>
I guess I can share my problem, don't provide solutions though
<jhass>
Ch0c0late: I'd fiddle with Time#strptime and Time#strftime (both available after require "time")
<Ch0c0late>
jhass: Yes, but I wanted to propose my own solution to see how I think stuff
<Xeago>
The data structure: ary=[[streamer, subject, … ], … ]. Align on screen with a max_width, with minimum 2 spaces padding between the different elements in the tuple. See https://gist.github.com/Xeago/9c3f09d333a37a942603 Rather then ary.each{|e| puts e #first example }. Align it nicely second example.
<Xeago>
jhass: questions regarding the problem?
railsraider has quit [Quit: railsraider]
mdw has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
rubie has joined #ruby
<jhass>
Xeago: I'd just iterate twice, one time to find the maximum length (Array#max) and then for the output (String#l/rjust might get handy)
bigmac_ has quit [Quit: Leaving]
joast has joined #ruby
<Xeago>
jhass: I need to find the maximum length for each column. Again please don't provide a solution yet :)
<jhass>
yup
scripore has joined #ruby
<shevy>
jhass do not provide a solution!!!
* jhass
whispers "nested maps" and nothing more
datanoise has joined #ruby
jgt has joined #ruby
Cache_Money has joined #ruby
<jhass>
Ch0c0late: how about extracted AM/PM with input[-3..-1] ?
<jhass>
eh, -2
<Ch0c0late>
jhass: Good idea
<jhass>
Ch0c0late: I'd then .chomp that of and then split(':').map(&:to_i)
aryaching has quit [Ping timeout: 264 seconds]
<Ch0c0late>
jhass: Yup
endash has quit [Quit: endash]
senayar has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
TvL2386 has quit [Quit: Ex-Chat]
<jhass>
to me the comparisons feel backwards btw, I like variable == literal, to read if thing_i_am_unsure_about is foobar
<shevy>
c_nick, and file /usr/include/sqlite3.h exists?
<shevy>
not sure how windows deals with that path
mistnim has quit [Ping timeout: 264 seconds]
<bougyman>
Xeago: how'd it end up?
<bougyman>
i went away for a while.
mdw has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
serivichi has quit [Ping timeout: 255 seconds]
peter_paule has joined #ruby
t_mmyv has joined #ruby
kobain has joined #ruby
<Ch0c0late>
jhass: Nice
<awer>
hi, im trying to email a group of email address's. The first part of the email address is stored in a file and the proceeding @ and domain part are the same. I want to send the email with a message which has links in it. Thsi is what i have so far but cant seem to get it to work as i expect. can anyone advise on what i need to do please?#!/usr/bin/ruby
<awer>
File.open("/home/awer/coding/ruby/fb-sharing/id.txt", "r") do |f|
<c_nick>
shevy: sqlite3.h is given through the option --with-sqlite3-include its there in that directory however its not picked up from there. the stackoverflow reference somehow gets the job done but not getting it at my end
<c_nick>
can someone help me with sqlite3 gem installation
luckyruby has joined #ruby
<awer>
anyone able to comment ?
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
Cache_Money has joined #ruby
vikaton has joined #ruby
workmad3 has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
bohallor has joined #ruby
sinkensabe has joined #ruby
uptownhr has quit [Quit: uptownhr]
s2013 has joined #ruby
s2013 has quit [Client Quit]
fsvehla has quit [Quit: fsvehla]
workmad3 has quit [Ping timeout: 244 seconds]
DexterLB has joined #ruby
<awer>
anyhelp would be appreciated.
acovrig has quit [Quit: acovrig]
wildroman2 has joined #ruby
<shevy>
awer I dont even know what the problem is
<shevy>
I also dont know how ssmtp works
enebo has joined #ruby
<shevy>
I tend to use sendmail when I need email; mail = Mail.new
sinkensabe has quit [Ping timeout: 252 seconds]
<awer>
shevy: the ssmtp part works fine
<shevy>
mail.delivery_method :sendmail
enebo has quit [Client Quit]
<shevy>
what are you doing there:
<shevy>
File.open("/home/awer/coding/ruby/fb-sharing/id.txt", "r") do |f|
nertzy has joined #ruby
<awer>
shevy: im trying to open a file and read each line of that file
<shevy>
huh?
<shevy>
read
<shevy>
what do you mean
<shevy>
puts email
<shevy>
you don't seem to read anything there?
<shevy>
anyway, use: File.readlines().each to iterate over every line
<shevy>
I still don't know what the puts email is doing there
sdegutis has joined #ruby
<sdegutis>
Are there any decent OCR packages for Ruby?
<sdegutis>
I mean libraries.
alphaatom|pc has quit [Ping timeout: 272 seconds]
revath has quit [Quit: Leaving.]
<awer>
shevy: so what I'm trying to do is to send an email with the same body of text. the email address it is going to is read from a file called id.txt. each line would indicate a new email message being sent
<awer>
Xeago: because in order for the recient to recieve the email it has to be from an email account that is logged in from a particular gmail accoutn first.
<shevy>
we all kept on telling jhass to not spoil things
<shevy>
and someone else does!
EllisTAA has joined #ruby
<bougyman>
oh, sorry
<Xeago>
I didn't get much besides the output had three columns
<shevy>
Xeago will either solve it - or buy a new cat
<Xeago>
I do wonder though if it implements a max_width?
rubie has quit [Remote host closed the connection]
bougyman_ has joined #ruby
AlphaAtom has quit [Client Quit]
jenrzzz has quit [Read error: Connection reset by peer]
Casty has joined #ruby
shinnya has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
fedexo has joined #ruby
djellemah has joined #ruby
soulcake has joined #ruby
<imperator>
c_nick, dunno if you saw my questions
<imperator>
c_nick, you don't want to use the precompiled binary i take it?
<EllisTAA>
are you talking to me?
k3asd` has joined #ruby
pushpak has joined #ruby
rubie has joined #ruby
<imperator>
EllisTAA, no, c_nick
<c_nick>
imperator: Hi,, Yes I saw your question - my issue is i need to install the ruby gem sqlite3 (preferably locally) So i ran into some issues for which i tried solution from the link i have posted in references
mikecmpbll has joined #ruby
ernie_ has joined #ruby
<c_nick>
unfortunately its not able to find sqlite3.h which is available in the C:\Users\Administrator\ Desktop\sqlite-autoconf-3081002 folder
sinkensabe has joined #ruby
<imperator>
c_nick, ok, let's start with the base directory for your sqlite
serivichi has quit [Ping timeout: 246 seconds]
<c_nick>
ok sqlite-autoconf-3081002 <- downloaded this then did configure make and make install by launching mysys.bad in devkit
<imperator>
the full path is C:\Users\Administrator\Desktop\sqlite-autoconf-3081002 ?
<c_nick>
yes
<imperator>
and if you look there, there are include and lib subdirectories?
<c_nick>
there is no include nor libs. there is a hidden folder (like in linux) -> .libs
k3asd` has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
<imperator>
ok, strange
tvw has quit []
<c_nick>
I thought gcc was looking explicitly for libs and include so i copied .libs as lib folder and created an include having sqlite3.h and sqlite3ext.h
<imperator>
alright, if you make 'lib' and 'include' dirs yourself, then you should be able to do "--with-sqlite3-dir=C:/Users/Administrator/Desktop/sqlite-autoconf-3081002"
<c_nick>
imperator: ok i will try that, strange the package u download is sqlite3-1.3.10 while the package thats getting downloaded from the ruby gem archive on doing gem install is sqlite3-1.3.10-x86-mingw32.gem
soulcake has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
djellemah has quit [Ping timeout: 276 seconds]
vasilakisfil_ has joined #ruby
djellemah has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
peter_paule has joined #ruby
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
Alina-malina has quit [Ping timeout: 256 seconds]
soulcake has joined #ruby
<c_nick>
imperator: thanks for the help :)
Alina-malina has joined #ruby
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
olistik has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peter_paule has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 250 seconds]
<imperator>
c_nick, the "x86-mingw32" is a rubygems thing
<imperator>
it's just letting you know that this is a precompiled 32-bit binary for mingw on x86
<imperator>
(i.e. that's normal)
pyon has quit [Quit: fixin muh confignyareshun nyaa!!1]
datanoise has quit [Ping timeout: 248 seconds]
<c_nick>
imperator: hmm that was the issue, well resolved now. this gem got installed
<imperator>
cool
yfeldblum has joined #ruby
Xeago has quit [Remote host closed the connection]
<c_nick>
bye for now tc
c_nick has left #ruby [#ruby]
<EllisTAA>
it seems that when i request data from my databse my session gets reset … is this something that happens?
tacit7 has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
<EllisTAA>
pontiki: i fixe that already but thanks
<jhass>
EllisTAA: also I won't spend any minute on this until it stores passwords using BCrypt
<EllisTAA>
i do use bcrypt!
<Tau>
is there something like twisted for ruby?
<jhass>
@user.password == params[:password]
<Tau>
twisted python.
<jhass>
no
<Tau>
interesting.
<jhass>
Tau: eventmachine?
<Tau>
jhass i'm new to ruby.
alem0lars__ has quit [Read error: Connection reset by peer]
<jhass>
I'm not 100% sure what Twisted is
<Tau>
starting it today.
<toretore>
eventmachine is what you're looking for
AlphaAtom has joined #ruby
<toretore>
i think
<Tau>
i see.
m8 has joined #ruby
<EllisTAA>
password is the brcrypt method ...
doctorly has joined #ruby
<mozzarella>
yeah, eventmachine and twisted are similar
doctorly has quit [Client Quit]
<jhass>
well, I have no proof of that and you didn't provide demo credentials
doctorly has joined #ruby
<jhass>
my cookie doesn't change while doing a search while signed out
<shevy>
jhass has a cookie
<EllisTAA>
yeah the cookie doesn’t change but the name @ the top disappears and clicking the button doesn’t send u to the results page until you click it twice
<shevy>
and hopefully also a tea
<jhass>
EllisTAA: you realize that you don't show how you display the name so we still have no way to verify your claim?
<jhass>
and still no demo creds
slackbotgz1 has quit [Remote host closed the connection]
<jhass>
I'd try to set it to other valid values or even garbage (empty string, newline whatever)
<davorb>
jhass: oh, sorry. i thought you meant i should set the server to something that doesn't give the 403. but yeah, i'm thinking the same thing, will have to monkey patch net::http.
<jhass>
no
<toretore>
and it looks like you can do persistent connections
<davorb>
jhass: ah, thanks for those on ~L1076. didn't see those.
EllisTAA has quit [Quit: EllisTAA]
<davorb>
good idea, i'll try that.
<davorb>
yeah, setting it to something else didn't work
EllisTAA has joined #ruby
Cache_Money has joined #ruby
rbennacer has joined #ruby
<toretore>
can i make bundler put a gem in vendor/cache without installing it locally first?
skysploit has quit [Remote host closed the connection]
<jhass>
a specific one? don't think so. But maybe you want bundle package ?
<toretore>
it's not installed locally, i only need it on the server
Cache_Money has quit [Client Quit]
<jhass>
bundle package does them all I think, matching your groups platform or not
<toretore>
but doesn't that require me to bundle install it first? i don't really know much about bundler tbh
rbennacer has quit [Ping timeout: 246 seconds]
<jhass>
I wouldn't expect so, if you have a lock that is
CpuID has joined #ruby
fabrice31 has joined #ruby
startupality has joined #ruby
<toretore>
yeah it's still trying to install it
senayar has joined #ruby
uptownhr has joined #ruby
arooni-mobile has joined #ruby
Fluent_ has joined #ruby
ur5us has joined #ruby
<Fluent_>
So, I'm in a little stupid debate
<Fluent_>
Just looking for opinions
<Fluent_>
When submitting code publicly, I was told this is an issue
<Fluent_>
Using != True instead of using == False, of course they both do the same thing logically
fabrice31 has quit [Ping timeout: 272 seconds]
quimrstorres has joined #ruby
<Fluent_>
But one claims it's the 'double negative' of the programming world
<Fluent_>
-.-
<toretore>
>> true != True
<ruboto>
toretore # => uninitialized constant True (NameError) ...check link for more (https://eval.in/385223)
<toretore>
what
<Fluent_>
foo == False, or foo != True
<toretore>
where do you get `False` and `True` from?
<Fluent_>
Some value
<Fluent_>
>> foo = False; foo != True
<ruboto>
Fluent_ # => uninitialized constant False (NameError) ...check link for more (https://eval.in/385224)
<al2o3-cr>
python
<toretore>
so you have two constants named True and False?
<Fluent_>
No, that's not what I mean
quimrstorres has quit [Remote host closed the connection]
<Fluent_>
You have some statement you are checking the condition if it's true of false
<Fluent_>
well checking if it's false
<Fluent_>
by using != True
<toretore>
come up with some real, working code and you'll gen a better answer
<Fluent_>
But I was told to change that to if it == False instead
<mozzarella>
why not use !cond
<mozzarella>
or unless cond
<Fluent_>
Fine, it will be like 2 seconds
codecop has quit [Remote host closed the connection]
<davorb>
ok, turns out it wasn't the header. i have no idea why i can't access sherrihill.net with httparty, while it works just fine with every other client out there.
dross has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 264 seconds]
<Fluent_>
Same thing logically
sarkyniin has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
davedev24_ has joined #ruby
jfarmer has joined #ruby
<mozzarella>
"unless foo" or "if !foo"
<toretore>
first of all, you wouldn't do `== true` in ruby
tractatus has joined #ruby
<Fluent_>
This isn't directly geared towards ruby
<Fluent_>
Just in general procedural languages
<mozzarella>
it's the same in every language
<mozzarella>
why test a boolean against another boolean? it's already a boolean
k3asd` has quit [Ping timeout: 250 seconds]
Deele has quit [Quit: User excited]
<Fluent_>
True that
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
Pupeno has joined #ruby
tacit7 has joined #ruby
atom3_ has quit [Remote host closed the connection]
atom3 has joined #ruby
startupality has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
Torrieri has joined #ruby
quazimodo has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
startupality has quit [Quit: startupality]
Limix has quit [Quit: Limix]
apt-get_ has joined #ruby
ltd has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
tacit7 has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
lala has quit [Quit: Connection closed for inactivity]
Limix has joined #ruby
crankharder has quit [Remote host closed the connection]
phizzbuzz has quit [Ping timeout: 252 seconds]
armyriad has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
vasilakisfil__ has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
swgillespie has joined #ruby
endash has quit [Quit: endash]
blackmes1 has quit [Ping timeout: 272 seconds]
datanoise has quit [Ping timeout: 256 seconds]
tmoor has quit [Quit: Leaving]
Limix has quit [Quit: Limix]
uptownhr has quit [Quit: uptownhr]
e1nh4nd3r has joined #ruby
h4sh3dN4m3 has joined #ruby
Cache_Money has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
Cache_Money has left #ruby [#ruby]
Igorshp has quit [Remote host closed the connection]