gusrub has quit [Read error: Connection reset by peer]
Salve has joined #ruby
Derperperd has quit [Quit: Derperperd]
RonRichie has joined #ruby
<RonRichie>
hey there! :) I've a question about Ruby, does Ruby by any chances offer capability such as listening to the browser actions? for instance... I want to setup an even listener(or something similar, whatever it is in Ruby) then whenever a new tab is opened in a browser I want the browser to perform this specific action, is this something that seems Ruby can do? thanks
Salve has quit [Ping timeout: 256 seconds]
cosmicera has joined #ruby
hahuang61 has joined #ruby
RonRichie is now known as WalterKing001
<WalterKing001>
anyone pls?
hightower2 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
<cosmicera>
I have a question about ruby as a main scripting language in Linux. I know that python 2.X is available in most distros by default, but my preference has become ruby. What are the best methods to ensure that I will be able to program in my language of choice?
<cosmicera>
I really haven't been able to find an answer to the question and I really don't know where to ask it.
<cosmicera>
So I came here.
hahuang61 has joined #ruby
<elomatreb>
cosmicera: If you want to use Ruby, you're probably going to have to get used to having to install it
<elomatreb>
I don't know any Linux distro that ships with it by default. OS X has a really old version, but that's it
<cosmicera>
I understand that. But is that an acceptable compromise?
<cosmicera>
The best thing to do is install the ruby installer?
<elomatreb>
Of course, if you like Ruby
<cosmicera>
And then go from there?
hightower2 has joined #ruby
<elomatreb>
On Linux, it depends on the distro. Debian-likes usually provide relatively old versions, so it can use very benefical to use dedicated tools for installing Ruby
<cosmicera>
Got it.
<elomatreb>
On the other hand, for example on Archlinux, you can generally use the regular ruby package
<havenwood>
elomatreb: latest OS X ships with 2.0.0
<havenwood>
cosmicera: Arch and Fedora have particularly nice Ruby packages, among other distros.
<cosmicera>
Hmm. I think I got it. So part of setting up a distro would be install tmux install ruby.
<havenwood>
cosmicera: ruby-install is nice to make things quick and light
Aquazi_ has quit [Read error: Connection reset by peer]
<havenwood>
cosmicera: `ruby-install --latest --system ruby` to install to /usr/local/ when you don't need a Ruby version switcher
railssmith has joined #ruby
<havenwood>
chruby is being adopted by a growing list of package managers for when you need to switch Rubies
<havenwood>
or yeah, rvm
optiz0r has quit [Ping timeout: 256 seconds]
<cosmicera>
havenwood: Sounds good. Thanks a lot for your help.
<pokalyis>
I've a ruby script in my $PATH named git-X. I'm getting "No manual entry for X", when trying to do "git X --help". "git-X --help" works. Any idea what the problem might be?
ixti has quit [Quit: WeeChat 1.6]
saneax is now known as saneax-_-|AFK
<pontiki>
the first looks like git is looking for it
<havenwood>
pokalyis: It'd be a good idea to use lowercase for you command name. Is the file executable? Is its shebang correct?
<pokalyis>
havenwood X was just an example. It's called something else
chouhoulis has joined #ruby
<havenwood>
pokalyis: looks like it's saying there's no manpage for it? dunno why
<pokalyis>
havenwood Yes, I can access the file using git-X
<pontiki>
git's subcommands are written as git-subcommand
<pokalyis>
pontiki Yes?
<pontiki>
so git doesn't know where to find you script's man page
<pokalyis>
pontiki I worked before and I've never had any man pages, which is strange. --help has always being passed directly to the script, but doesn't work for some reason
<pontiki>
as `git X` ?
<pokalyis>
pontiki Yes. 'git X --help'
<pokalyis>
It has been working since 2012
chouhoulis has quit [Ping timeout: 265 seconds]
<pontiki>
when's the last time it worked?
<pokalyis>
Some users said `git X --help` didn't work as of 2014, but I couldn't reproduce it until today
<pontiki>
so what's changed?
<pokalyis>
pontiki Last time I ran the script it was under a different user in OS X – so some bash/zsh config
<pontiki>
probably not a ruby issue?
<pokalyis>
It should be the same dot file repo tho
<doxterpepper>
Alright, I'm at a loss. There is some way to invoke and start a cucumber test from within ruby right? I've seen it done before but I don't know where, or I'm just crazy, probably the latter.
sylario has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<pokalyis>
pontiki Tried different versions back in 2015. Couldn't reproduce it
<pontiki>
doxterpepper: a step or a scenario?
<pontiki>
pokalyis: did your ruby change?
flashpoint9 has joined #ruby
<pokalyis>
pontiki No, same version. Tried a few more as well
<doxterpepper>
pontiki: I'm trying to do the same thing as running cucumber from the command line but from within ruby. Like create a cucumber object with the options that would be from the command line and then invoke some run method on that object. I think I've seen it done before but I just dont' remember how
<pontiki>
so still probably not ruby, pokalyis
roamingdog has quit [Remote host closed the connection]
xall has quit [Ping timeout: 252 seconds]
<pokalyis>
pontiki Nope. The --help param doesn't reach the script. Git is catching it before
solocshaw has joined #ruby
<pontiki>
doxterpepper: i'm sure there's a way; i haven't done that :/
<doxterpepper>
There seems to be no documentation on doing that
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
ichkv has joined #ruby
koooge_ has joined #ruby
roamingdog has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
raeoks has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
roamingdog has quit [Remote host closed the connection]
jhack has quit []
Dobler has joined #ruby
roflmyeggo has joined #ruby
harai has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
optiz0r has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
sneakerhax has quit [Read error: Connection reset by peer]
modlin has quit [Ping timeout: 256 seconds]
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
arescorpio has quit [Quit: Leaving.]
nuclearsandwich has quit [Read error: Connection reset by peer]
nuclearsandwich has joined #ruby
Felipe__ has joined #ruby
Dobler has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeyraof has joined #ruby
Felipe__ has quit [Client Quit]
nettoweb has joined #ruby
porfa has quit [Quit: porfa]
Jameser has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
arashb has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
y2mq37 has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
AndrewIsHere has joined #ruby
ur5us has quit [Remote host closed the connection]
Felipe__ has joined #ruby
y2mq37 has joined #ruby
ur5us has joined #ruby
sneakerhax has joined #ruby
Channel6 has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
sleepee has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 250 seconds]
bturker has joined #ruby
flashpoint9 has joined #ruby
gix has quit [Ping timeout: 250 seconds]
dviola has quit [Quit: WeeChat 1.6]
gix has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harfangk has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
l4v2 has quit [Quit: l4v2]
shayan_ has quit [Quit: shayan_]
nuclearsandwich has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
nuclearsandwich has joined #ruby
brendan- has joined #ruby
roflmyeggo has quit [Ping timeout: 252 seconds]
<WalterKing001>
hey there! :) I've a question about Ruby, does Ruby by any chances offer capability such as listening to the browser actions? for instance... I want to setup an even listener(or something similar, whatever it is in Ruby) then whenever a new tab is opened in a browser I want the browser to perform this specific action, is this something that seems Ruby can do? thanks
<elomatreb>
WalterKing001: You'll probably need a browser extension for that
roflmyeggo has joined #ruby
<WalterKing001>
elomatreb that would do it, just not suitable in our case, Google doesn't like our app and it think it violates their store privacy etc etc... it is pretty much going to operate as an extension but it can not be one, it should be native-level executable file or local server
TomyLobo has quit [Ping timeout: 260 seconds]
AndrewIsHere has quit [Remote host closed the connection]
bmurt has joined #ruby
<elomatreb>
WalterKing001: You can write browser extension without uploading them to the store. But If Google doesn't like them, there is probably a reason
hrodrig has joined #ruby
<hrodrig>
hola
<hrodrig>
alguien conoce de mongoid?
<WalterKing001>
elomatreb tried that as well, google automatically disables any extension that doesn't exist in in extension store, so even if you write your own one you can't have it up and running in your own browser, once you close the browser Chrome automatically disables it in an attempt to protect a user etc etc... well, they do have a reason but that doesn't also mean they're right, it's just what they are offering and it doesn't work with
<WalterKing001>
us, having a reason doesn't say much, but do you think Ruby can help us in this situation in any way ?
roflmyeggo has quit [Remote host closed the connection]
Felipe__ has quit [Quit: Leaving]
roflmyeggo has joined #ruby
tdy1 has joined #ruby
<elomatreb>
WalterKing001: I don't think so. Modern browsers are designed to resist other programs meddling with them as much as possible
<hrodrig>
mongoid?
<elomatreb>
hrodrig: It may help if you ask in English
<hrodrig>
hi... I need to parse external json file and insert values in mongoid.yml
<WalterKing001>
elomatreb gotcha gotcha, I know it's totally doable in C/C++ but one should know it very well to be able to pull something like that, so that's just out of my range as well, anyways, thanks for the heads up and thanks for answering my questions :)
<hrodrig>
but these values not are being parsed...
<hrodrig>
some like this: database: <%= MONGOID_JSON["database"] %>
<hrodrig>
I'm making the same with database.yml and these inserted values are being parsed...
<hrodrig>
I think that it's something with mongoid and the way to load yaml files...
tyang has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<hrodrig>
in google nothing about this fact.... :(
harushimo has quit [Quit: This computer has gone to sleep]
aaaaa has joined #ruby
Channel6 has quit [Quit: Leaving]
harushimo has joined #ruby
<aaaaa>
Does Ruby support string formatters?
<adam12>
aaaaa: like sprintf in C?
<gizmore>
Ruby has own neat syntaxes iirc
Dohplay has quit [Read error: Connection reset by peer]
<aaaaa>
%s
<gizmore>
"#{rubycodehere}" is my fav
<bougyman>
format()
harushimo has quit [Quit: This computer has gone to sleep]
insanedreamer has quit [Quit: insanedreamer]
xall has joined #ruby
<elomatreb>
There is also ERB in the standard library, which is basically a full templating engine. Useful when sprintf and string interpolation become unwieldy
jaiks1 has quit [Ping timeout: 258 seconds]
ichkv has quit [Ping timeout: 265 seconds]
roflmyeggo has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
roflmyeggo has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
davidt_ has joined #ruby
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
davidt has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
boombox_ has quit [Remote host closed the connection]
bturker has joined #ruby
boombox_ has joined #ruby
futilegames has joined #ruby
roflmyeggo has quit [Ping timeout: 252 seconds]
jaiks1 has joined #ruby
futilegames has left #ruby [#ruby]
flashpoint9 has joined #ruby
boombox_ has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
ElCapitanMarklar has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
fullofcaffeine has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 256 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
gusrub has joined #ruby
conta has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
exchgr has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
be_______ has joined #ruby
ben_____ has quit [Ping timeout: 256 seconds]
conta has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
futilegames_ has joined #ruby
hays has quit [Read error: Connection reset by peer]
<Papierkorb>
arne: The underlying C function is popen(), whose docs if interested you can read through: man popen
<optiz0r>
having php without apache probably isn't possible for us to provide. Just because apache's installed, doesn't mean you have to run the service, it's just a bit of extra disk utilisation (and disk is cheap)
zzzdemo has joined #ruby
<optiz0r>
damn touchpadfail, sorry
<arne>
iehh php
claudiuinberlin has quit [Ping timeout: 260 seconds]
<Papierkorb>
Apache? PHP? I'm sorry you have to go through that
chouhoulis has joined #ruby
<optiz0r>
fortunately not actually me, someone was asking about OS packages and i was just answering from the package management perspective :)
theRoUS has quit [Remote host closed the connection]
<KiderSpiel>
Maybe someone here is knowledgeable of this, having troublewith paged results
rajdesai has joined #ruby
senayar has quit []
flashpoi_ has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anjana has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
meaggan[m] has joined #ruby
nettoweb has joined #ruby
ziarkaen has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
bluOxigen has joined #ruby
tvw has quit []
harushimo has joined #ruby
Bloomer has joined #ruby
johnmilton has quit [Remote host closed the connection]
Bloomer has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
AlexRussia has joined #ruby
<arne>
Papierkorb: thank you
ace05_ has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
rue has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 260 seconds]
harushimo has quit [Quit: Leaving]
chouhoulis has quit [Remote host closed the connection]
SesMan has joined #ruby
pandaant has quit [Remote host closed the connection]
neminis has joined #ruby
<neminis>
hi! is there in ruby an array method which returns the object validating a condition?
gnufied has quit [Quit: Leaving]
<neminis>
because any? returns a boolean according to the given block but how to get the actual object?
Burgestrand has joined #ruby
<neminis>
'select' seems right
<rue>
Mheh, I am restored to my glory
Silthias1 has quit [Quit: Leaving.]
<dminuoso_>
neminis: select indeed.
brendan- has joined #ruby
Silthias has joined #ruby
<dminuoso_>
neminis: Note that this is from Enumerable in general. Look at it, and learn it - you will use many of those frequently
mim1k|wo1k has joined #ruby
porfa has quit [Quit: porfa]
anisha has quit [Quit: This computer has gone to sleep]
<neminis>
dminuoso_: yes, thanks !
mim1k|work has quit [Ping timeout: 260 seconds]
Bloomer has joined #ruby
Bloomer has quit [Remote host closed the connection]
nadir has joined #ruby
<hanmac>
neminis: check also #find if you only want one element
tyang has joined #ruby
synthroid has joined #ruby
Jameser has joined #ruby
johnmilton has joined #ruby
<neminis>
hanmac: okay, is it more efficient? in that case, it will always be one element anyway
anjana has joined #ruby
<hanmac>
if you know you only want one element, use find because it doesnt check the other elements if it find one
<neminis>
yes it is better
synthroi_ has joined #ruby
prawnzy has joined #ruby
synthroi_ has quit [Remote host closed the connection]
blaxter has joined #ruby
shayan_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
synthroid has quit [Ping timeout: 245 seconds]
Jameser has quit [Max SendQ exceeded]
prawnzy has quit [Ping timeout: 250 seconds]
Jameser has joined #ruby
shayan_ has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
ftj has joined #ruby
tjbiddle has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
<jokke>
hey
ftj has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 260 seconds]
<jokke>
is there a way to do something like this: 5.times.reduce(something, :method_on_something) without reduce passing the items from the collection it's reducing to the method?
rodfersou is now known as rodfersou|afk
wugy has quit []
<dminuoso_>
jokke: What is that supposed to do?
gnufied has joined #ruby
<jokke>
well _that_ isn't a very good example i understand
<dminuoso_>
I mean you could do 5.times.reduce(&:+) if thats what you mean
gnufied__ has joined #ruby
<jokke>
no
<jokke>
ok here:
<jokke>
5.times.reduce(Time.now, :prev_day)
<jokke>
(i understand this works with - 1.day)
<dminuoso_>
And what is that supposed to do?
<jokke>
uh 5.days
<jokke>
it's supposed to give me the time 5 days ago
chouhoulis has joined #ruby
claudiuinberlin has joined #ruby
<dminuoso_>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<jokke>
ok this is still not a good enough example
<jokke>
5.times.reduce(Time.now, :prev_month)
<jokke>
tere
gnufied__ has quit [Client Quit]
<jokke>
there
<dminuoso_>
jokke: Don't give us an example, give us what problem you are trying to solve.
<jokke>
it takes time to explain
<jokke>
well ok i'll try
<dminuoso_>
Then take your time, prepare a good gist.
<jokke>
i need to "snap" time objects to certain boundaries
<jokke>
for example to a "5 days" boundary
danguita has quit [Quit: Ciao! (WeeChat 0.4.2)]
<jokke>
or 2 months
<jokke>
or what ever
<jokke>
because humans have an annoying time system i can't just go and kind of "modulo" my way through
Jameser has quit [Max SendQ exceeded]
<jokke>
this mainly applies for months
<dminuoso_>
jokke: What kind of boundaries were you thinking off?
<dminuoso_>
Annual quarters?
<jokke>
_any_
<jokke>
literally any boundaries
<jokke>
17 seconds
<jokke>
5 days
<jokke>
1 week
<jokke>
what ever
<dminuoso_>
jokke: The problem is that leap seconds and leap years screw up any generalized solution.
<jokke>
yes
ichkv has joined #ruby
<Burgestrand>
What's the use-case?
<jokke>
that's why i need to use #prev_X from active_support
<dminuoso_>
It's easy to cook up a solution if you are willing to ignore leap seconds and leap years.
<jokke>
Burgestrand: aggregation boundaries for time series data
<jokke>
dminuoso_: i'm not willing
<Burgestrand>
jokke So you have e.g. 2 months of data at a resolution of seconds, and you want to group it into X buckets where each bucket is Y long, where Y is e.g. 17 seconds, 2 weeks, 1 month?
<jokke>
but it's basically irrelevant, i have a working solution, but it's not pretty
Jameser has joined #ruby
<jokke>
Burgestrand: not quite
<jokke>
Y isn't always the same
synthroid has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<dminuoso_>
jokke: Show us your solution then.
last_staff has quit [Quit: poof]
<dminuoso_>
jokke: Though actually, no you can do this simply. Use unix time.
<dminuoso_>
Then it's just a mathematical problem.
<dminuoso_>
It includes leap seconds and leap years.
<dminuoso_>
Then it's just timestamp % boundary
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ziarkaen has joined #ruby
<dminuoso_>
Though it won't work in terms of "let a specific _day_ be a boundary"
<dminuoso_>
jokke: Then replace the first using unix timestamps.
<jokke>
yeah
slima has joined #ruby
<jokke>
i'm just not too happy about the reduce blocks
<jokke>
i'm aware btw. that using these doesn't necessarily result in equally spaced aggregates
ziarkaen has quit [Ping timeout: 252 seconds]
<jokke>
so something like snap_months(Time.now, 5) isn't smart
<dminuoso_>
jokke: a = stuff; 5.times { a = a.prev_day }
<jokke>
but snap_months(Time.now, 4) would be ok
<dminuoso_>
jokke: You know..
<jokke>
yeah
<dminuoso_>
No reason to try to be smart with reduce.
<jokke>
but then i need to add the line "a"
<jokke>
:)
<dminuoso_>
So what?
<jokke>
yeaaah yeah
<jokke>
you're right of course
<dminuoso_>
Trying to jam everything into one line adds complexity, possibly performance overhead and reduces readability.
<slima>
Hi, I have a problem with UTF-8 and mysql, can you see my code and hint me? http://pastebin.com/SVbYnKNK it is write file, but content is ??# (this is my first ever script in ruby 1.9.3)
<ruby[bot]>
slima: 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
<dminuoso_>
All for what, the excitement of having written a one liner?
Salve has quit [Read error: Connection reset by peer]
ichkv has quit [Read error: Connection reset by peer]
<dminuoso_>
jokke: A good rule of thumb is to let have every line of code only do one semantic piece of action. If you then name your variables sensibly, it allows anyone or you in a year from now to look at the code and immediately understand whats going on.
GodFather_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jokke>
yes
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
camilasan has quit [Remote host closed the connection]
anjana has quit [Remote host closed the connection]
disconnekted has joined #ruby
camilasan has joined #ruby
ldnunes has joined #ruby
Tristan-Speccy has joined #ruby
Tristan-Speccy is now known as Guest42047
hinbody has joined #ruby
phoo1234567 has joined #ruby
vuoto has joined #ruby
yosafbridge has quit [Remote host closed the connection]
<jokke>
it won't work with leap seconds though, right?
vuoto has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
vuoto has quit [Remote host closed the connection]
phoo1234567 has quit [Read error: Connection reset by peer]
quiqua has joined #ruby
ichkv has joined #ruby
vuoto has joined #ruby
phoo1234567 has joined #ruby
vuoto has quit [Remote host closed the connection]
bihi has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
rippa has joined #ruby
waxxy has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
ichkv has quit [Read error: Connection reset by peer]
ramortegui has joined #ruby
merlin2049er has left #ruby [#ruby]
frozengeek has quit [Quit: frozengeek]
bihi has joined #ruby
frozengeek has joined #ruby
charliesome has joined #ruby
ziarkaen has joined #ruby
jphase has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
<jokke>
ohhh it's way easier
jphase_ has joined #ruby
roflmyeggo has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
ledestin has quit [Ping timeout: 265 seconds]
jgpawletko has joined #ruby
pawnbox has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
rajdesai has quit [Ping timeout: 252 seconds]
jphase_ has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
sptgugja has joined #ruby
<sts>
hello folks. has anyone ever used state_machines? I got issues when I try to transition more than once within a event. It just runs the first transition call, then nothing.
yosafbridge has joined #ruby
porfa has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
brendan- has joined #ruby
anjana has joined #ruby
nowhere_man has joined #ruby
flashpoint9 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Blueby has joined #ruby
GodFather_ has quit [Ping timeout: 244 seconds]
<hanmac>
jokke: hm you can checkout DateTime.new too
<hanmac>
hmm i think i found a bug in Time/DateTime ... Time.now.dst? returns true, but "Time.now.to_datetime.to_time.dst? # => false"
ichkv has joined #ruby
Hyuk has joined #ruby
shayan_ has joined #ruby
tvw has joined #ruby
slima has left #ruby [#ruby]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
malconis_ has joined #ruby
DLSteve has joined #ruby
Kendos-Kenlen has joined #ruby
<Kendos-Kenlen>
Hi :)
matp_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
charliesome has joined #ruby
pawnbox has joined #ruby
saslam has joined #ruby
shinnya has joined #ruby
<Kendos-Kenlen>
I'm trying to write a regexp to match the following line : "tty: tty.o fc.o". I would like to get the "tty" word, plus each words after. I currently have this regexp : "/([\w.]+): *(([\w.]+) ?)*/".
matp__ has joined #ruby
<Kendos-Kenlen>
It gets the first word, "tty", but only return the last word for the second art ("fc.o"), but not the "tty.o" word.
tuxaddicted has quit [Quit: leaving]
matp has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
Hyuk has quit [Ping timeout: 252 seconds]
agent_white has quit [Ping timeout: 256 seconds]
<ljarvis>
Kendos-Kenlen: can't you test for "tty" in your regex?
<ljarvis>
or can that be anything?
<Kendos-Kenlen>
ljarvis: nop, because it can be anything
matp_ has quit [Ping timeout: 260 seconds]
<Kendos-Kenlen>
Here, it's just an example :)
<ljarvis>
Kendos-Kenlen: so you want "tty: tty.o"?
uranellus has quit [Quit: ZNC 1.6.1 - http://znc.in]
<ljarvis>
or..
<ljarvis>
im confused
jgpawletko has quit [Quit: jgpawletko]
<Kendos-Kenlen>
ljarvis: i want to get the 3 words, "tty", "tty.o" and "fc.o"
nowhere_man has quit [Ping timeout: 245 seconds]
<ljarvis>
so you only want to remove : ?
<Kendos-Kenlen>
But my regex only return "tty" and "fc.o"
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ichkv has joined #ruby
ben_____ has joined #ruby
binfalse has joined #ruby
ichkv has quit [Ping timeout: 250 seconds]
vuoto has quit [Quit: Lost terminal]
ramortegui has quit [Quit: Ex-Chat]
teclator has quit [Ping timeout: 260 seconds]
JesseH has quit [Ping timeout: 252 seconds]
be_______ has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
Chair has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
tjbiddle has quit [Quit: tjbiddle]
<KiderSpiel>
Kendos-Kenlen: gnuplot
<KiderSpiel>
best bet
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Read error: No route to host]
prawnzy has joined #ruby
<rippa>
python has networkx, doesn't seem to be anything similar in ruby
pawnbox has joined #ruby
<rippa>
RGL does graphs, but you'll have to convert it yourself
ben_____ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ych has joined #ruby
ben_____ has joined #ruby
<ych>
hey, i want to monitor a script/software memory/cpu usage with Ruby. is there a gem or smth?
<ych>
my command is: myExecscript python script.py
blackmesa has joined #ruby
synthroid has quit [Remote host closed the connection]
claudiuinberlin has quit [Remote host closed the connection]
<Kendos-Kenlen>
KiderSpiel: mmmh, looks nice but a big too big for what i need. I just want to represent the graph in my program, not print it. And I would like to avoid using something else than a gem ^^°
pawnbox_ has joined #ruby
neminis has left #ruby [#ruby]
prawnzy has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
<KiderSpiel>
then do it in a matrix, no need for charting :-\
inoperable has joined #ruby
<ych>
some sort of profiler i guess
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exchgr has joined #ruby
JesseH has joined #ruby
<KiderSpiel>
you got one, Ruby Profiler
pawnbox_ has quit [Ping timeout: 252 seconds]
<KiderSpiel>
Can Ruby be used for twitter?
<KiderSpiel>
Having trouble with this, anyone know some alternatives?
<ych>
KiderSpiel it seems that it works only with ruby scripts
shayan_ has joined #ruby
<apeiros>
KiderSpiel: "it breaks down" is not a useful problem description
<apeiros>
but from the output, it sounds to me like you've reached the last page. given that "chunk: 0"
inoperable has quit [Quit: WeeChat 1.5]
dminuoso_ has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
fulgore_ has quit [*.net *.split]
fulgore_ has joined #ruby
michael-g has quit [Ping timeout: 245 seconds]
shayan_ has quit [Ping timeout: 252 seconds]
huyderman has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
agent_white has joined #ruby
ichkv has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
<Kendos-Kenlen>
KiderSpiel: not really easy to go from the bottom to the top without a graph :P
conta has quit [Ping timeout: 245 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
huyderman has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<apeiros>
KiderSpiel: no follow up?
blackmesa has quit [Quit: WeeChat 1.5]
agent_white has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
<KiderSpiel>
"it breaks down" is not a useful problem description” <— By itself maybe not, but the output’s in the comments and you can see the chunk size going from 200 to 4 to 0, in 18 pages of 200, when there should be more than 25 pages for 5k+ items
teclator has joined #ruby
<apeiros>
"when there should be" - information which you did not provide.
<KiderSpiel>
I am reaching the last page, no doubt about that. The chunk is empty at that point, and then stops as it should.
patarr has joined #ruby
ichkv has quit [Read error: Connection reset by peer]
<KiderSpiel>
What SHOULDN’T be happening is stopping at 3130 instead of 5110, I’d expect someone would point out a clear mistake for this type of situation
<apeiros>
so the question boils down to "why do I get <200 items per chunk?" and that in turn is probably "twitter broken or gem broken?"
<apeiros>
those are plain JSON/REST requests I assume?
<KiderSpiel>
“”when there should be" - information which you did not provide.” <— please scroll up, I think I mention the 5k
<KiderSpiel>
hmm, sort of, you’re close
roamingdog has quit [Remote host closed the connection]
<KiderSpiel>
I am getting 200 at a time because it’s in the options:
<apeiros>
KiderSpiel: how far up should I scroll? because for me your question starts here: "16:32 KiderSpiel: Can Ruby be used for twitter?" and there's no mention of 5k
<apeiros>
and it's pretty unreasonable to reask a question and expect people to search the history for previous instances of the same question.
<apeiros>
KiderSpiel: no, you get less than 200, as per your own log output
<KiderSpiel>
I was hoping there’d be an empty page there and the other items were further ahead
<KiderSpiel>
huh
<apeiros>
but what happens when you perform the same request with a tool like curl/wget? do you get an empty response too?
brendan- has joined #ruby
roamingdog has joined #ruby
<apeiros>
because if not, then something is wrong with the gem. if you get empty responses too, then something's fisyh with twitter's api
<KiderSpiel>
I don’t really know how to do it with wget
yqt has quit [Ping timeout: 245 seconds]
<KiderSpiel>
idk, I figure I’d need authentication
roamingdog has quit [Remote host closed the connection]
<KiderSpiel>
ok, pointed me in the right way
<apeiros>
that should be doable via wget/curl too
ichkv has joined #ruby
<KiderSpiel>
I’m gonna figure out the requests and then compare. thanks for the line of reasoning, it’s gonna help later.
<apeiros>
oh, oauth
dionysus69 has joined #ruby
ichkv has quit [Read error: Connection reset by peer]
paul_____ has joined #ruby
<paul_____>
Hello Everyone !!
<paul_____>
I'm trying to pass arg to my script
<paul_____>
i would like to know which method allow me to get the next argument ?
<paul_____>
i pass "--type book" to my script
ResidentBiscuit has joined #ruby
Chair has quit [Ping timeout: 265 seconds]
<paul_____>
how can i get just the next arg when i encounter the --file pattern
<paul_____>
i tried ARGV.shift but i doesn't seems to be the solution
allomov has quit [Remote host closed the connection]
wldcordeiro has quit [Quit: WeeChat 1.4]
wldcordeiro has joined #ruby
andrewvos has quit [Quit: WeeChat 1.6]
BackEndCoder has joined #ruby
cschneid_ has joined #ruby
SegFaultAX has quit [Ping timeout: 245 seconds]
jwl has quit [Ping timeout: 258 seconds]
alem0lars has quit [Ping timeout: 245 seconds]
dmarr has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 258 seconds]
vuoto has joined #ruby
G has quit [Ping timeout: 250 seconds]
saneax is now known as saneax-_-|AFK
patarr has joined #ruby
howdoi has joined #ruby
shayan_ has joined #ruby
dmarr has joined #ruby
jwl has joined #ruby
SegFaultAX has joined #ruby
vktec has joined #ruby
G_ has joined #ruby
<vktec>
Any recommendations for a transport-agnostic JSON-RPC client library? I've looked on rubygems.org for a while, but not found anything satisfactory.
frozengeek has quit [Remote host closed the connection]
frozengeek has joined #ruby
mtkd has quit [Ping timeout: 250 seconds]
frozengeek has quit [Remote host closed the connection]
AustinMatherne has quit [Remote host closed the connection]
frozengeek has joined #ruby
frozengeek has quit [Remote host closed the connection]
<apeiros>
!fixcon frozengeek
GodFather__ has quit [Quit: Ex-Chat]
Cork has joined #ruby
mtkd has joined #ruby
AustinMatherne has joined #ruby
GodFather has joined #ruby
jsrn_ has quit [Quit: Leaving]
shayan_ has quit [Ping timeout: 250 seconds]
GodFather has quit [Client Quit]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
flashpoint9 has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
JesseH has quit [Ping timeout: 256 seconds]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
airhorns has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
Resident_ has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
peteykun has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
agit0 has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
Madplatypus has joined #ruby
frozengeek__ has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
frozengeek__ has quit [Remote host closed the connection]
ResidentBiscuit has quit [Ping timeout: 256 seconds]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 252 seconds]
frozengeek__ has joined #ruby
Macrobiotic has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
senayar has quit []
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
alem0lars has joined #ruby
gusrub has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
patarr has quit [Quit: patarr]
frozengeek__ has joined #ruby
Devalo has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
Kendos-Kenlen_ has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 260 seconds]
Kendos-Kenlen_ is now known as Kendos-Kenlen
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
jaequery has joined #ruby
KillerFox has quit [Ping timeout: 252 seconds]
RobertBirnie has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
Resident_ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
aryaching has joined #ruby
frozengeek__ has joined #ruby
JesseH has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
KillerFox has joined #ruby
jackjackdripper has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
saslam has joined #ruby
d10n-work has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
<LyndsySimon>
I'm working on a gem, and have a dev dependency specified in the gemspec. At what point does that get installed?
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
SCHAAP137 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
sandelius has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
frozengeek__ has joined #ruby
railssmith has quit [Ping timeout: 252 seconds]
frozengeek__ has quit [Remote host closed the connection]
prawnzy has joined #ruby
frozengeek__ has joined #ruby
frozengeek__ has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
<apeiros>
!fixcon frozengeek__
polishdub has joined #ruby
shayan_ has joined #ruby
gusrub__ has joined #ruby
gusrub has quit [Disconnected by services]
gusrub__ is now known as gusrub
claudiuinberlin has joined #ruby
bovis has joined #ruby
prawnzy has quit [Ping timeout: 256 seconds]
<bovis>
Good afternoon, everyone.
blackwind_123 has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
shayan_ has quit [Ping timeout: 256 seconds]
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Client Quit]
blackwind_123 has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Ping timeout: 245 seconds]
gusrub has joined #ruby
flashpoint9 has joined #ruby
nettoweb has joined #ruby
conta has quit [Quit: conta]
Devalo has quit [Remote host closed the connection]
JesseH has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
Salve has joined #ruby
roamingdog has joined #ruby
bturker has joined #ruby
TPug has joined #ruby
claudiuinberlin has joined #ruby
AlexJakeGreen has quit [Remote host closed the connection]
lxsameer has joined #ruby
borodin has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Ping timeout: 256 seconds]
Kendos-Kenlen_ has joined #ruby
ramfjord has joined #ruby
JesseH has joined #ruby
ScRaMbLe has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 250 seconds]
splud_ has joined #ruby
rodfersou has quit [Ping timeout: 252 seconds]
synthroid has quit []
shayan_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
rodfersou has joined #ruby
mikecmpbll has joined #ruby
ResidentBiscuit has joined #ruby
JesseH has quit [Ping timeout: 252 seconds]
Humdai has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
nitric has joined #ruby
KiderSpiel has quit [Quit: KiderSpiel]
shayan_ has quit [Ping timeout: 245 seconds]
<mikecmpbll>
!ban KuraMIqjte
pragmaticus has quit [Read error: Connection reset by peer]
* mikecmpbll
skulks
ResidentBiscuit has quit [Ping timeout: 245 seconds]
malconis_ has quit [Read error: Connection reset by peer]
agoodno` has quit [Ping timeout: 252 seconds]
<splud_>
Have a problem trying to seek a file opened in append mode (you know, the mode you’d open a file in for reading and writing when you don’t want the existing contents blasted away). Seems this doesn’t work. Found it’s not a quirk I alone am experiencing.
<manveru>
anw, otherwise i can't imagine what more you want
railssmith has joined #ruby
mikecmpbll has joined #ruby
malconis has joined #ruby
<splud_>
thanks.
Kendos-Kenlen_ has quit [Quit: Konversation terminated!]
yqt has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
shayan_ has quit [Quit: shayan_]
Yzguy has joined #ruby
Yzguy has left #ruby [#ruby]
mikecmpbll has quit [Quit: inabit.]
agit0 has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
ledestin has quit [Ping timeout: 256 seconds]
<nettoweb>
Hello folks, I'm trying to access .well-known directory in my nginx config (ruby on rails/puma), but I'm getting 403, here is my confi file: https://gist.github.com/osnysantos/f192575d9dc47648e0563df742a90649 . I know that's not the right place to ask this, but the problem is happening becau puma or rails setting in this file, I'm not sure. In #nginx channel I didnnt have a answer
Cohedrin has joined #ruby
anjana has quit [Remote host closed the connection]
TinkerTyper has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
Salve has quit []
Salve has joined #ruby
kirun has joined #ruby
tjbiddle has joined #ruby
gizless is now known as gizmore
<manveru>
nettoweb: you don't have a root entry in your location?
<manveru>
oh, nvm
tjbiddle has quit [Client Quit]
TinkerTyper has joined #ruby
yardenbar has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
<manveru>
what's up with the try_files though
lenwood has joined #ruby
<manveru>
won't that try to get the file from @app?
sneakers has joined #ruby
<manveru>
and i think it should be 'location /.well-known', you don't want to match a regex
tdy1 has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
<nettoweb>
trying here
ResidentBiscuit has quit [Ping timeout: 256 seconds]
<Phage>
I have a script I want to run, let's say... Every 10 seconds. What's the recommended method to do so? Cronjobs, sleep function inside a while loop, etc.?
howdoi has quit [Quit: Connection closed for inactivity]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
nettoweb1 has joined #ruby
postmodern has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<apeiros>
Phage: as always - no silver bullets. with 10s, I'd probably prefer to keep it running.
roamingdog has quit [Remote host closed the connection]
<Phage>
apeiros: All right, thanks.
elifoster has joined #ruby
roamingdog has joined #ruby
nettoweb has quit [Ping timeout: 245 seconds]
<apeiros>
note that 10s sleep means execution time will skew the timing.
roadrunneratwast has joined #ruby
roamingdog has quit [Remote host closed the connection]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
<apeiros>
(and again - depending on what you want that won't matter at all)
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Phage>
That not a problem, the task itself won't take more than max 2 seconds.
<Phage>
And I can survive a margin of 2 seconds
Cohedrin has joined #ruby
jackjackdripper has joined #ruby
<apeiros>
you can also just sleep the difference to the next 10s interval
<Papierkorb>
Phage: Cronjob, Pro: 1) centrally managed 2) if your script crashes, it'll have "some more tries" Con: 1) crontab files are complicated 2) more complicated to get running than a single command 3) if your task takes longer than 10secs, then you start piling processes if your cronjob daemon doesn't check prior if it's running -- While loop: Pro: 1) Really simple 2) Process is constantly "visible" in process explorer Con: 1) if your scripts crashes,
<Papierkorb>
the service is down 2) The time skewing issue above
djbkd has joined #ruby
vuoto has quit [Remote host closed the connection]
<Phage>
Papierkorb: Thanks :)
<Papierkorb>
Phage: Best of both worlds, imho, is either a) make it a system service (easy with systemd) and use the while loop so it's restarted if it crashes (and properly logged) OR b) a 'smart' cronjob daemon which does not rerun the job if it's still running (Also possible with systemd, you need a .service and a .timer file)
Dimik has joined #ruby
johnmilton has quit [Remote host closed the connection]
<Phage>
Papierkorb: oh, never thought about using systemd
<Phage>
Great idea
Morrolan_ has quit [Quit: Goodbye]
nettoweb1 has quit [Ping timeout: 260 seconds]
<Papierkorb>
Phage: Make sure that it finds the correct ruby installation if you're using RVM or so, and that it can find gems if you're not using bundler
mitchell_verter_ has joined #ruby
hessparker has joined #ruby
<Papierkorb>
Phage: Also, you could maybe use user services instead of system services for that if the service script shall run as your user
Morrolan has joined #ruby
nettoweb has joined #ruby
hessparker has left #ruby [#ruby]
<Papierkorb>
If it's to be run on a server though, I wouldn't use a user service
airhorns has quit [Read error: Connection reset by peer]
roadrunneratwast has quit [Ping timeout: 245 seconds]
<Phage>
Papierkorb: I'll have it running on a vps
airhorns has joined #ruby
xall has quit [Quit: WeeChat 1.5]
<Papierkorb>
Phage: Then write a system service, and use the User= option to drop down to a non-root user
<Phage>
Brilliant. Thanks :)
xall has joined #ruby
<mitchell_verter_>
greetings rubyistas. can anyone advise what to do about this. i am trying to install a vagrant plugin and i get
<mitchell_verter_>
Could not reach host gems.hashicorp.com. Check your network connection and try again.
<Papierkorb>
Phage: cheers
<mitchell_verter_>
i did try to ping the server
<mitchell_verter_>
and no curve
<mitchell_verter_>
no LURVE
Devalo has quit [Remote host closed the connection]
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
Dobler has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
chadwtay_ has quit [Read error: Connection reset by peer]
<baweaver>
you might have better luck.
<Arney>
baweaver: it's so weird, i try to require 'some_file.rb'
<Arney>
and it tries to read some_file
chadwtaylor has joined #ruby
<baweaver>
require_relative
cdg has joined #ruby
<Arney>
i tried that, acts the same
<baweaver>
Yeah, I'd check their channels.
ben______ has joined #ruby
ScRaMbLe has left #ruby ["Farewell"]
jcao219 has joined #ruby
ben_____ has quit [Ping timeout: 256 seconds]
krasimir has joined #ruby
ldnunes has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
<krasimir>
trying to get a ruby app with litespeed and I seemedto have cracked it , but a small gem error. the litespeed uses /usr/local/lsws/fcgi-bin/RackRunner.rb and I get the error `require'2016-10-21 21:14:31.057 [STDERR] no such file to load -- rack
<krasimir>
gem list show that this gem is installed
ohcibi has joined #ruby
ur5us has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
ohcibi has quit [Remote host closed the connection]
merlin2049er has joined #ruby
merlin2049er has left #ruby [#ruby]
<krasimir>
I am not from the ruby world so I feel a bit lost
hahuang61 has joined #ruby
<krasimir>
I tried setting some ENV , but cannot get it right , any pointer would make make evening better:)
bkxd has joined #ruby
<SeepingN>
is /usr/local/lsws/fcgi-bin really right? with that f in there?
frankiee_ has quit [Quit: Lost terminal]
tubuliferous has quit [Ping timeout: 260 seconds]
prawnzy has joined #ruby
tyang has quit [Read error: Connection reset by peer]
merlin2049er has joined #ruby
merlin2049er has left #ruby [#ruby]
fullofcaffeine has joined #ruby
tercenya has quit [Remote host closed the connection]
coolboy has joined #ruby
airhorns has quit [Quit: airhorns]
tercenya has joined #ruby
flashpoint9 has joined #ruby
<krasimir>
yes
tomphp has joined #ruby
<krasimir>
this is just some runner which takes the requests from litespeed and runs the rails app
prawnzy has quit [Ping timeout: 260 seconds]
<krasimir>
the main problem is that this runner doesn't find the installed gems
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
mluts has quit [Quit: leaving]
gusrub has quit [Remote host closed the connection]
ace05 has quit [Remote host closed the connection]
jimcroft has joined #ruby
caw has joined #ruby
c355e3b has joined #ruby
flopsec has joined #ruby
<dar123>
hey guyz, how can i get a column from DB table in my script
DrCode has joined #ruby
<havenwood>
dar123: you'll have to say more
dukedave has joined #ruby
incomprehensibly has joined #ruby
jcp__ has joined #ruby
machty has joined #ruby
Iacobus_ has joined #ruby
jimeh has joined #ruby
amitchellbullard has joined #ruby
mjc_ has joined #ruby
techntoke__ has joined #ruby
<dar123>
i have a user column in a mysql table and i have another command that generates list of online users. I want to check if which table.users are not online
MrBloo_ has joined #ruby
Travis-42 has joined #ruby
johnkpaul has joined #ruby
charles81 has joined #ruby
gmci has joined #ruby
halfdan has joined #ruby
darthvorik has joined #ruby
andersh has joined #ruby
ggherdov has joined #ruby
davidmichaelkarr has joined #ruby
malconis has quit [Read error: Connection reset by peer]
bcavileer has joined #ruby
Lloyd has joined #ruby
lucast has quit [Ping timeout: 260 seconds]
eelster has joined #ruby
lipoqil has joined #ruby
NTrash has joined #ruby
digitalfiz has joined #ruby
aibot has quit [Ping timeout: 244 seconds]
rflot has joined #ruby
Tony-St4rk has joined #ruby
pfg_ has joined #ruby
[diecast] has joined #ruby
ramblinpeck has joined #ruby
vcoinminer has joined #ruby
peteretep has joined #ruby
shelling__ has joined #ruby
aibot has joined #ruby
ec has joined #ruby
danzilio has joined #ruby
daxroc has joined #ruby
Hates_ has joined #ruby
jabreity has joined #ruby
Eleeleth has joined #ruby
<apeiros>
dar123: ok. and your question is?
lucast has joined #ruby
jlyndon_ has joined #ruby
deimos has joined #ruby
tfitts has joined #ruby
jxf has joined #ruby
rann has joined #ruby
spastorino has joined #ruby
arashb has joined #ruby
skmp has joined #ruby
GodFather__ has joined #ruby
mrsolo_ has joined #ruby
Lewix has joined #ruby
zero7 has joined #ruby
JackMc has joined #ruby
alxndr has joined #ruby
rfv has joined #ruby
<eelster>
I don't think I've ever seen this many people jion in a minute or two like this
<eelster>
*join
fullofcaffeine has quit [Remote host closed the connection]
<SeepingN>
netsplit re-joins
fullofcaffeine has joined #ruby
manveru has joined #ruby
<eelster>
Oh
GodFather_ has quit [Ping timeout: 265 seconds]
<apeiros>
looks more like an irccloud related issue
pizzaops has joined #ruby
<eelster>
I'm not sure. In #reddit-sysadmin the join rates aren't crazy like this
AndyWojo has joined #ruby
lancetw has joined #ruby
<eelster>
Is irccloud a web irc service?
lucast has quit [Ping timeout: 250 seconds]
<adam12>
eelster: yes
wldcordeiro has joined #ruby
<dar123>
what is a better to query a db table column
<SeepingN>
huh?
<eelster>
dar123: are you using active record?
<dar123>
i can run a sql query
radic has quit [Ping timeout: 245 seconds]
<dar123>
just writing a script
<apeiros>
dar123: yes, you can query your db using ruby
<eelster>
depending upon what you are doing it might just be easier to backtick the query in.
arashb has quit [Ping timeout: 276 seconds]
Dohplay has joined #ruby
<apeiros>
either by using the mysql driver directly, or use a a higher level framework like sequel or activerecord
<apeiros>
eelster: I'd actually like to see that case :D
<eelster>
apeiros: When I'm lazy as shit and don't want to import a library
<dar123>
not using using active record
radic has joined #ruby
<eelster>
Not a good reason, but a lazy reason
<dar123>
first time writing code in ruby, just did few bash scripts in the past
<apeiros>
eelster: if you want to do *anything* with the result, the effort to parse the output will already far surpass a `gem install whateverdbthingy`
bruce_lee has quit [Read error: Connection reset by peer]
coolboy has quit [Ping timeout: 260 seconds]
<eelster>
apeiros: Certainly. I backtick when I need something very, very, very basic.
<apeiros>
and if you don't want to do anything with the result, I wonder why there's ruby code to invoke it :)
<dar123>
i will eventually trigger an email, if any db user is not found online
<eelster>
So you pretty much are querying SELECT * FROM USERS WHERE ONLINE = 0
dviola has joined #ruby
PaulCapestany has quit [Quit: .]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
solocshaw1 is now known as solocshaw
DLSteve has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
Salve has joined #ruby
Drakevr has joined #ruby
bturker has joined #ruby
zeroDi has joined #ruby
PaulCapestany has joined #ruby
<apeiros>
dar123: you do realize that you still haven't actually asked a question? at least I don't know what you'd like to know from us…
Salve has quit [Ping timeout: 250 seconds]
boombox_ has joined #ruby
phoo1234567 has quit [Quit: Gotta go]
bturker has quit [Ping timeout: 256 seconds]
<apeiros>
oh, seems I missed your very first line actually
<eelster>
apeiros: what was the question? I missed it as well
<apeiros>
01:29 dar123: hey guyz, how can i get a column from DB table in my script
<apeiros>
anyway, same answer as already given:
Alina-malina has quit [Max SendQ exceeded]
<apeiros>
> either by using the mysql driver directly, or use a a higher level framework like sequel or activerecord