<ruby[bot]>
zenspider: I don't see no me, whom should I tell about help?
<benz>
on a rails project, puma starts consuming all the cpu
raul782 has joined #ruby
<kke_>
zenspider: yes, you can just keep file.reading it (or use inotifier/kqueue whatever)
<benz>
in just 1 minutes it reaches 80%
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
kke_: don't think so...
<benz>
any idea how to debug
lxsameer has joined #ruby
<universa1>
benz: it stays at 80% or it drops after a minute or two?
<raul782>
Hi guys, how can I replace a \n with an invisible newline. because right now
<zenspider>
kke_: if your same process opens a file writes to it and then tries to read from it in a loop? what happens?
<raul782>
when I store it in a mysql textfield, I can still see the \n
<zenspider>
benz: how are you sure it isn't doing something legitimately?
<zenspider>
raul782: how do you see it?
<benz>
it stays at 80
<kke_>
zenspider: hmm yes, the reader should keep track of file position and rewind and then the writer in another thread will screw things up by overwriting
<zenspider>
kke_: that's because the reader and the writer are the same thing... the single IO
<kke_>
i wonder if i could use IO.pipe then
<zenspider>
what are you REALLY trying to do?
<kke_>
read, write = IO.pipe $stdout = write; then keep reading the read
leitz has joined #ruby
<raul782>
zenspider: this is how it's stored in the database <script type="text/javascript">\n var abc=1 </script>
<raul782>
I've tried several combinations with gsub, before storing it.
<zenspider>
raul782: how do you know that? how do you see it?
<kke_>
trying to capture stdout of another thread
tomphp has joined #ruby
<zenspider>
kke_: what does that mean, and in what context?
<raul782>
zenspider: My app, display that field in a text area
<raul782>
in a fomr
<raul782>
In a form
<zenspider>
so you're not looking at the raw value in the db (or whatever)
<kke_>
IO.pipe however is not available on all platforms. dang.
<zenspider>
...
<kke_>
i have something like spinner "foo" { .... } and i don't like how it currently requires monkeypatching/overwriting puts/print/etc to keep track of the spinner position
tvw has joined #ruby
<raul782>
zenspider: let me confirm you that
nanoz has joined #ruby
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :verne.freenode.net"]
<raul782>
zenspider: Yeah, I can see the \n in the field of type: text
<raul782>
zenspider: The context is the following: I had this javascript snippet stored in the database, and then the app exported in a CSV, in order to not break the format, I replaced newline with \n
<zenspider>
so then the value is correct in the db and incorrect in the form. it is probably being escaped by something when it goes into the form? is there some sanitizer being used?
<raul782>
But when I want to import it again, I can replace it back to an invisible new line
<zenspider>
well... that's not exactly what I mean, but maybe it is also getting in the way. You could add an extra text-area that is plain and see what displays in there...
hutch34 has joined #ruby
<zenspider>
I suspect that something is causing problems before codemirror is involved (but that's just a guess)
<zenspider>
I would be attempting to write a test to verify this more directly tho
oliv_____ has joined #ruby
romank has joined #ruby
<raul782>
zenspider: ok I'll spit it out in a regular textarea
hutch34 has quit [Ping timeout: 255 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 246 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
<raul782>
zenspider: Weird, in a simple textarea. I can se the \n
<raul782>
*still see
<raul782>
IS there a a non printable character for newline
tomphp has joined #ruby
cschneid_ has joined #ruby
<zenspider>
raul782: kk. then you know it isn't codemirror. cool.
<zenspider>
can you `p the_text` in ruby, before the render and then look at it there? the real question is whether it displays as \n or \\n
nimzo has joined #ruby
<nimzo>
hello all
<nimzo>
what's the neatest way of achiving the following in ruby:
milardov_ has quit [Remote host closed the connection]
<nimzo>
a = [1, 2, 3, 4]
<zenspider>
don't paste...
haraoka has quit [Ping timeout: 260 seconds]
<zenspider>
use a gist
Burgestrand has quit [Read error: Connection reset by peer]
<nimzo>
b = [2, 6] -> a.include?(b)
Burgestrand has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<nimzo>
have two arrays, check if ANY value of b is contained in a
<zenspider>
raul782: wait. when you said you escaped it yourself... where did you do that? did you put in a literal \n into the db or what?
<zenspider>
nimzo: what'd you try so far?
<nimzo>
I know I can write my own logic to check that but I was wondering if there's a neater way of doing it
<nimzo>
zenspider: function which iterates of a and check b.include(i)
<nimzo>
iterates over*
Neptu has quit [Ping timeout: 255 seconds]
<nimzo>
sorry I meant the other way round.. iterates over b and for each element a.include?(i)
uZiel has quit [Remote host closed the connection]
<zenspider>
doesn't matter... it's the same thing
cschneid_ has quit [Ping timeout: 260 seconds]
<zenspider>
what do you call that type of check?
<nimzo>
if it finds one then returns true else false.. I feel like there's gotta be a sexier way of doing that
bkxd has joined #ruby
<Burgestrand>
nimzo nope, pretty much `b.any? { … }` is the way to go.
<zenspider>
Burgestrand: come on... 1) you're wrong. 2) at least TRY to teach a little
<Burgestrand>
zenspider ditto
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eifran has joined #ruby
bvcosta has quit [Remote host closed the connection]
<zenspider>
ditto as in I'm not trying to teach? nice try
<Burgestrand>
zenspider no I mean if you tell me I'm wrong tell me where
tomphp has joined #ruby
tomphp has quit [Client Quit]
<nimzo>
Burgestrand: this is a shortcut to what I'm already doing.
<nimzo>
in the block I'll still have to check a.include?(i)
<Burgestrand>
zenspider I don't mind being wrong, but it'd be more helpful if you could tell me why :)
tomphp has joined #ruby
<zenspider>
I'm more concerned with nimzo's problem atm
tomphp has quit [Client Quit]
<raul782>
zenspider: when coming from the db to the CSV I did the following: gsub(/[\r\n]+/, '\n')
<nimzo>
Burgestrand: but I do agree it's better than what I got.
<nimzo>
nimzo: don't know what you call that type of check.
<zenspider>
raul782: ok. so you actually have a literal "\\n" in your string
<zenspider>
raul782: does that make sense? '\n' in ruby is the escaped form. "\n" is normal form
Neptu has joined #ruby
<raul782>
ok, I'll try it on my import method to see if that works
<Burgestrand>
zenspider rude!
Rodya_ has joined #ruby
<zenspider>
raul782: iirc, newlines in values in CSV *is* valid tho, you need to have quotes around the field. so you don't need to escape them so much as you need to output valid CSV, rigt?
<zenspider>
right. ugh.
<konsolebox>
raul782: what are you really trying to do?
rohitpaulk has joined #ruby
uZiel has joined #ruby
andikr has quit [Remote host closed the connection]
<raul782>
zenspider, that worked :). well it's not a CSV but a TSV
<zenspider>
and using the CSV class should do that for you automatically
<zenspider>
same thing
Rodya_ has quit [Ping timeout: 246 seconds]
<raul782>
zenspider: the thing is that many fields have double quotes
<raul782>
so it seemed to me at the moment that using a TSV should work
papercode has joined #ruby
<raul782>
I ahd to use this to make it work : csv = CSV.parse(string, col_sep: "\t", :quote_char => "\x00")
<zenspider>
double quotes are just "" inside (2DQUOTE above)
Xeago has quit [Ping timeout: 260 seconds]
<arahael>
Also, tabs in values is valid, too.
<zenspider>
yes, but again, the file format allows for all of this
Xeago has joined #ruby
<zenspider>
but whatever... you can munge and demunge the values consistently
arup_r has joined #ruby
<raul782>
That's great to know, I'll follow your advice then, now that it's working.
cschneid_ has joined #ruby
<arahael>
zenspider: At this point, you might as well just read the lines, and do a .split('\t')
Burgestrand has quit [Quit: Closing time!]
lel has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 260 seconds]
mikecmpb_ is now known as mikecmpbll
lel has joined #ruby
<mikecmpbll>
i read between the lines 🕵🏼
raul782 has quit [Ping timeout: 258 seconds]
rikkipitt has joined #ruby
Otti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
leitz has quit [Quit: Nappy time]
papercode has left #ruby ["WeeChat 1.8-dev"]
anisha_ has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
anisha has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
arup_r has left #ruby [#ruby]
arup_r has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
d^sh_ has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aruns has joined #ruby
<aruns>
Hi, running RVM 1.29.1 on Mac OS X 10.11.6 (El Capitan) using Fish Shell 2.4.0
milardovich has joined #ruby
ur5us has joined #ruby
benz has quit [Remote host closed the connection]
<aruns>
Have downloaded RVM via Bash, default Ruby prior to RVM was 2.0.0, have installed the RVM function script for Fish
<aruns>
But rvm default does not update the default Ruby version on my system
gagrio has quit [Remote host closed the connection]
<aruns>
Even though I have rvm default in ~/.config/fish/config.fish
<aruns>
And everything seems to be fine in terms of what's in $PATH
cdg has joined #ruby
Ninja0n3 has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
<Ninja0n3>
Hello, I'm feeling a bit stupid right now, I'm trying to run a ruby script which uses ENV['ENVVAR'] from a bash script, in the script I have ENVVAR="my_var_value" before calling 'ruby myscript.rb', however when I 'puts ENV['ENVVAR']' it comes empty, any ideas?
<zenspider>
aruns: you might want to switch to bash and ensure that things work there first. then it is either fish itself or the bindings between the two.
<zenspider>
that said... rvm does a LOT. you might want to check out rbenv or others instead. they might play nicer with fish just because they do less
<zenspider>
and do it MUCH MUCH cleaner
<kke_>
Ninja0n3: i think you need to export it
<kke_>
Ninja0n3: export ENVVAR
<zenspider>
Ninja0n3: either export it or have it on the same line as the call
<zenspider>
K=V ruby blah.rb
<Ninja0n3>
kke_: Thank you, I just found that out myself, I did not have the 'export' command before the env variable, adding it solved the issue
<Ninja0n3>
Thanks a lot
<Ninja0n3>
zenspider, kke_ thank you!
bkxd has quit [Ping timeout: 240 seconds]
<kke_>
strings from env are frozen btw. ran into this when doing something like foo = ENV['BAR']; foo.gsub!(...)
Burgestrand has joined #ruby
aruns has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
Tempesta_ has joined #ruby
roshanavand has quit [Quit: roshanavand]
moei has quit [Read error: Connection reset by peer]
Burgestrand has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
moei has joined #ruby
Tempesta has quit [Ping timeout: 246 seconds]
oliv_____ has quit [Remote host closed the connection]
petruff1 has joined #ruby
nanoz has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
SaschaVoid has joined #ruby
patarr has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
saschavo1d has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
cfec0b8d has joined #ruby
SaschaVoid has quit [Ping timeout: 246 seconds]
d3d1rty has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
jameser has joined #ruby
Burgestrand has joined #ruby
saschavo1d has quit [Ping timeout: 246 seconds]
SaschaVoid has joined #ruby
IAM_ has joined #ruby
<kke_>
zenspider: btw, what i can actually do is use anything that responds to .write instead of StringIO (perhaps in this case Queue with alias_method :push, :write)
<IAM_>
It looks like spontaneously creating a nested hash is possible https://en.wikipedia.org/wiki/Autovivification#Ruby but I'm wondering if there's a way to only create h['foo'] if h['foo']['something'] is actually *assigned to* (and not just accessed).
erlend has quit [Quit: Bye]
saschavo1d has joined #ruby
Guest6267 is now known as alamar
SaschaVoid has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
saschavo1d has quit [Ping timeout: 260 seconds]
rikkipitt has quit [Remote host closed the connection]
SaschaVoid has joined #ruby
rikkipitt has joined #ruby
SaschaVoid has quit [Client Quit]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
bvcosta has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
bvcosta has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
Kug3lis has joined #ruby
Kug3lis has quit [Client Quit]
bkxd has quit [Ping timeout: 245 seconds]
HoierM has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
johnny56_ has joined #ruby
belmoussaoui has joined #ruby
MarkBilk has quit [Ping timeout: 258 seconds]
psychicist__ has joined #ruby
flying has joined #ruby
ur5us has quit [Remote host closed the connection]
johnny56 has quit [Ping timeout: 264 seconds]
oli______ has joined #ruby
flying has quit [Client Quit]
test has joined #ruby
test is now known as Guest44413
Guest44413 has quit [Remote host closed the connection]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
oli______ has quit [Remote host closed the connection]
ur5us has joined #ruby
MarkBilk has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
Rodya_ has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
renchan has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
brendan- has joined #ruby
Kug3lis has joined #ruby
synthroid has joined #ruby
jhass has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
swills has joined #ruby
ldnunes has joined #ruby
pupsicle has joined #ruby
jhass has joined #ruby
hutch34 has joined #ruby
<mikecmpbll>
anyone got any experience of using traveling-ruby with native extensions that aren't yet supported by the project?
<mikecmpbll>
i want to package up a ruby project that uses msgpack gem.
nachoman has quit []
Puffball has quit [Remote host closed the connection]
pupsicle has quit [Client Quit]
Puffball has joined #ruby
nachoman has joined #ruby
pupsicle has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ninja0n3 has quit [Quit: Leaving]
heyimwill has quit [Ping timeout: 255 seconds]
krasnus has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
oleo has joined #ruby
rikkipitt has quit [Quit: Leaving...]
Kug3lis has joined #ruby
hogetaro has joined #ruby
krasnus has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
tmm88 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xzhao has joined #ruby
xzhao has quit [Remote host closed the connection]
belmoussaoui has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
ben__ has joined #ruby
omab has joined #ruby
xzhao has joined #ruby
omab has quit [Remote host closed the connection]
omab has joined #ruby
prubini87 has joined #ruby
sepp2k has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Orbixx has quit [Ping timeout: 255 seconds]
workmad3_ is now known as workmad3
heyimwill has joined #ruby
gigetoo has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
kith_ has joined #ruby
kith_ is now known as kith
jhass has quit [Quit: Bye]
mim1k has joined #ruby
ben_____ has joined #ruby
jhass has joined #ruby
prubini87 has quit [Read error: Connection reset by peer]
ben__ has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
dasher^0_o has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
rohitpaulk has joined #ruby
jhass has quit [Client Quit]
Rodya_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
howdoi has quit [Quit: Connection closed for inactivity]
Kug3lis has joined #ruby
jhass has joined #ruby
nachoman has quit []
millerti has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
PatrikasZvaigzde has quit [Ping timeout: 246 seconds]
PatrikasZvaigzde has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
dasher^0_o has joined #ruby
ujjain has quit [Ping timeout: 246 seconds]
jhass has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
Mon_Ouie has joined #ruby
mostlybadfly has joined #ruby
DLSteve has joined #ruby
mjuszczak has joined #ruby
tmm88 has quit [Quit: Page closed]
mim1k has joined #ruby
gizmore has joined #ruby
tomphp has joined #ruby
mjuszczak has quit []
shinnya has joined #ruby
oliv_____ has quit [Remote host closed the connection]
xzhao has quit [Remote host closed the connection]
oliv_____ has joined #ruby
KeyJoo has joined #ruby
bmurt has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
renchan has quit [Quit: Leaving...]
xzhao has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
oliv_____ has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
arup_r has joined #ruby
tomphp has joined #ruby
belmoussaoui has joined #ruby
GinoMan has joined #ruby
tomphp has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
KeyJoo has quit [Excess Flood]
KeyJoo has joined #ruby
perniciouscaffei has joined #ruby
tomphp has joined #ruby
Kug3lis has joined #ruby
_joes___ has quit [Quit: Connection closed for inactivity]
Alex9 has joined #ruby
tomphp has quit [Client Quit]
bvcosta has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhou__ has joined #ruby
ur5us has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
swills has quit [Quit: Leaving]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DeeJayh has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
DeeJayh_ has joined #ruby
rohitpaulk has joined #ruby
bvcosta has joined #ruby
Rodya_ has joined #ruby
djbkd has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
bvcosta_ has joined #ruby
patarr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 258 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
jhass has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
<Burgestrand>
IAM_ (3 hours later) not AFAIK, but you can create your own object with a similar interface, and specifically implement `[]=(key, value)`
Derperperd has quit [Ping timeout: 240 seconds]
swills has joined #ruby
oliv_____ has joined #ruby
DeeJayh_ has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Remote host closed the connection]
DeeJayh has joined #ruby
ldnunes has joined #ruby
DeeJayh_ has joined #ruby
<IAM_>
Burgestrand: Thanks for the info. So I'm guessing the implementation for assignment []= could differ from read/traversal. Would writing an extended object need much more to it than the autovivification example needs? Such as: tree = proc { Hash.new { |hash, key| hash[key] = tree.call } }
bkxd has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
LastWhisper____ has joined #ruby
DeeJayh has quit [Ping timeout: 260 seconds]
<Burgestrand>
IAM_ problem will arise if you want to something such as `tree["x"]["y"] = "Hey"` without `tree["x"]` being defined
bkxd has joined #ruby
<Burgestrand>
IAM_ since the implementation of `[]` in the root node does not know if you want to autovivi…thingy or if you want a nil value
<Burgestrand>
IAM_ so sorry, I did misunderstand your initial question
chouhoulis has joined #ruby
bmurt has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
omab has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
DeeJayh_ has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
ferr1 has quit [Quit: WeeChat 1.8]
WxW has joined #ruby
<IAM_>
Ok thanks. I had wondered if there was a way to "propagate" the difference between doing a `tree["x"]["y"] = "Hey"` versus a test access `tree["x"]["y"]` that just checks for the presence of that `["y"]`.
WxW has left #ruby [#ruby]
WxW has joined #ruby
<Burgestrand>
IAM_ there's possibly a way to hack around it, but there's no nice way to go about it I don't think
Derperperd has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
WxW has left #ruby ["Leaving"]
perniciouscaffei has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
howdoi has joined #ruby
djbkd has joined #ruby
chalkmonster has joined #ruby
cschneid_ has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
nchambers is now known as stupidity
stupidity is now known as nchambers
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
milardovich has joined #ruby
chalkmonster has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
xzhao has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
djbkd has quit [Ping timeout: 255 seconds]
gothicsouth has joined #ruby
milardov_ has joined #ruby
roychri has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
swills has quit [Quit: Leaving]
brent__ has joined #ruby
zipace has quit [Ping timeout: 258 seconds]
milardov_ has quit [Remote host closed the connection]
boombox_ has joined #ruby
milardovich has joined #ruby
boombox_ has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ascarter has joined #ruby
ascarter_ has joined #ruby
swills has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
yeticry_ has joined #ruby
milardovich has quit [Remote host closed the connection]
Kug3lis has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Quit: Closing time!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has quit [Read error: Connection reset by peer]
<ivanskie>
i know its wrong channel but.. (famous last words)... uhm is there a command to 'forget' all previous changes in git before I push? i don't want it to push anything about what i did before how the files are right now
Rodya_ has joined #ruby
gusrub has joined #ruby
petruff1 has joined #ruby
nitric has joined #ruby
<ivanskie>
not sure if i need clean or reset. because I want to keep everything i just did, without history. i do git push origin, and it tells me uploading 5mb.. and its wrong unless its uploading previous changes which i don't want it to do
Beams has quit [Quit: .]
ascarter has quit [Ping timeout: 260 seconds]
im0nde has quit [Quit: im0nde]
im0nde has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
Ishido has quit [Ping timeout: 246 seconds]
<Papierkorb>
ivanskie: Have you committed them already, or only staged through `git add`?
dasher^0_o has quit [Ping timeout: 268 seconds]
<Papierkorb>
ivanskie: You can view the most recent commit (probably the one you created) with `git show` (without further parameters) to review it again. Maybe you added a binary file (images?) by accident
<ivanskie>
hm
[Butch] has joined #ruby
MarkBilk_ has joined #ruby
<ivanskie>
maybe this git rm --cached FILENAME
hutch34 has quit [Ping timeout: 246 seconds]
MarkBilk has quit [Ping timeout: 246 seconds]
muelleme has quit [Ping timeout: 258 seconds]
Ishido has joined #ruby
mjuszczak has joined #ruby
weathermaker has joined #ruby
MarkBilk has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 245 seconds]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MarkBilk_ has quit [Ping timeout: 246 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
bkxd has joined #ruby
DeeJayh has joined #ruby
gusrub has quit [Remote host closed the connection]
Silthias has left #ruby [#ruby]
hobodave has joined #ruby
xzhao has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iron16 has joined #ruby
bvcosta_ has quit [Remote host closed the connection]
hahuang65 has quit [Read error: Connection reset by peer]
bvcosta has joined #ruby
synthroid has quit []
plujon has quit [Remote host closed the connection]
cfec0b8d has quit [Remote host closed the connection]
<pupsicle>
I guess my point wasn't that it wasn't redundant but that he may not be expressing what he intended to.
<pupsicle>
Apologies for getting fired up.
<baweaver>
happens
<baweaver>
weekend is almost here
<havenwood>
pupsicle: It's extremely common for new folk to `== false` and `== true` when the values are `false`, `true` or `nil`. I assumed Strings were in no way involved because of the `== true`.
<baweaver>
pretty much that
<havenwood>
Hopefully the value doesn't alternate between TrueClass and a String or there are other issues in play.
bvcosta has quit [Ping timeout: 255 seconds]
rgr has joined #ruby
<havenwood>
I see it enough one wonders if Ruby should warn in that case.
<havenwood>
the == true check, i mean
<havenwood>
I guess like pupsicle points out, it *can* be intended.
hutch34 has joined #ruby
mjuszczak has quit []
lagweezle_away is now known as lagweezle
aufi has quit [Remote host closed the connection]
<pupsicle>
I just saw 'params' and immediately thought Rails and strings.
desnudopenguino has joined #ruby
<desnudopenguino>
I have an issue trying to get rid of \xA0 unicode characters in a string, anyone have any suggestions?
Kug3lis has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
devyn has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
ur5us has joined #ruby
bvcosta has joined #ruby
muelleme has joined #ruby
bvcosta has quit [Remote host closed the connection]
yottanami has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
mjuszczak has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
devyn has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby
bvcosta has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
grymmjack has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
<ivanskie>
looks like YAML is loaded with relation to different dir than this hmm
Xiti has joined #ruby
ascarter_ has quit [Read error: Connection reset by peer]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
rgiscard has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 245 seconds]
dc4 has joined #ruby
mjuszczak has quit []
bvcosta has quit [Ping timeout: 268 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
petruff1 has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
petruff1 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
oliv_____ has joined #ruby
stryek has joined #ruby
speakingcode has joined #ruby
chouhoulis has joined #ruby
stryek_ has quit [Ping timeout: 260 seconds]
petruff2 has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
petruff1 has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
ascarter has joined #ruby
govg has joined #ruby
bvcosta has joined #ruby
jaruga________ has quit [Quit: jaruga________]
kies has joined #ruby
mjuszczak has quit []
<Authenticator>
A user of an app I wrote is having a *ton* of 'already initialized constant' messages about OpenSSL. I don't when I run the same app the same way. I bundled the OpenSSL 2.0.3 gem with it.
mjuszczak has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
petruff2 has quit [Ping timeout: 240 seconds]
govg has quit [Quit: leaving]
solars has joined #ruby
Kug3lis has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
<solars>
hey, I've got the following Gemfile and test script, but keep getting /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/setup (LoadError)
mim1k has joined #ruby
<solars>
with bundle exec sudo ruby test.rb - can anyone tell me what's wrong here?
<ivanskie>
thought the YAML was getting loaded with different relation to the app. but couldn't fix it. YAML.read_file() gets "./sites/site.yml" and still gives an error that seems to point to wrong file path.
lagweezle is now known as lagweezle_away
<Authenticator>
Does anyone know why my user is getting a bunch of OpenSSL constant-already-initialized messages and I am not? They installed my bundled gems...
ur5us has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<learningruby>
Most Ruby books are all kinda superficial and ambiguous, I've tried several. Can anybody suggest a resource for learning Ruby that is more precise and detailed but not as puzzling as the Ruby documentation itself for a beginner?
centrx has quit [Client Quit]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
Fernando-Basso has quit [Quit: WeeChat 1.8]
<learningruby>
So elomatreb, if Ruby ‘raises an exception’ related to ZeroDivisionError for example, it means that Ruby detected a division by zero and then responded to this error by creating an object of ZeroDivisionError class?
Rodya_ has joined #ruby
username_ has joined #ruby
ascarter_ has joined #ruby
<ivanskie>
what is a recommended tdd/bdd process for ruby apps, outside of rails?
<ivanskie>
something that's not overkill lol
Rodya_ has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<baweaver>
ivanskie: you can just use RSpec the same as anything else, or Minitest if you're so inclined
<baweaver>
I typically just set up Guard/RSpec on a project and go at it
<baweaver>
learningRuby: See the channel topic, there's a book list in there
<ivanskie>
hm
<baweaver>
Really I tend to read Eloquent Ruby most times, but if you really want that good tome-y feel check out The Ruby Way
mochiyoda_ has joined #ruby
<ivanskie>
as i asked the question I realised if i'm going to test it i'll have to retool the code a bit to accept faker
<ivanskie>
gah
<ivanskie>
this is becoming a medusa of a project
<ivanskie>
for no reason what so efer
<ivanskie>
ever
mjuszczak has quit []
creshiem has quit [Quit: creshiem]
<learningruby>
thanks a lot baweaver.. I'm currently reading “well grounded rubyist” it's good but often ambiguous which annoys me a bit.. I'll check these ones you suggested
<baweaver>
makes a brand new packageable gem for ya
<baweaver>
Most Ruby tends to be lib/ and spec/ (or test/)
<ivanskie>
i could just duplicate the 'master' branch folder and edit the yml csv files. but no i decided i need to have a folder Sites and read sitename.yml & sitename.csv files lol
brent__ has quit [Remote host closed the connection]
<learningruby>
baweaver For example, “An exception is a special kind of object, an instance of the class Exception or a descendant of that class. ” → here at the end of this sentence, I don't know whether the exception are the descendent classes themselves or instances of these descendent classes. Not the best example, but run into many situations where it's not
<learningruby>
perfectly clear what the sentence means.
<learningruby>
*descendant
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
bpmedley has joined #ruby
centrx has quit [Remote host closed the connection]
ivanskie has quit [Quit: Page closed]
t-recx has quit [Quit: t-recx]
nertzy has quit [Quit: This computer has gone to sleep]
wtc has quit [Ping timeout: 246 seconds]
wtc has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
lxsameer has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
ascarter_ has quit [Ping timeout: 240 seconds]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
seems perfectly clear to me. what are you getting confused by specifically?
<learningruby>
it is clear to you because you know what an exception is in advance.. but if you read by comment carefully you'll see the ambiguity
ascarter_ has joined #ruby
<zenspider>
no, actually I won't... which is why I asked what specifically you got hung up on... and I was willing to help you with that but it seems like you don't want that
<learningruby>
sorry for being rude man. ok, here's the ambiguity, more specifically: “an instance of the class Exception or a descendant of that class” → you could remove the ambiguity like this “an instance of the class Exception or OF a descendant of that class”
godel_ has quit [Remote host closed the connection]
<learningruby>
“an instance of the class Exception or a descendant of that class. ” can have two meanings: 1. “an (instance of the class Exception) or (a descendant of that class)” and 2. “an instance of (the class Exception) or (a descendant of that class).”. I think what the book meant is the second interpretation.