<RickHull>
you should be good to go to hack your way from here, but come back for any ruby questions
agent_white has quit [Quit: headinghome]
rkazak has quit [Client Quit]
<lucz>
RickHull: I was just asking to make sure that isn't going to affect any ruby related things?
<lucz>
before I continue
<RickHull>
what we've done is given you a new `ruby` in your path, that is a pristine environment in your local userverse, that you can install gems to
<RickHull>
and you can easily switch ruby versions
<lucz>
byebug-9.0.6 requires ruby version >= 2.0.0, which is incompatible with the current version, ruby 1.9.3p484
<RickHull>
which bundle
<zenspider>
whyyyyy
<zenspider>
why would you use 1.9.3?
<RickHull>
lucz: `which bundle`
Moosashi has quit [Quit: Moosashi]
<lucz>
RickHull: /usr/local/bin/bundle
<RickHull>
eh...
<lucz>
RickHull: lol
<RickHull>
is this a different login session
<lucz>
RickHull: nope, same one
<lucz>
lemme go back and start again, maybe I missed something
StoneCypher has joined #ruby
<lucz>
RickHull: wait I was working as root
<lucz>
RickHull: maybe thats why
<RickHull>
that's a different login session ;)
<lucz>
RickHull: yes
<lucz>
lol
<RickHull>
it's critical you keep the login stuff straight to make chruby work for you
<RickHull>
the login hooks are what make it work
<lucz>
RickHull: yeah im starting to understand it more now
StoneCyp1er has quit [Ping timeout: 240 seconds]
<RickHull>
because it's "your" environment, root doesn't even have it or know about it
<RickHull>
and it will use the system stuff
<lucz>
RickHull: okay so it seems I have to be in the /var/lib/docker/aufs/mnt/c2c6163db6976df8233f87e39f7ef884c5c28844a1765a657835a604bb1ebcd5/var/www/discourse directory
<lucz>
which requires root
<RickHull>
what you can do, if necessary, is add chruby for the root account
<zenspider>
this is a mess and it doesn't have to be with simple discipline
<RickHull>
the root problem is the migration script for discourse is throwing some error about mri_21
<lucz>
RickHull: so just edit my bashrc file for root as I did with ubuntu
<RickHull>
you can do whatever you like, but I'm strongly suggesting moving the file is off the happy path
<RickHull>
and you're probably already off the happy path
<RickHull>
for one, bundler needs a Gemfile to do anything
Trynemjoel has quit [Ping timeout: 245 seconds]
jackjackdripper has quit [Quit: Leaving.]
<zenspider>
fowlduck: I get the same bytes between encode & force_encoding + scrub
<fowlduck>
I mean, there's more than one way to represent the string in UTF-8, apparently. and one seems to produce smaller strings in this case...
dc4 has joined #ruby
<fowlduck>
zenspider: huh, ok
<fowlduck>
I'm on ruby 2.2
<fowlduck>
maybe I should try other versions
<zenspider>
2.4.0 ... lemme check on those
<zenspider>
nope. same on all of them
<zenspider>
oh... I veered... sec
<fowlduck>
I just tried with irb -f, let me try with a file instead
<zenspider>
nope. my fault. I didn't do the original force_encoding
<fowlduck>
ah, ok
<lucz>
RickHull: the gemfile is the .rb file?
gnufied has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Trynemjoel has joined #ruby
toretore has joined #ruby
<Radar>
lucz: it's the file literally called "Gemfile" at the root of the discourse app.
<lucz>
Ohh
kht has joined #ruby
<lucz>
RickHull: docker people seem to think that path is correct
dc4 has quit [Ping timeout: 248 seconds]
<Radar>
lucz: I missed what the problem was today. Can you recap it for me?
<RickHull>
no need to keep pinging me :)
benlieb has joined #ruby
<lucz>
Sorry
<fowlduck>
I do not understand C well enough to figure out why these are different...
<zenspider>
fowlduck: from tenderlove: the encoding of s is binary which means it considers the string one byte at a time. so it doesn't know to combine the two bytes in to utf8. where as the second one where you force encode to utf8. now it's a utf 8 string that contains invalid bytes
<lucz>
Radar: trying to get chruby working so I can run bundle exec on a script, but the script is located within a weird docker image filepath which requires root permissions.
<fowlduck>
zenspider: ahhhh ok, so the force_encode + scrub will have better treatment of real utf-8 strings in this case
StoneCyp1er has joined #ruby
<fowlduck>
zenspider: thanks for looking into that, I was at a total loss
<lucz>
Radar: currently getting this error byebug-9.0.6 requires ruby version >= 2.0.0, which is incompatible with the current version, ruby 1.9.3p484
<zenspider>
lucz: the Dockerfile should probably be creating a user, copying stuff in, and then chown'ing that to that user... root perms should be frowned upon most of the time
<zenspider>
fowlduck: me too. luckily I can backchannel tenderlove :)
<fowlduck>
that's quite an ace up your sleeve, there
<zenspider>
helps that we have lunch every day
a346 has joined #ruby
<fowlduck>
I'll bet
<fowlduck>
well, thanks again
<fowlduck>
and speaking of food... *wanders off to eat tacos*
<RickHull>
how is the cooking going? i made these two easy awesome recipes this week:
<RickHull>
joker5bb, this error makes no sense: "Invalid gemspec in [/home/user/openwrt-pineapple-tetra/build_dir/host/ruby-2.4.0/ext/psych/psych.gemspec]: cannot load such file -- date"
<RickHull>
given the gemspec you pasted. at least, I don't get it
<RickHull>
lucz, paste the command and output. also add `gem env` output
<RickHull>
JSON can be an odd duck, but i think that's mostly settled now in 2.x
<RickHull>
i think the issue is that the json lib is a C extension
<RickHull>
and you need build tools in order to install C extensions
jeyraof has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
<RickHull>
oooh
<RickHull>
problem with Fixnum
<zenspider>
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
<zenspider>
means your setup is fucked
<zenspider>
probably that you don't have headers, which probably means you're still not using your own ruby
<zenspider>
oh wait... no, in this case... 2.4 and up there is no Fixnum, it's all integer
<Radar>
lucz: hi
<RickHull>
eh... `which ruby` and `ruby --version`
<zenspider>
so, old gem version + new ruby
<lucz>
Radar: hi :)
<Radar>
lucz: trying to use json 1.8.3 with Ruby 2.4.0 won't work. `bundle update json` MAY fix it.
nowhereman has quit [Remote host closed the connection]
<lucz>
Radar: thanks I'll give that a go
<RickHull>
i thought you had ruby 2.3 earlier
<zenspider>
the symbol still exists in C tho... rb_cFixnum = rb_cInteger
workmad3 has joined #ruby
<zenspider>
# define rb_cFixnum rb_cInteger
veduardo has quit [Ping timeout: 248 seconds]
<zenspider>
ruby ships with a json lib... never understand why there are so many gems
Derperperd has joined #ruby
<zenspider>
1.8.3 - June 1, 2015 (149 KB)
<RickHull>
lucz, you may want to consider trying on ruby 2.1 - 2.3
hightower3 has quit [Ping timeout: 258 seconds]
<RickHull>
though 2.4 ~shouldn't~ be an issue, right?
<baweaver>
2.4 has been having a lot of fun eh?
<Radar>
RickHull: It is with that particular version of the json gem as we've seen.
<baweaver>
Aha
<Radar>
RickHull: Your advice to use 2.3 is good.
<lucz>
Radar: RickHull: how do I switch to 2.3?
<Radar>
I've had this same json issue on other applications recently too. Upgrading the gem fixed the issue for me which is why I suggested it as a solution here too.
<baweaver>
Radar: got an abridged version of ze shenanigans?
<zenspider>
I think if you're going to use old versions of some gems, you should use old versions of all the gems and perhaps an old ruby. upgrade hell lies madness
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
jshjsh has joined #ruby
<RickHull>
the goal here is to just match the tutorial
<RickHull>
or migration blog post or whatever
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jshjsh has quit [Max SendQ exceeded]
maloik has quit [Remote host closed the connection]
jshjsh has joined #ruby
Ruby_Rocks_007 has joined #ruby
maloik has joined #ruby
swills has quit [Read error: Connection reset by peer]
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
<lucz>
meaning?
kht has quit [Ping timeout: 255 seconds]
<RickHull>
v0v
<lucz>
*sigh*
<lucz>
this is frustrating
<RickHull>
you can try 2.1 or 2.2 -- I'm not familiar with this error but someone with C and more build knowledge could probably figure it out pretty quickly
<zenspider>
RickHull: which tutorial... because the discourse_docker instructions don't seem to say anything about bundle, ruby, or anything else.... just that it works and then you need to configure email and the like
<RickHull>
lucz, can you paste the links to your starting material?
<lucz>
RickHull: starting material as in what?
<RickHull>
blog post / tutorial. your guide to the happy path
<zenspider>
you're still just trying to get discourse up and running tho, right?
kht has joined #ruby
eclm has quit [Quit: WeeChat 1.4]
elifoster has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
<lucz>
zenspider: no discourse runs fine, all I'm trying to do, is import old forums into discourse
<lucz>
the old forums are on a wordpress site, and use a plugin called bbpress
govg has quit [Ping timeout: 256 seconds]
cuong1829 has joined #ruby
<zenspider>
all you should be doing is running some migration script .... it should connect to a db and copy stuff over. the migration dir doesn't even have a gemfile
<lucz>
zenspider: I don't know what you mean by there is no gemfile
<zenspider>
why are you upgrading _anything_? there is no gemfile for that import dir... you should just be connecting to a remote db and slurping stuff over. there's no complexity here
<zenspider>
if discourse is up and running, then you have (nearly) everything you need
<lucz>
zenspider: I think you've missed a boatload of issues I've been trying to fix
<RickHull>
the discourse page says to `bundle exec`
<lucz>
zenspider: ^
<zenspider>
the only question is if the remote forum is on a different DB than your discourse DB
<zenspider>
RickHull: and? If discourse is running, then it HAS EVERYTHING already
<lucz>
zenspider: it is, but I've restored a copy of it onto the same server
<lucz>
zenspider: so what do I do to run the script?
<zenspider>
that means you don't have a remote connection... that's great... still doesn't address anything
<zenspider>
I guess at this point, I'm confused as to why this is confusing.
<zenspider>
I found the install instructions confusing... but you're past that
<zenspider>
now you want to edit that bbpress.rb file with your connection info
<zenspider>
then run it
<lucz>
how do I run it?
<lucz>
./bbpress.rb?
<zenspider>
if discourse is running already... then it has ALL of its dependencies ... the only other variable is what DB you're running for the old forum
benlieb has joined #ruby
<zenspider>
which looks like it is always mysql2? what does discourse run?
<lucz>
errr
jameser has joined #ruby
<lucz>
postgres
nankyokusei has joined #ruby
<zenspider>
ok. so you might need the mysql2 gem installed
<lucz>
thats the issue I hit earlier.
d^sh has quit [Ping timeout: 240 seconds]
<zenspider>
great. that implies you're beyond that
<lucz>
script/import_scripts/bbpress.rb:1:in `require': cannot load such file -- mysql2 (LoadError)
<lucz>
from script/import_scripts/bbpress.rb:1:in `<main>'
<lucz>
this was the mysql error
<lucz>
bundle install didn't fix it
<lucz>
we thought it was because we were running as root, which is advised against. I had to do this because the directory that included the gemfile was under root owned directories
<zenspider>
because it isn't a dependncy for discourse. you'd need to add it to the gemfile... I'd probably just `gem install mysql2` but I don't know how the discourse docker image is organized
<zenspider>
the instructions say you HAVE to be root to do a lot of the stuff
<lucz>
zenspider: yep..
nankyokusei has quit [Ping timeout: 240 seconds]
<RickHull>
we tried a bunch of stuff as root
<lucz>
zenspider: so to repeat my question, how do I run the script.
<lucz>
zenspider: if I'm correcting in understanding I don't run bundle exec ruby etc
maleghast has joined #ruby
<RickHull>
the original issue is that apt or /etc/alternatives or whatever is configured to use ruby 1.9
<RickHull>
and the script barfs on that with a "mri_21" message (platform dependency?)
bruce_lee has quit [Read error: Connection reset by peer]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dgarstang has joined #ruby
<RickHull>
this whole you-must-be-root despite blaring warnings from bundler and shady /var/lib directories
<RickHull>
is this supposed be run from within the container? is that the issue?
<lucz>
RickHull: I don't know
dgarstang has quit [Ping timeout: 252 seconds]
<RickHull>
sorry, I have a mental block on some of this stuff, so my advice is very general. this is probably not very confusing
gajus has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
bmurt has joined #ruby
<zenspider>
lucz: I don't know if you should or shouldn't use bundle exec... what you shouldn' tbe having to do is updating anytihng. if you are, something is wrong
mordocai has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<lucz>
zenspider: how else would I run a ruby script?
<lucz>
zenspider: idk ruby at all other than what I've come across with this script
<zenspider>
it's just a script. you can call ruby blahblah.rb if you want. or follow the bundle exec instructions. it doesnt't MATTER. the point is, you're spending your time fucking with upgrading json
<zenspider>
YOU HAVE JSON
<zenspider>
because discourse has everything it needs to run. you already said you were running it
nofxx has quit [Remote host closed the connection]
<lucz>
zenspider: okay.. I was just doing what was suggested to do
cdg has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby
libastral has quit [Ping timeout: 248 seconds]
nofxxx has joined #ruby
<RickHull>
i'm sure it was someone in here who said to `bundle install` after `bundle exec` failed
<RickHull>
or the bundler output suggested it
<RickHull>
and then the saga begain
libastral has joined #ruby
Rodya_ has joined #ruby
<zenspider>
the bundler output SHOULD NOT suggest it if discourse is running
<RickHull>
it's the bbpress script that needs mysql i guess
nofxx has quit [Ping timeout: 255 seconds]
<lucz>
I'm kinda lost now honestly
<RickHull>
try `gem install mysql` as root I guess
<RickHull>
or mysql2?
<RickHull>
does bbpress or whatever inherently run on mysql? i think they should mention this in the guide
<RickHull>
or that you need to install shit before their shit will flow
<RickHull>
i dunno, i'm still mentally blocked on this junglecraft, probably shouldn't listen to me
cgibsonmm has quit []
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
<lucz>
I'm giving up
<lucz>
I'm not a ruby dev. I have already spent two days on it
<lucz>
I appreciate all of ya'll's help though, muchly
<RickHull>
did you install the mysql gem?
<lucz>
the discourse instance is broken now
<lucz>
because discourse is a shit
<lucz>
doing all of this has done something to it and now it wont run
<RickHull>
the joys of hacking
kht has quit [Ping timeout: 258 seconds]
deadprez has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest5935
hutch34 has joined #ruby
deadprez has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Read error: Connection reset by peer]
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
maleghast has joined #ruby
nofxxx has quit [Remote host closed the connection]
<lucz>
RickHull: well I am somewhat done, I'm off to bed. Thanks again everyone for your help
<lucz>
especially RickHull and Radar
<Radar>
hooray :)
<Radar>
RickHull did all the hard work :)
<Radar>
eeeexcept you didn't fix it all :(
_djbkd has joined #ruby
maleghast has quit [Read error: Connection reset by peer]
<RickHull>
yeah, I didn't sign up to troubleshoot migration instructions ;)
duderonomy has joined #ruby
<RickHull>
so we got to play with chruby instead lol
deadprez has joined #ruby
kht has quit [Ping timeout: 240 seconds]
yonatankoren has joined #ruby
Knew2this has joined #ruby
<Knew2this>
Hello all. I am attempting to create a verification email for my website. Anyone know a good resource to help me out with this?
<baweaver>
Rails
<baweaver>
?
Ruby_Rocks_007 has joined #ruby
<baweaver>
If so, normally something like Devise would take care of it for you. There's also the #RubyOnRails channel which may be a better avenue to ask
dgarstang has joined #ruby
Ruby_Rocks_007 has quit [Client Quit]
pilne has quit [Quit: Quitting!]
deadprez has quit [Remote host closed the connection]
Ruby_Rocks_007 has joined #ruby
deadprez has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dgarstang has quit [Ping timeout: 264 seconds]
jgpawletko has quit [Quit: jgpawletko]
cdg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prawnzy has quit [Remote host closed the connection]
gix has joined #ruby
swills has quit [Ping timeout: 240 seconds]
pingpong has quit [Ping timeout: 255 seconds]
jgorak has joined #ruby
cdg has joined #ruby
araujo has quit [Read error: Connection timed out]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
fowlduck has quit [Remote host closed the connection]
<jgorak>
Hi all. Maybe I'm overthinking this. I sure can't find the right keywords for it... How do I save a variable by value in a closure rather than by reference. I want it to stay the same even if the value changes between creation and call
cdg has quit [Ping timeout: 255 seconds]
aupadhye has joined #ruby
<arquebus>
can someone tell me why alpha.index(b) returns nil instead of the index number on line 15? http://codepad.org/erRSj43G
hutch34 has joined #ruby
<jgorak>
do you need 'b' instead of b?
<jgorak>
nm i missed it
douglascorrea has quit [Remote host closed the connection]
douglascorrea has joined #ruby
valeth has quit [Ping timeout: 264 seconds]
valeth has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
douglascorrea has quit [Ping timeout: 255 seconds]
arquebus has quit [Quit: Leaving]
<jgorak>
chomp your input?
<djellemah>
jgorak: I don't know an easy way to do that. My guess is the hard way would involve passing a block to a new of a class you define (and capturing the value you want there), and possibly working with the block's binding :-O Maybe I'm wrong.
<djellemah>
s/new/new instance/
<jgorak>
Thanks. I was thinking of that if there wasn't a more elegant way. I'm not even sure I need to do it, but just too curious.
<jgorak>
arquebus - in addition to probably needing to chomp, I think you are using name_arr and num_arr interchangably.
brocktimus has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
Channel6 has quit [Quit: Leaving]
hotpancakes has quit [Ping timeout: 240 seconds]
haylon_ has quit [Quit: Leaving]
statelesscode has quit [Quit: statelesscode]
hotpancakes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renchan has joined #ruby
meinside has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
brent__ has joined #ruby
arup_r has joined #ruby
Guest42151 is now known as ged
ged is now known as Guest9041
testuser2 has joined #ruby
pingpong has joined #ruby
<testuser2>
i have a string of url = "http://example.com/a/b/123/c" . How can I replace only that 123 number with 456?
hotpancakes has joined #ruby
<testuser2>
the number after "b/" should be replaced. and i hont know value of old number.
montanonic has quit [Read error: Connection reset by peer]
<baweaver>
can't really say much with fake code, not enough context to suggest something better.
<arup_r>
yes typing. actual code
<arup_r>
fake code was there to reproduce the usecase
ifctj has joined #ruby
<arup_r>
sometime people say don't give us to write your business code.. so didn't show on first attempt
<baweaver>
I'm willing to bet you actually want map join for string printing
<arup_r>
2 mins pls
cdg has joined #ruby
Rufus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
blackbom1 has quit [Read error: Connection reset by peer]
blackbom1 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
icedp has quit [Ping timeout: 240 seconds]
davezd has quit [Ping timeout: 240 seconds]
Kestrel-029 has quit [Ping timeout: 255 seconds]
<arup_r>
`@report` crated from a controller code. Not showing here. Now using the `@report` I am making an html and then converting it to pdf. The problem is last "page-break" class. It is not needed, I have to skip the print of it when current object is the last object in the array. Otherwise it is creating a blank page in pdf.
<duper>
i was hoping I wouldn't need an API key :/
<duper>
guess it's unavoidable
<baweaver>
They deprecated their public APIs so I'd think so
<baweaver>
unless you go with DuckDuckGo or something
blackmesa has joined #ruby
conta has quit [Ping timeout: 252 seconds]
StoneCypher has quit [Ping timeout: 240 seconds]
<acalycine>
Why is this returning true?
<acalycine>
if hash.any? { |word| "dlasdl" } == true
<acalycine>
puts "Cool."
<acalycine>
end
<baweaver>
read
<baweaver>
it takes the value of the block
<baweaver>
and sees if any are true
haxrbyte has joined #ruby
<baweaver>
you don't have a boolean expression in there
Cohedrin_ has joined #ruby
<acalycine>
I thought it output a boolean expression?
hotpancakes has joined #ruby
<baweaver>
well, you do, just probably not the one you intended
<baweaver>
Tell me how `any?` works
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<acalycine>
Oh. I've got to do it the reverse
ICantCook has quit [Quit: bye]
<baweaver>
and then tell me what values in ruby are falsy
jenrzzz has joined #ruby
<acalycine>
it always gives true if not false
<baweaver>
also == true is redundant
* dminuoso
raises his hand
<dminuoso>
baweaver: me me me
<acalycine>
So if returns false then
* baweaver
slaps dminuoso with a fish
benlieb has quit [Quit: benlieb]
<dminuoso>
:(
<baweaver>
Enough of your carp
<baweaver>
XD
<duper>
baweaver: thanks.. i'll take a look at duckduckgo.. at this point just hoping google isn't going to charge me if i exceed a certain quota
nankyokusei has joined #ruby
<duper>
really a meta-search solution would be ideal
haxrbyte has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
baweaver: It's amazing, modern C++ encourages the usage of <algorithm>, at times it feels very Ruby-esque with all the lambdas. :)
<dminuoso>
C++ got lambdas right in comparison with Ruby
pwnd_nsfw has joined #ruby
haxrbyte has joined #ruby
<baweaver>
A lot of languages did, mainly due to Ruby not liking parens
<duper>
i don't think i've ever had nokogiri compile successfully btw
<baweaver>
I still think that's a critical failure of Ruby
<dminuoso>
Absolutely not.
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<duper>
dminuoso: haha, you consider lambdas Ruby-esque? :) I always thought of them as LISP-ish.
<dminuoso>
duper: Not lambdas, but rather <algorithm> in general
haxrbyte_ has joined #ruby
<duper>
all of the comp.sci professors using the C++ STL seem to dominate at the FaceBook Hacker Cup competitions cause noone else can write code fast enough that runs fast enough to solve the solutions for the contest..
haxrbyt__ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
<duper>
dminuoso: oic.. well, you can get a lot of algorithmic code for Ruby (and many other langs) from rosettacode.org (or pseudo-code from nist.gov/dads)
nankyokusei has quit [Ping timeout: 258 seconds]
<dminuoso>
duper: The implementations are very efficient, I even make wide use of <algorithm> in my kernel, because the code generated is as efficient as in-place loops and whatnot.
<dminuoso>
(As long as you keep optimizations enabled)
griffindy has joined #ruby
<duper>
dminuoso: i have an android kern dev friend that sometimes has to disable all compile-time optimizations to avoid panics
<dminuoso>
Welcome to the world of undefined behavior.
hotpancakes has quit [Ping timeout: 245 seconds]
<duper>
what modern kernel is written in C++ besides macOS (or maybe ReactOS..)
haxrbyt__ has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
<duper>
can't really call NT true ISO C++ ..
haxrbyte has joined #ruby
<dminuoso>
duper: ReactOS is definitely the first that comes to mind.
<duper>
i dunno tho maybe the newer VC++ releases are better at conforming to standards but we just got off-topic
haxrbyte has quit [Remote host closed the connection]
<dminuoso>
duper: It's not about viability, because C++ is much more viable as C, but because of history it did not have a chance for adoption.
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<dminuoso>
Currently there's lots of arguments being made in favor of Rust for OS development over C++
<duper>
dminuoso: have you seen the preprocessor macros that implement anonymous functions in ANSI C?
<duper>
dminuoso: =^O get out!
<baweaver>
I prefer the feel of Rust to C, C++, and Go
bkxd has quit [Ping timeout: 256 seconds]
<dminuoso>
duper: Lots of folks argue that modern C++ can be very stable, but there's lots of ways to really quickly crash things in terrible ways.
<duper>
isn't MSFT doing some embedded systems with C++/CLI now?
<duper>
dminuoso: no doubt, but CFG is really going to help
<dminuoso>
duper: Unsure how that is related.
testuser2 has quit [Quit: leaving]
bkxd has joined #ruby
<duper>
dminuoso: *shrug* same way a lot of memory protection and anti-exploitation features prevent crashes
<dminuoso>
duper: For example you provide a std::priority_queue for some custom container and fail to provide a Compare type with strict weak ordering. On modern implementations this will crash the living crap out of really deep functions inside libstd++-v3 wondering what just happened, despite your best attepts to writing "modern safe C++"
Guest9041 is now known as ged
<dminuoso>
Usually with that you end up in ##gcc channels or the bug report of GCC, with people ending up telling you "yo, your Compare sucks"
ged is now known as Guest34760
<dminuoso>
Anyway
<duper>
heh.
<dminuoso>
kinda wrong channel to discuss this
<duper>
we'll take to privmsg
cdg has joined #ruby
<baweaver>
#ruby-offtopic tends to be safe for much of anything
<baweaver>
except actual ruby questions
<baweaver>
that's for #ruby-offtopic-offtopic
pingpong has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
Guest43 has joined #ruby
pingpong has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
Guest43 has quit [Client Quit]
hutch34 has joined #ruby
ddffg has joined #ruby
djbkd_ has joined #ruby
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
djbkd_ has quit [Ping timeout: 240 seconds]
<duper>
does ruby have anything that can compete with mitmproxy yet?
<duper>
(not trying to be a python troll i promise) i actually despise python..
amclain has quit [Quit: Leaving]
anisha has joined #ruby
astrobunny has joined #ruby
Rich_Morin1 has joined #ruby
Rich_Morin has quit [Ping timeout: 255 seconds]
rideh- has quit [Ping timeout: 276 seconds]
PaulCapestany has quit [Ping timeout: 255 seconds]
PaulCape_ has joined #ruby
shortdudey123 has quit [Excess Flood]
conta has joined #ruby
shortdudey123 has joined #ruby
tdy has quit [Quit: WeeChat 1.7]
rideh has joined #ruby
teclator has joined #ruby
tdy has joined #ruby
grh has joined #ruby
s2013 has joined #ruby
ifctj has quit [Ping timeout: 276 seconds]
ta has joined #ruby
insanedreamer has joined #ruby
Mortomes|Work has joined #ruby
aufi has joined #ruby
RickHull has joined #ruby
hotpancakes has joined #ruby
elifoster has quit [Quit: sleep]
bkxd has quit [Ping timeout: 252 seconds]
ferr1 has joined #ruby
aidalgol has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.6]
hotpancakes has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
aidalgol has quit [Remote host closed the connection]
yardenbar has joined #ruby
saneax-_-|AFK is now known as saneax
hotpancakes has joined #ruby
govg has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
jokester_ has quit [Quit: changing oil]
hotpancakes has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
Burgestrand has joined #ruby
SesMan has joined #ruby
montanonic has quit [Ping timeout: 276 seconds]
cibs has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
cdg has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
TvL2386 has joined #ruby
ur5us has joined #ruby
Guest34760 is now known as ged
ged is now known as Guest44518
mikecmpbll has joined #ruby
jokester has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
antgel has joined #ruby
insanedreamer has quit [Quit: insanedreamer]
biberu has joined #ruby
djbkd_ has joined #ruby
hotpancakes has joined #ruby
NeverTired has quit []
Phenix has joined #ruby
nowhereman has joined #ruby
pingpong has joined #ruby
Derperperd has quit [Ping timeout: 255 seconds]
grekko has joined #ruby
grekko has quit [Client Quit]
Ishido has joined #ruby
grh has quit [Quit: Ex-Chat]
grh has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 248 seconds]
mark_66 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
pingpong has quit [Remote host closed the connection]
Derperperd has joined #ruby
StoneCypher has joined #ruby
arup_r has quit [Remote host closed the connection]
jameser has quit [Ping timeout: 245 seconds]
govg has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
nofxx has quit [Remote host closed the connection]
Phage has quit [Quit: Увидимся]
hotpanca_ has joined #ruby
Phage has joined #ruby
nofxx has joined #ruby
tdy has quit [Quit: WeeChat 1.7]
armin has joined #ruby
pingpong has joined #ruby
nankyokusei has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
alexherbo2 has joined #ruby
acalycine has quit [Quit: bye]
nankyokusei has quit [Ping timeout: 276 seconds]
flying has joined #ruby
acalycine has joined #ruby
pingpong has quit [Remote host closed the connection]
last_staff1 has joined #ruby
acalycine has quit [Client Quit]
pingpong has joined #ruby
acalycine has joined #ruby
acalycine has quit [Client Quit]
blaxter has quit [Quit: foo]
acalycine has joined #ruby
last_staff has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
danielpclark has quit [Remote host closed the connection]
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
hotpanca_ has quit [Ping timeout: 264 seconds]
acalycine has quit [Client Quit]
Silthias1 has joined #ruby
acalycine has joined #ruby
Silthias2 has joined #ruby
acalycine has quit [Client Quit]
last_staff has quit [Read error: Connection reset by peer]
Derperperd has quit [Ping timeout: 276 seconds]
acalycine has joined #ruby
last_staff has joined #ruby
acalycine has quit [Client Quit]
Silthias has quit [Ping timeout: 245 seconds]
varunwachaspati has joined #ruby
varunwachaspati has left #ruby [#ruby]
djbkd_ has quit [Ping timeout: 276 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
Silthias2 has left #ruby [#ruby]
dionysus69 has joined #ruby
pingpong has quit [Remote host closed the connection]
byte512 has joined #ruby
ignarps has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
elementaru has joined #ruby
psychicist__ has joined #ruby
tomphp has joined #ruby
smswmedia has joined #ruby
jsrn_ has joined #ruby
tonini has joined #ruby
ignarps has joined #ruby
Silthias has joined #ruby
hutch34 has joined #ruby
milardovich has joined #ruby
hotpancakes has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
McSoFake has joined #ruby
tomphp has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias1 has joined #ruby
astrobunny has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
Guest44518 is now known as ged
ged is now known as Guest23344
Silthias has quit [Ping timeout: 255 seconds]
Beams has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
whiteline has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 240 seconds]
whiteline has joined #ruby
TomyLobo has joined #ruby
JeanCarloMachado has joined #ruby
catenthusiast has joined #ruby
Couch has joined #ruby
DrCode has quit [Ping timeout: 260 seconds]
catenthusiast has quit [Client Quit]
catenthusiast has joined #ruby
aupadhye has joined #ruby
cgibsonmm has joined #ruby
<cgibsonmm>
i have a sudoku matrix of arrays, I am trying to create a array for the boxes, say [1,2,3] of the row and [1,2,3] of the columns. any clue as to the best way to do this?
toretore has joined #ruby
splud has joined #ruby
DrCode has joined #ruby
<cgibsonmm>
i have a sudoku matrix of arrays, I am trying to create a array for the boxes, say [1,2,3] of the row and [1,2,3] of the columns. any clue as to the best way to do this?
splud has quit [Read error: Connection reset by peer]
pingpong has joined #ruby
minimalism has quit [Ping timeout: 240 seconds]
rr41 has joined #ruby
<rr41>
where is dissasembler for bytecode?
sid_fules has joined #ruby
minimalism has joined #ruby
Silthias has joined #ruby
minimalism has quit [Client Quit]
xen0fon has quit [Quit: xen0fon]
xen0fon has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
last_staff1 has joined #ruby
hotpancakes has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xen0fon has quit [Ping timeout: 256 seconds]
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
last_staff has quit [Ping timeout: 248 seconds]
last_staff1 is now known as last_staff
Derperperd has quit [Ping timeout: 264 seconds]
ur5us has quit [Client Quit]
whiteline has quit [Remote host closed the connection]
lxsameer has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
<dionysus69>
where do I put rubocop file
<dionysus69>
so all projects inherit from it ?
<dionysus69>
so I dont have to put it in every project root dir
ur5us has joined #ruby
<dionysus69>
< .rubocop.yml >
tinti has joined #ruby
bkxd has joined #ruby
catenthusiast has joined #ruby
hotpancakes has joined #ruby
whiteline has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
alexherbo2 is now known as alex``
rr41 has quit [Ping timeout: 240 seconds]
whiteline has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 276 seconds]
whiteline has joined #ruby
ur5us has quit [Remote host closed the connection]
devyn has quit [Ping timeout: 272 seconds]
ecuanaso has joined #ruby
blackmesa has joined #ruby
dibblego has joined #ruby
dibblego has left #ruby ["λ"]
whiteline has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
whiteline has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bish has joined #ruby
<Bish>
hi, is there a clever way to write
binaryplease has joined #ruby
pandaant has joined #ruby
<Bish>
if value = obj.respond_to?(:a) && obj.a
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
Guest23344 is now known as ged
hays_ has joined #ruby
ged is now known as Guest17288
hays has quit [Ping timeout: 240 seconds]
ReK2 has quit [Ping timeout: 240 seconds]
<Bish>
>> "".respond_to(:to_s) && "".to_s
<ruby[bot]>
Bish: # => undefined method `respond_to' for "":String ...check link for more (https://eval.in/723931)
<Bish>
wut
<herwin>
you forgot the ?
<Bish>
oh yeah
<Bish>
and why the fuck does .method(:non_existing_method) raise
<Bish>
and not return nil
RickHull has quit [Ping timeout: 255 seconds]
SesMan has joined #ruby
devyn has joined #ruby
pwnd_nsfw` has joined #ruby
StoneCypher has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
pwnd_nsfw has quit [Ping timeout: 255 seconds]
blackbom1 has quit [Ping timeout: 240 seconds]
root____2 has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
pingpong has quit [Remote host closed the connection]
despai has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
nankyokusei has joined #ruby
pingpong has joined #ruby
ecuanaso has joined #ruby
root____1 has joined #ruby
root____1 has quit [Read error: Connection reset by peer]
root____2 has quit [Read error: Connection reset by peer]
archie has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
hotpancakes has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
Derperperd has joined #ruby
archie_ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
archie has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
archie_ has quit [Ping timeout: 245 seconds]
ifctj has joined #ruby
atmosx has joined #ruby
cdg has joined #ruby
Mon_Ouie has joined #ruby
catenthusiast has joined #ruby
xen0fon has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
Antiarc has joined #ruby
hutch34 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hutch34 has quit [Ping timeout: 240 seconds]
braunr has left #ruby [#ruby]
douglascorrea has joined #ruby
jaruga_____ has joined #ruby
jaruga______ has joined #ruby
tonini has quit [Quit: Connection closed for inactivity]
TvL2386 has joined #ruby
Robtop__ has joined #ruby
jaruga_____ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
blackbom1 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowz has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
TvL2386 has quit [Ping timeout: 245 seconds]
ddffg has quit [Ping timeout: 256 seconds]
jshjsh has quit [Read error: Connection reset by peer]
jshjsh has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest17288 is now known as ged
ged is now known as Guest37529
dc4 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
catenthusiast has joined #ruby
pwnd_nsfw` has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nowz has joined #ruby
TvL2386 has joined #ruby
ddffg has joined #ruby
tinti has quit [Remote host closed the connection]
stamina has joined #ruby
Burgestrand has quit [Quit: Closing time!]
pingpong has quit [Remote host closed the connection]
Robtop__ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
psychicist__ has joined #ruby
<yorickpeterse>
Bish: because Ruby
Burgestrand has quit [Client Quit]
Snowy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
Derperperd has joined #ruby
pingpong has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Client Quit]
Snowy has quit [Ping timeout: 252 seconds]
pingpong has quit [Remote host closed the connection]
pingpong has joined #ruby
hotpancakes has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
pingpong has quit [Remote host closed the connection]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
Derperperd has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Client Quit]
tyang has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
tyang_ has joined #ruby
Burgestrand has joined #ruby
Snowy has joined #ruby
Burgestrand has quit [Client Quit]
cdg has joined #ruby
acalycine has quit [Quit: bye]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
catenthusiast has joined #ruby
sepp2k has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
Burgestrand has quit [Client Quit]
psychicist__ has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
charliesome has joined #ruby
Robtop__ has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
byte512 has quit [Ping timeout: 240 seconds]
SesMan has joined #ruby
xen0fon has quit [Quit: xen0fon]
McSoFake has quit [Quit: WeeChat 1.7]
Burgestrand has quit [Client Quit]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
nowz has quit [Remote host closed the connection]
Burgestrand has joined #ruby
psychicist__ has joined #ruby
Burgestrand has quit [Client Quit]
pingpong has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
nowz has joined #ruby
Burgestrand has quit [Client Quit]
swills has joined #ruby
Couch has quit [Quit: Ex-Chat]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
charliesome has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
pingpong has quit [Remote host closed the connection]
psychicist__ has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
charliesome has joined #ruby
cdg has joined #ruby
blackbom1 has quit [Ping timeout: 255 seconds]
StoneCypher has joined #ruby
pingpong has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
Guest72006 is now known as ndrst
psychicist__ has joined #ruby
machinewar has joined #ruby
bmurt has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
StoneCypher has quit [Ping timeout: 240 seconds]
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
pingpong has quit []
blackmesa has joined #ruby
gfawcett has joined #ruby
charliesome has joined #ruby
nankyokusei has joined #ruby
Guest37529 is now known as ged
ged is now known as Guest14469
Derperperd has joined #ruby
synthroid has joined #ruby
csk has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
csk has quit [Client Quit]
harfangk has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
csk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Robtop__ has quit [Ping timeout: 260 seconds]
cgibsonmm has joined #ruby
sid_fules has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
sid_fules has joined #ruby
Definity has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
duckpupp1 has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
sid_fules has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
malconis has joined #ruby
malconis_ has joined #ruby
c355e3b has joined #ruby
Snowy has joined #ruby
blaxter has joined #ruby
machinewar has quit []
dc4 has joined #ruby
malconis has quit [Ping timeout: 264 seconds]
Derperperd has joined #ruby
unshadow_ has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
unshadow has joined #ruby
senayar has joined #ruby
polysics has quit []
yardenbar has quit [Quit: Leaving]
cajone has quit [Ping timeout: 255 seconds]
Derperperd has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyang_ has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
hutch34 has joined #ruby
blackwind_123 has joined #ruby
cibs has quit [Ping timeout: 264 seconds]
blackbom1 has joined #ruby
cibs has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
Sammichmaker has joined #ruby
StoneCypher has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
johnny56_ has quit [Read error: Connection reset by peer]
blackbom1 has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56_ has joined #ruby
Definity has quit [Ping timeout: 248 seconds]
djellemah has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 256 seconds]
nofxx has quit []
cajone has joined #ruby
catenthusiast has joined #ruby
dionysus69 has quit [Remote host closed the connection]
antgel has joined #ruby
Burgestrand has quit [Quit: Closing time!]
arup_r has joined #ruby
mistergibson has quit [Ping timeout: 240 seconds]
<arup_r>
Say, I am getting a data from outside which is a Ruby hash. Then I print it. I want a specific key from the hash to be always the last. for example if I get a hash like {supplier1: 10, supplier10: 20, supplier4: 30, supplier2: 81}, I want to reorgamize it like hash = {supplier1: 10, supplier4: 30, supplier2: 81, supplier10: 20}. Because supplier20 I want to be always the last key/value pair. The reason of doing this is, I print the hash in a page, a
<arup_r>
nd I want the supplier20 category should be printed always last to the page.
<arup_r>
sorry supplier10*
<apeiros>
hash[last_key] = hash.delete(last_key)
<apeiros>
since ruby retains insertion order, this guarantees last_key will be the last item in your hash
<arup_r>
hm :) that's what I am doing. I was typing if it is good approach or not.
<arup_r>
apeiros: thanks sir!
<tobiasvl>
arup_r: can't you just do hash.sort_by(&:last)
<arup_r>
no
<arup_r>
it is a specific key which I want to put always last. sorting will not help
<tobiasvl>
ah sorry
saslam has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melter has joined #ruby
<apeiros>
hash.sort_by { |k,_v| k == last_key ? 1 : 0 } # very expensive compare to just reinsert the last key ;-)
jhack has joined #ruby
cgibsonmm has joined #ruby
<arup_r>
yeah
charliesome has joined #ruby
rom1504 has joined #ruby
rom1504 has quit [Client Quit]
jhack has quit [Client Quit]
cgibsonmm has quit [Ping timeout: 240 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
UnknownSoldier has joined #ruby
Guest14469 is now known as ged
ged is now known as Guest46895
jhack has joined #ruby
rfoust has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
sid_fules has joined #ruby
flvszch50 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
ifctj has quit [Ping timeout: 264 seconds]
douglascorrea has quit [Ping timeout: 245 seconds]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
UnknownSoldier has quit [Remote host closed the connection]
catenthusiast has joined #ruby
hobodave has quit [Client Quit]
saslam has quit [Ping timeout: 240 seconds]
arup_r has quit []
DLSteve has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Snowy has quit [Remote host closed the connection]
nowz has quit [Remote host closed the connection]
dc4 has quit [Ping timeout: 240 seconds]
lmc has joined #ruby
dgarstang has joined #ruby
<dgarstang>
I'm looking at Thor, and in the docs I can't see any way to set dependencies on tasks like rake can.
`tim` has joined #ruby
workmad3 has joined #ruby
TomyLobo has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cpruitt>
dgarstang: I don’t think Thor is designed to work like Rake. Two different use cases.
jrafanie has joined #ruby
<apeiros>
thor also depends quite a bit more on understanding ruby than rake
Lord_of_Life has quit [Excess Flood]
ifctj has joined #ruby
rippa has joined #ruby
psychicist__ has joined #ruby
benlieb has joined #ruby
nowhereman has joined #ruby
Snowy has joined #ruby
<dgarstang>
cpruitt: :(
tyang has joined #ruby
<cpruitt>
dgarstang: If you’re looking for rake-like behavior, and are familiar with using rake, why are you looking into Thor? Curiosity or … ?
Lord_of_Life has joined #ruby
<dgarstang>
cpruitt: Part curiosity. Part better processing of CLI options. Part collegues saying to me later 'why didn't you use thor instead?'
<cpruitt>
dgarstang: Yeah, I’d toss that last one… lol. I use both quite frequently, but not for the same uses. Thor is really more for building command line programs, while rake is more dependency based build stuff where things are done in sequence.
last_staff has quit [Quit: **poof**]
tvw has quit [Remote host closed the connection]
<dgarstang>
cpruitt: The last one is the most frustrating. I guess my reply should be 'did you fucking do it? No? Well shut your pie hole"
flying has quit []
nowhereman has quit [Quit: Konversation terminated!]
<cpruitt>
For example, I think the `rails` executable in the gem is (was?, still is?) based on Thor. Capistrano is a Rake app.
nowhereman has joined #ruby
araujo has quit [Quit: Leaving]
<dgarstang>
I'd use fabric if I could. :)
<cpruitt>
dgarstang: Not very familiar with fabric but I’d say whoever is tasked with owning the project at your place should dictate what is used and everyone else should just kinda fall in line after their recommendations are made.
ifctj has quit [Ping timeout: 248 seconds]
<dgarstang>
cpruitt: That's usually how it works. Not here.
anisha has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
dasher00 has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
<cpruitt>
dgarstang: Well, that’s really more of a process/culture problem, not ruby, but if we were chatting over beers I’d probably encourage you to learn the crap out of both & be the biggest expert in your shop. A- You’ll argue your point better, and B- If you lose you’ll be so familiar that it won’t matter as much which you use.
dopamean_ has joined #ruby
jhack has quit [Quit: jhack]
<cpruitt>
I used rake before Thor, but I enjoy Thor more **personally**. I’m more comfortable with Thor than rake now.
vshjxyz has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
millerti has joined #ruby
<dgarstang>
Accessing instance variables... I don't have to use @ do i?
<apeiros>
yes you do
<dgarstang>
I thought I could use self.var ?
<herwin>
if you have an attr_reader
<apeiros>
without @, you're invoking a method (which might return the value of an ivar)
<dgarstang>
Sigh. Ok
<dgarstang>
So ugly
Fernando-Basso has joined #ruby
* apeiros
should put dgarstang on ignore
<apeiros>
anyway, to clarify, since it seems it didn't come through:
<apeiros>
yes, you can access *the value* of an instance variable without @
benlieb has quit [Quit: benlieb]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<cpruitt>
dgarstang: Do you work primarily with rake or do you do much work with Ruby directly? Writing your own classes… Rails apps… etc… ?
<cpruitt>
dgarstang: i.e. Are you familiar with instance variables, accesors, attr_reader/writer/accessor, etc…?
flak has joined #ruby
mradmacher has joined #ruby
<apeiros>
cpruitt: they said verbatim that they don't want to learn ruby yesterday
<cpruitt>
What does that mean?
rwb has joined #ruby
<cpruitt>
Oh… like, actually yesterday dgarstang said “I don’t want to learn ruby”?
benlieb has joined #ruby
gnufied has joined #ruby
saneax is now known as saneax-_-|AFK
dc4 has joined #ruby
dasher00 has joined #ruby
fnux has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 258 seconds]
<apeiros>
cpruitt: yes, that
aryaching has joined #ruby
<cpruitt>
apeiros: Oh… well… That’ll make working with ruby a little more complicated then.
Ruby_Rocks_007 has joined #ruby
saslam has joined #ruby
ta has quit [Remote host closed the connection]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
nowz has joined #ruby
millerti has joined #ruby
jokester has quit [Ping timeout: 245 seconds]
<apeiros>
cpruitt: it also limits my willingness to explain things. because… that'd mean actually learning ruby.
fnux has joined #ruby
negatifze has joined #ruby
Guest46895 is now known as ged
ged is now known as Guest68792
<cpruitt>
apeiros: Oh clearly
jhack has joined #ruby
Snowy has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
douglascorrea has joined #ruby
jshjsh has quit [Ping timeout: 256 seconds]
djellemah has joined #ruby
xen0fon has joined #ruby
Xentil has joined #ruby
ecuanaso has joined #ruby
preyalone has joined #ruby
JoshS has joined #ruby
marr has joined #ruby
jokester has joined #ruby
grh has quit [Ping timeout: 260 seconds]
melter has quit [Quit: Client exiting]
ixti has quit [Ping timeout: 240 seconds]
statelesscode has joined #ruby
stamina has quit [Quit: WeeChat 1.7]
xen0fon has quit [Quit: xen0fon]
unshadow has quit [Ping timeout: 240 seconds]
SuperLag has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
Snowy has joined #ruby
milardovich has joined #ruby
SuperLag has joined #ruby
DevilTiger has left #ruby [#ruby]
unshadow has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
A_Drone has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
douglascorrea has quit [Ping timeout: 258 seconds]
cgibsonmm has joined #ruby
Macaveli has joined #ruby
milardovich has joined #ruby
lmc has quit [Remote host closed the connection]
cgibsonmm has quit [Ping timeout: 276 seconds]
lmc has joined #ruby
blaxter has quit [Quit: foo]
lmc has quit [Remote host closed the connection]
<dgarstang>
I've got "current_dir = File.dirname(__FILE__)" in a Rakefile that's in a gem lib. Problem is... it resolves to the gem's local dir. I need to get the local dir of the calling Rakefile...
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<apeiros>
Dir.getwd
shinnya has joined #ruby
milardovich has quit [Remote host closed the connection]
blackmesa has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
milardovich has joined #ruby
<dgarstang>
thanks
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
aufi has quit [Quit: Leaving]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
douglascorrea has joined #ruby
conta has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
milardovich has joined #ruby
agent_white has joined #ruby
nadir is now known as Elytra
tercenya has quit [Remote host closed the connection]
<agent_white>
Mornin'
tercenya has joined #ruby
milardovich has quit [Ping timeout: 245 seconds]
lmc has joined #ruby
Derperperd has joined #ruby
saslam has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
ycyclist has quit [Ping timeout: 260 seconds]
xen0fon has joined #ruby
Burgestrand has joined #ruby
xen0fon has quit [Client Quit]
brent__ has joined #ruby
despai has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
nowhereman has quit [Ping timeout: 258 seconds]
aganov has quit [Quit: Leaving]
workmad3 has joined #ruby
lmc has quit [Remote host closed the connection]
sarbs has quit [Ping timeout: 245 seconds]
sarbs has joined #ruby
snath has joined #ruby
milardovich has joined #ruby
gregf__ has joined #ruby
Guest68792 is now known as ged
synthroid has joined #ruby
ged is now known as Guest21369
gregf_ has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hays has joined #ruby
hays_ has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 264 seconds]
psychicist__ has quit [Ping timeout: 252 seconds]
xen0fon has joined #ruby
lmc has joined #ruby
OTORelic has joined #ruby
nowz has quit [Remote host closed the connection]
jaruga______ has quit [Quit: jaruga______]
gizmore|2 has joined #ruby
sonOfRa is now known as dwynwen_
sid_fules has quit [Quit: Leaving...]
dwynwen_ is now known as sonOfRa
mark_66 has quit [Remote host closed the connection]
lmc has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has quit [Ping timeout: 240 seconds]
stdio05 has joined #ruby
<stdio05>
there is ruby 21-4 on my system, what version to install?
gizmore has quit [Ping timeout: 240 seconds]
<stdio05>
any reason i shouldnt use latest 2.4?
cgibsonmm has joined #ruby
cibs has quit [Ping timeout: 252 seconds]
patarr has joined #ruby
<baweaver>
stdio05: If you have to work with an older version of the json gem, stay with 2.3.x
<baweaver>
2.4.x unified Fixnum and Bignum into Integer which breaks some of the compilation of JSON 1.8.x
cibs has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
StoneCypher has joined #ruby
polyidus has joined #ruby
cajone has left #ruby [#ruby]
jhack has quit [Quit: jhack]
griffindy has joined #ruby
cajone has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
A_Drone has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
workmad3 has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
conta has joined #ruby
hays_ has joined #ruby
grh has joined #ruby
benlieb has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
hays has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
djbkd has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
benlieb has quit [Client Quit]
psychicist__ has joined #ruby
markholmes has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 245 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prawnzy has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
prawnzy has quit [Client Quit]
dionysus69 has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
reverberations has joined #ruby
jsrn_ has quit [Quit: Leaving]
gheegh has joined #ruby
reverberations has quit [Max SendQ exceeded]
polyidus has joined #ruby
<gheegh>
does anyone know if a gem that will parse a string and extract addresses? i'm writing one from scratch, but i'd prefer not.
<gheegh>
:-)
nowz has joined #ruby
<havenwood>
gheegh: Street addresses?
<gheegh>
yeppers.. :-)
nankyokusei has joined #ruby
<gheegh>
I have a bunch of text that I need to extract the street address from it.. I found StreetAddress, but that only works for something that has already been parsed as a street address..
duderonomy has quit [Ping timeout: 240 seconds]
<gheegh>
i have it POS Tagged already if that helps.
<gheegh>
my plan was to build some additional POS tags.. for terms that look like an address.. and if there are several in a row, to pull them out as a street addresss..
ramfjord has joined #ruby
unshadow has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
StoneCypher has quit [Ping timeout: 245 seconds]
mokiwis has joined #ruby
<gheegh>
or in lieu of that.. a simpler regex question.. if i am trying to match Western or west.. as in 132 Western Avenue.. i would like to build a regex where the "ern" is optional.. but will match it if its there, if not, it will match west
nankyokusei has quit [Ping timeout: 276 seconds]
brent__ has quit []
unshadow has joined #ruby
<gheegh>
'/(west[ern]?/' is how I'd do it in another regex standard, but this doesn't work in Rubular.
cgibsonmm has quit [Remote host closed the connection]
<gheegh>
with a closing bracket obviously..
<havenwood>
gheegh: /West(?:ern)?/
<baweaver>
/West(?:ern)?/i
<baweaver>
assuming you want case insensitive.
<havenwood>
gheegh: "non-capture group"
hays has joined #ruby
hays has joined #ruby
<baweaver>
that's what that is
<baweaver>
was just about to google it
hays_ has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
<herwin>
i wonder what that other regex standard is, it just looks completely wrong to me
<baweaver>
PCRE vs something
<herwin>
but by omitting the anchors, it will match west and western
vshjxyz has quit [Remote host closed the connection]
whathappens has joined #ruby
jhack has joined #ruby
hotpancakes has joined #ruby
rfoust has quit [Read error: Connection reset by peer]
hotpanca_ has joined #ruby
rfoust has joined #ruby
SeepingN has joined #ruby
choke has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
Cohedrin_ has joined #ruby
douglascorrea has quit [Ping timeout: 245 seconds]
renchan has quit [Quit: Leaving...]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
grh has quit [Ping timeout: 255 seconds]
antgel has quit [Ping timeout: 252 seconds]
montanonic has quit [Ping timeout: 276 seconds]
Ruby_Rocks_007 has joined #ruby
msmith_ has joined #ruby
RickHull has joined #ruby
douglascorrea has joined #ruby
duderonomy has joined #ruby
douglascorrea has quit [Client Quit]
xen0fon has quit [Quit: xen0fon]
ta has joined #ruby
zeroDi has joined #ruby
elifoster has joined #ruby
jokke is now known as jokkepi
foxxx0 is now known as jokke
last_staff has joined #ruby
workmad3 has joined #ruby
jokke is now known as foxxx0
jokkepi is now known as jokke
<dionysus69>
is anyone here?
<tobiasvl>
dionysus69: maybe
<dionysus69>
:D
montanonic has joined #ruby
jshjsh has joined #ruby
ramfjord has joined #ruby
<dionysus69>
I am wondering if you would know, I am trying to create a model without a table, that would just render json by combining other existing models
<dionysus69>
does this make sense or I am on a wrong track?
<tobiasvl>
I don't know, sounds like a rails question and I don't know much about that
<tobiasvl>
try #RubyOnRails if that's the case
<tobiasvl>
otherwise I'd need some more details
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest65466 is now known as ged
Cohedrin_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
JoshS has quit [Ping timeout: 240 seconds]
ged is now known as Guest60499
<dionysus69>
haha ok thanks :) I knew that was coming :D
chouhoulis has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
<nofxx>
dionysus69: that's totally normal. Check for activemodel only. And you'll find the term I forgot now hehe... maybe tableless model
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
hotpanca_ has joined #ruby
lmc has quit [Ping timeout: 240 seconds]
Olipro has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
KnownSyntax has quit [Quit: No Ping reply in 180 seconds.]
skweek has quit [Ping timeout: 256 seconds]
DoubleMalt has joined #ruby
nankyokusei has joined #ruby
Olipro has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
hotpancakes has quit [Ping timeout: 264 seconds]
croberts has joined #ruby
p0p0pr37_ has joined #ruby
grh has joined #ruby
RushPL has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Tempesta_ has joined #ruby
lmc has joined #ruby
lmc has quit [Remote host closed the connection]
Tempesta has quit [Read error: Connection reset by peer]
p0p0pr37 has quit [Ping timeout: 276 seconds]
p0p0pr37_ is now known as p0p0pr37
AndBobsYourUncle has joined #ruby
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 276 seconds]
unshadow_ has joined #ruby
JoshS has quit [Client Quit]
montanonic has quit [Ping timeout: 252 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
gbailey has quit [Quit: ZNC - 1.6.0 - http://znc.in]
[Butch]_ has joined #ruby
TvL2386 has quit [Remote host closed the connection]
mholmes has quit [Remote host closed the connection]
lmc has joined #ruby
unshadow has quit [Ping timeout: 248 seconds]
hotpanca_ has quit [Ping timeout: 252 seconds]
[Butch] has quit [Ping timeout: 255 seconds]
[Butch]_ is now known as [Butch]
BackEndCoder has quit [Excess Flood]
enterprisey has joined #ruby
BackEndCoder has joined #ruby
PatrickPlus has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
vuoto has joined #ruby
<Knew2this>
I am attempting to make an auto verification email for my webpage using ruby, not rails, anyone give me any resources for something like that?
montanonic has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
cgibsonmm has joined #ruby
<ytti_>
nope, but i can tell that almost invariably people make verifications wrong
<ytti_>
if the verification is just link, by which clicking it you activate the accunt
<ytti_>
it's broken, it's not two-way-verification
<ytti_>
you know that message was received by someone who clicked it
<ytti_>
but you don't know if it was the person who gave the email and registered to the site
<ytti_>
so after you click the link from email, there should be some secret that needs to be given
<ytti_>
so when people do give accidentally wrong emails, no harm is done
lmc has quit [Remote host closed the connection]
cgibsonmm has quit [Ping timeout: 240 seconds]
lmc has joined #ruby
KaitoDaumoto has quit [Remote host closed the connection]
gajus has joined #ruby
chouhoulis has joined #ruby
montanonic has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
lmc has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
skweek has joined #ruby
UnknownSoldier has joined #ruby
<manveru>
ytti_: usually you could use the existing cookies as your secret, it's just that it doesn't work if your mail client opens it with another browser
meshsmith has joined #ruby
hotpancakes has joined #ruby
boombox_ has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
lmc has joined #ruby
<ytti_>
manveru, in my experience the common case is, the secret is in the url
<ytti_>
i have glob for a @ip.fi, and maybe 2-3 times a month receive some sign-up confirmations for people who mistype their emails
<manveru>
that's the token to associate the account, if your session and the token are identical, it's no bad verification i'd say
Jackneill has joined #ruby
<manveru>
and you're right that almost nobody does that, since people wouldn't understand when the verification doesn't work
<manveru>
convenience > security
ur5us has joined #ruby
montanonic has joined #ruby
lmc has quit [Remote host closed the connection]
gusrub has joined #ruby
<ytti_>
well asking for users password
<ytti_>
woudl be something they'd understand
<ytti_>
they just gave the password too
<ytti_>
and some sites do this
dasher00 has joined #ruby
milardovich has joined #ruby
montanonic has quit [Ping timeout: 245 seconds]
boombox_ has quit [Remote host closed the connection]
gajus has left #ruby [#ruby]
lmc has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
boombox_ has joined #ruby
tyang_ has joined #ruby
boombox_ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
tyang_ has quit [Client Quit]
tyang has quit [Ping timeout: 256 seconds]
dgarstang has quit [Ping timeout: 248 seconds]
Guest60499 is now known as ged
Jayson_Virissimo has joined #ruby
StoneCypher has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
ged is now known as Guest6108
UnknownSoldier has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
brent__ has joined #ruby
markholmes has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
montanonic has joined #ruby
__Yiota has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
milardovich has quit [Ping timeout: 248 seconds]
SerialDev has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
<SerialDev>
believe it or not, i came to really like Ruby in recent days after diving into it, a very eloquent language
blackmesa has joined #ruby
gbailey has joined #ruby
<SerialDev>
a renaissance of Ruby in 2017 mayhaps?
<SerialDev>
Mary Tyler Moore passed away today at the age of 80
<SerialDev>
oops, wrong chat >.<
gbailey has quit [Client Quit]
montanonic has quit [Ping timeout: 260 seconds]
StoneCypher has joined #ruby
<mnemon>
SerialDev: this is ruby, we all wuv the eloquence of ruby :)
<mnemon>
#ruz that is
blackmesa has quit [Ping timeout: 264 seconds]
Derperperd has joined #ruby
gbailey has joined #ruby
<SerialDev>
yeah, the more I learn about its standard stuff, the more impressed I am
<mnemon>
... swaping between keyboard layouts does not work.
unshadow_ has quit [Ping timeout: 256 seconds]
<SerialDev>
i'm a dvorak keyboard guy myself
ldnunes has quit [Quit: Leaving]
<SerialDev>
dvorak >>>>>>> qwerty
unshadow has joined #ruby
<mnemon>
I work with qwertz and use qwerty at home, the number of typos ...
dgarstang has joined #ruby
<SerialDev>
isn't qwertz a french layout? correct me if i'm wrong
peitur has joined #ruby
blackmesa has joined #ruby
<tobiasvl>
I think France uses AZERTY?
peitur has quit [Remote host closed the connection]
<mnemon>
All German derivates use it afaik, maybe french too
<SerialDev>
no, wait that would be azerty, yes you're correct
<SerialDev>
i was just looking at my mac's keyboard layout choices
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
cajone has quit [Remote host closed the connection]
cgibsonmm has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ifctj has joined #ruby
username_ has quit [Ping timeout: 255 seconds]
anisha has quit [Quit: This computer has gone to sleep]
elementaru has quit [Read error: Connection reset by peer]
whathappens has quit [Remote host closed the connection]
gfawcett has quit [Ping timeout: 256 seconds]
tyang has joined #ruby
vuoto has quit [Quit: Lost terminal]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
montanonic has joined #ruby
chouhoulis has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]