sytherax has quit [Remote host closed the connection]
psprint has quit [Ping timeout: 256 seconds]
psprint has joined #ruby
Immune has joined #ruby
Immune has left #ruby [#ruby]
sytherax has joined #ruby
sytherax has quit [Ping timeout: 265 seconds]
darkhanb has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
akaiiro has quit [Remote host closed the connection]
nicht has quit [Ping timeout: 245 seconds]
Yxhuvud has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
andrewray has joined #ruby
aupadhye has joined #ruby
reber has joined #ruby
<dminuoso>
arne: You should use SizedQueue. This STM is about the most naive implementation I've seen.
armando has quit [Ping timeout: 256 seconds]
Yxhuvud has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
conta has joined #ruby
andrewray has quit [Ping timeout: 240 seconds]
armando has joined #ruby
kapil___ has joined #ruby
biberu has joined #ruby
dionysus69 has joined #ruby
conta has quit [Quit: conta]
<havenwood>
wkoszek: If I recall, I was saying Ruby can be statically linked against dependencies instead of dynamically linked. That's what RVM and Travis, etc, do when they ship "precompiled" Ruby.
<za1b1tsu>
it's not just session[. it does not find session
<za1b1tsu>
had to go in terminal with grep :D
rabajaj_ has quit [Ping timeout: 268 seconds]
Zaab1t has joined #ruby
rabajaj has joined #ruby
ur5us has quit [Remote host closed the connection]
BlopMonster has joined #ruby
apparition has joined #ruby
ur5us_ has joined #ruby
rabajaj_ has joined #ruby
rabajaj_ has quit [Client Quit]
ur5us_ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<NL3limin4t0r>
za1b1tsu: Try Ctrl+Shift+F
rabajaj has quit [Ping timeout: 260 seconds]
BlopMonster has quit [Ping timeout: 276 seconds]
<NL3limin4t0r>
Shift+Shift is just for finding filenames or classes
<NL3limin4t0r>
The navigation shortcuts I'll use most are Ctrl+N for navigating classes, Ctrl+Shift+N for navigating plain file names and Ctrl+Shift+F to find content of files in the whole project.
kapil___ has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
heftig_ is now known as heftig
amar has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
RougeR has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
ciscam has quit [Ping timeout: 245 seconds]
ciscam has joined #ruby
workmad3 has joined #ruby
micutzu has quit [Ping timeout: 260 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
micutzu has joined #ruby
jottr has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
kt has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
xuyuheng has quit [Ping timeout: 276 seconds]
patteh_ has quit [Remote host closed the connection]
patteh has joined #ruby
gigetoo has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
sleetdrop has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
patteh has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
GodFather has joined #ruby
megamos has joined #ruby
karapetyan has joined #ruby
jottr has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
pacorro2000 has quit [Quit: leaving]
jcalla has joined #ruby
ta_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
kt has quit [Ping timeout: 256 seconds]
kliq has quit [Quit: Leaving]
kt has joined #ruby
<eising>
If I have a string that ends with a \r\n, am I right to suspect that this will not be matched by regex '$'?
<heftig>
eising: the \r is a problem, yes
<eising>
looks like I have to .chomp then
<heftig>
.chomp("\r\n")
cyberg has quit [Ping timeout: 256 seconds]
<heftig>
ah, nvm, bare .chomp does recognize \r\n
cyberg has joined #ruby
kt has quit [Ping timeout: 245 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
<braindead_>
scrooloose, also with the path its not working
<scrooloose>
braindead_: what is the error?
<braindead_>
bundle not found
<braindead_>
if i ssh in the path, can i check the bundle there somehow?
<braindead_>
if i just type bundle exec ruby script/mail_new_activity something should happen, right?
<braindead_>
because there is no feedback at all
<braindead_>
no error but no success either
aupadhye has quit [Ping timeout: 264 seconds]
<scrooloose>
braindead_: Yeah you should be able to ssh in and run the command and then sub in the full path to bundler for cron
Es0teric has quit [Quit: Computer has gone to sleep.]
amatas has joined #ruby
<scrooloose>
so the crontab entry command will be something like `cd /path/to/app/dir && /path/to/bundle exec the-command`
Rapture has joined #ruby
<braindead_>
i tried this, but its the same result. bundle not found
<braindead_>
cd /var/www/vhosts/domain/httpdocs && env RAILS_ENV=production sh -c '/var/www/vhosts/domain/httpdocs/bundle exec ruby script/mail_new_activity; /var/www/vhosts/domain/httpdocs/bundle exec ruby script/post_to_twitter'
face has joined #ruby
<braindead_>
but bundle is not a folder.. do i need to make a space between the path and bundle?
<dminuoso>
The uglifyify transform removes development imports. Make it global too (-g).
<dminuoso>
What the..
<scrooloose>
braindead_: what does `which bundle` return?
mikecmpbll has quit [Quit: inabit. zz.]
<braindead_>
i did it like this now and no errors returned
<braindead_>
cd /var/www/vhosts/domain/httpdocs && env RAILS_ENV=production sh -c 'cd /var/www/vhosts/domain/httpdocs bundle exec ruby script/mail_new_activity; cd /var/www/vhosts/domain/httpdocs bundle exec ruby script/post_to_twitter'
mikecmpbll has joined #ruby
kt has joined #ruby
<scrooloose>
result!
k0mpa has joined #ruby
<scrooloose>
I guess 2/3rds of those `cd /var/www/...httpdocs` commands are redundant?
micutzu has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
amatas has quit [Ping timeout: 264 seconds]
<braindead_>
it dont returns anything because i am running it in plesk
<braindead_>
but the server is not running. at least i cant reach the app in browser
<braindead_>
it just returns "command here" successfully completed in 0 seconds.
<braindead_>
can i somehow check if the app is running in the background?
amar has joined #ruby
amelliaa has joined #ruby
<scrooloose>
braindead_: you can ssh onto the machine right? why not just search/grep the output of `ps -eF` or similar? or `lsof -nPi` and see what is listening
vondruch has joined #ruby
dhollin3 is now known as dhollinger
<braindead_>
thanks. it seems like nothing is started
<wkoszek>
havenwood: Thanks.
<braindead_>
when i paste this into shell nothing happens as well: cd /var/www/vhosts/domain/httpdocs && env RAILS_ENV=production sh -c 'cd /var/www/vhosts/domain/httpdocs bundle exec ruby script/mail_new_activity; cd /var/www/vhosts/domain/httpdocs bundle exec ruby script/post_to_twitter'
<braindead_>
normally i start the server like this: rails s -e production
sinduck has joined #ruby
<braindead_>
do i maybe need to add this before the &&
<scrooloose>
braindead_: are these just periodic tasks you are wanting to run?
<scrooloose>
if you run the command, does it output to any log files? try running then look at `find / -mmin -5` and see if it changed any files
<henoc>
What I need to do for use it ?
amatas has joined #ruby
<henoc>
for execute this
<henoc>
to execute this
<scrooloose>
braindead_: other than that I would say to start sticking `puts` commands inside the scripts and see what is happening
<braindead_>
find / -mmin -5 results in an huge output. cant see if there changes something.
<braindead_>
i just opened one of the scripts. where would i stick puts in? just at the beginning?
dviola has joined #ruby
jrafanie has joined #ruby
venmx has quit [Ping timeout: 276 seconds]
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
BlopMonster has joined #ruby
gigetoo has joined #ruby
thebetrayer has joined #ruby
conta has quit [Quit: conta]
saTchymoto has quit []
workmad3 has quit [Ping timeout: 260 seconds]
<braindead_>
scrooloose: maybe you have an idea
arekushi has quit [Quit: Gateway shutdown]
<braindead_>
if i ssh to the path and run ->> rails s && env RAILS_ENV=production sh -c 'bundle exec ruby script/mail_new_activity' it works
<braindead_>
but when i stay at the same path and type ->> cd /var/www/vhosts/domain/httpdocs rails s && env RAILS_ENV=production sh -c 'bundle exec ruby script/mail_new_activity' nothing happens. no error, no server start
chouhoulis has joined #ruby
workmad3 has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
<mnemon>
braindead_: cd fails with 3 arguments, nothing after && will be run.
arekushi has joined #ruby
<mnemon>
cd /var/www/vhosts/domain/httpdocs; rails s && ...
<braindead_>
that worked! thank you mnemon
<mnemon>
np
ellcs has joined #ruby
BlopMonster has quit [Ping timeout: 255 seconds]
millerti has joined #ruby
biberu has quit []
karapetyan has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 256 seconds]
xuyuheng has quit [Remote host closed the connection]
<baweaver>
Or use that, less of a mess than the original script
<baweaver>
Anyways, off I go.
venmx has quit [Ping timeout: 256 seconds]
apeiros has quit [Ping timeout: 265 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
TomyWork has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
<Zladivliba>
baweaver: thanks. It's a script to export wp comments i found online, i'm trying to migrate to Jekyll
<Zladivliba>
baweaver: your code doesn't work, same problem
<Zladivliba>
undefined method `[]' for nil:NilClass (NoMethodError)
<cdunklau>
baweaver: my ruby isn't good enough yet to grok the madness in that post. <<= definitely does work though https://bpaste.net/show/dbeef5e8a1a3
<cdunklau>
baweaver: but i guess i don't understand what exactly that's _doing_
anisha has quit [Quit: This computer has gone to sleep]
<telmac>
so let's say I want to do something equivalent to like, performing a test on every element in the cartesian product of two sets
<telmac>
my first intution was do two nested while loops, but, and this I don't understand, resulted in the function ending too soon? so it would do the first iteration of the first while loop
<telmac>
and all of the iterations of the second while loop, and then just end
<telmac>
when I tried two nested for loops, this *did* work, but for in ruby returns an array at the end, which I don't want
ramfjord_ has joined #ruby
orbyt_ has joined #ruby
<havenwood>
telmac: What are you doing inside the loop?
plexigras2 has joined #ruby
<havenwood>
telmac: finding or filtering or mapping or other?
<havenwood>
zenspider: I didn't really look into it, but there's a benchmark/ directory so I was assuming yeah performance
<zenspider>
man... I cannot stand the way postmodern structures their gems. ugh. I'm done digging
<havenwood>
zenspider: #=> 66
<zenspider>
meaning you can't repro either?
Burgestrand has quit [Quit: Closing time!]
jokke1 has quit [Disconnected by services]
<zenspider>
did you use LANG=fr_FR.UTF-8 ruby blahblah ?
jokke1 has joined #ruby
orbyt_ has joined #ruby
<zenspider>
oooh... maybe I need to install git under that lang to get the proper locale?
<havenwood>
zenspider: Yeah, I can't reproduce with just the LANG export.
<havenwood>
I don't have FR installed.
<zenspider>
kk. I'll have to try this the hard way
<havenwood>
I mean, I didn't install git under FR.
<havenwood>
zenspider: gl!
<zenspider>
I would THINK that it doesn't selectively install langs... but who knows?
drale2k_ has joined #ruby
eckhardt has joined #ruby
grilix_ has joined #ruby
eckhardt_ has quit [Ping timeout: 256 seconds]
grilix has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
workmad3 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
RougeR has quit [Ping timeout: 264 seconds]
RougeR has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
trying to install ubuntu in french... this is going poorly
RougeR has quit [Ping timeout: 256 seconds]
<mozzarella>
la baguette le fromage
jenrzzz has quit [Ping timeout: 256 seconds]
<dviola>
zenspider: what's the issue?
jenrzzz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has joined #ruby
\void has joined #ruby
dbugger__ has joined #ruby
Azure|dc has joined #ruby
<eam>
the computer went on strike
<mozzarella>
I don't think it's a good idea to rely on the output of git status like that…
dbugger_ has quit [Ping timeout: 245 seconds]
<braindead_>
cross posting this question from #rubyonrails because i think its also valid in ruby
<braindead_>
in my rails app there is a view template where the text is rendered like this: render :html => ("<div class=\"box wide\">" << "text here" << i can add html tags like br, strong and so on there but run into errors while trying to include a img tag. is there a workaround?
karapetyan has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
<dviola>
zenspider: try `locale -a'?
beefjoe has quit [Remote host closed the connection]
<dviola>
on my system I would have to uncomment the locale in /etc/locale.gen, run locale-gen and set LANG=fr_FR.UTF-8 in /etc/locale.conf, in ubuntu there must be a GUI somewhere
orbyt_ has joined #ruby
synthroid has quit []
mantak has quit [Quit: Leaving]
kmurphy4 has joined #ruby
dr3w_ has quit [Read error: Connection reset by peer]
dr3w_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neohunter has joined #ruby
noron99 has quit [Remote host closed the connection]
neohunter has quit [Client Quit]
Zaab1t has quit [Quit: Zaab1t]
<zenspider>
dviola: HOW THE HELL DO YOU TYPE @ IN AZERTY?!?
<zenspider>
STUPID GIT REQUIRES AN EMAIL
<zenspider>
ARGH
<zenspider>
I'm mostly there tho... I have ruby and git installed. I'm making a bogus git repo. Then I should be able to reproduce this error
<zenspider>
tho it might be worth it to do what you said so I have qwerty (or better, dvorak) but have the locales installed and working
sameerynho has joined #ruby
<zenspider>
yeah. fuck it. this is too hard.
<kspencer>
zenspider: AltGr+0
<zenspider>
I honestly don't even know what that means :P
<zenspider>
I just nuked it. Reinstalling w/ dvorak so I can type like a human.
<zenspider>
shouldn't take too long
<kspencer>
how bout qwerty so you can type like a human
<zenspider>
mmmm... no
<dviola>
you could change the keyboard layout with setxkbmap
<dviola>
setxkbmap dvorak
<dviola>
setxkbmap us
<dviola>
:P
<zenspider>
it's fine. this should only be another minute or two
<zenspider>
does that work in non-x11? I'm only in console (vmware)
<zenspider>
(I'm more of a freebsd / osx guy)
<dviola>
setxkbmap is X11 specific, iirc
<zenspider>
yeah. that's what I thought. tho I usually used xmodmap... but I'm old school
<dviola>
there must be something for the linux console
schleppel has quit [Quit: Konversation terminated!]
<zenspider>
in freebsd it is keymap
<kspencer>
whats your aversion to qwerty
<zenspider>
it utterly sucks and I don't type in it.
sameerynho has quit [Ping timeout: 264 seconds]
<darix>
azerty is real pita though :P
<kspencer>
sucks, objective, but yeah I guess I'm on the other boat, I've typed in qwerty all my life, not wanting to go dvorak or azerty because it would be hell trying to learn it and switch between it depending on the computer
<zenspider>
emacs ... git ... ruby ... almost there
<zenspider>
kspencer: I generally don't have to switch. ever. I refused to get good at something designed to be bad so I never touchtyped qwerty
neohunter has joined #ruby
Hobbyboy has joined #ruby
ur5us has joined #ruby
<dviola>
zenspider: I think it's loadkeys
<zenspider>
dviola: hrm... I don't have either of those files in /etc/
<dviola>
sudo loadkeys dvorak
<dviola>
sudo loadkeys us
BlopMonster has quit [Ping timeout: 268 seconds]
neohunter has quit [Client Quit]
<dviola>
it works here, except that I can't type with dvorak :P
reber has quit [Read error: Connection reset by peer]
amar has quit [Remote host closed the connection]
akaiiro has joined #ruby
amar has joined #ruby
chouhoul_ has joined #ruby
timmow has joined #ruby
jenrzzz_ has joined #ruby
amar has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
<zenspider>
dviola: thank you. that helped. And I think showed that his PR is also bad.
chouhoulis has quit [Ping timeout: 240 seconds]
BlopMonster has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
desperek has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
akaiiro has quit [Remote host closed the connection]
dbugger__ has quit [Ping timeout: 276 seconds]
<zenspider>
uuuugh linux is a horrible monster
<zenspider>
such an unusable mess
<zenspider>
guess it makes sense that two of my most hated tools are done by the same person... he just shouldn't be allowed to make things that humans interface with
megamos has quit [Remote host closed the connection]
<havenwood>
zenspider: No promise it's sane. ;-P
megamos has joined #ruby
workmad3 has joined #ruby
sanscoeur has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amatas has quit [Quit: amatas]
workmad3 has quit [Ping timeout: 265 seconds]
<FernandoBasso>
Are there any ruby books that don't teach using examples that print strings on the terminal only? Something that teaches 'ruby paradigms' using somewhat more realist examples?
sanscoeur has joined #ruby
sphenxes has quit [Quit: Leaving]
ramfjord has joined #ruby
<dviola>
zenspider: yw
akaiiro has joined #ruby
weird_error has quit [Quit: weird_error]
braindead_ has quit [Quit: Page closed]
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
weird_error has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
desperek has quit [Quit: xoxo]
wontruefree has quit [Quit: this is not the client you are looking for]
BlopMonster has joined #ruby
mikecmpbll has joined #ruby
<cthulchu>
folks, I'm sorry for asking, but what's the difference between require and require_parent?
<cthulchu>
I have a subtle feeling that require_parent has a hint of OOP to it
<havenwood>
cthulchu: The latter isn't a thing in Ruby itself.
<cthulchu>
ooooh
<cthulchu>
weeeeeird
<cthulchu>
what is it?
<havenwood>
cthulchu: Are you thinking require_relative maybe?
<cthulchu>
oh, yes, sorry
<cthulchu>
it's _relative
<cthulchu>
ha, it's not the relative I was thinking about :)
<cthulchu>
ahahah
<havenwood>
chamunks: require will go through $LOAD_PATH directories and try to find the file
<havenwood>
oops, MT
<cthulchu>
that's for me
<cthulchu>
aha!
<havenwood>
cthulchu: require_relative ignores the $LOAD_PATH and is instead relative to the path of the file
<ruby[bot]>
cthulchu: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com