apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
RonRichie has joined #ruby
rcvalle has quit [Quit: rcvalle]
harushimo has quit [Quit: This computer has gone to sleep]
whathappens has quit [Quit: Leaving...]
Felipe__ has quit [Quit: Leaving]
RonRichie is now known as WalterKing001
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
l4v2 has joined #ruby
harushimo has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
bruce_lee has quit [Remote host closed the connection]
sneakers has quit [Ping timeout: 260 seconds]
modlin has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
rodfersou|afk has quit [Quit: leaving]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Devalo has joined #ruby
bmurt has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
harushimo has quit [Quit: This computer has gone to sleep]
marr has quit [Ping timeout: 260 seconds]
MrBusiness2 has quit [Ping timeout: 256 seconds]
Devalo has quit [Ping timeout: 252 seconds]
Bellthoven has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
modlin has joined #ruby
Torkable has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harushimo has joined #ruby
dmtd has joined #ruby
hightower3 has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
jcao219 has quit [Disconnected by services]
flashpoint9 has quit [Remote host closed the connection]
nitric has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
brendan- has joined #ruby
nettoweb has joined #ruby
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
flashpoint9 has joined #ruby
Rodya_ has joined #ruby
griffindy has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Max SendQ exceeded]
baweaver has joined #ruby
wpostma has quit [Remote host closed the connection]
jhass has quit [Ping timeout: 245 seconds]
splud has quit [Quit: splud]
zeroDi has quit [Quit: WeeChat 1.5]
machinewar has joined #ruby
<machinewar> is it okay to use public method as a helper method to another public method
charliesome has joined #ruby
railssmith has quit [Ping timeout: 256 seconds]
Salve has quit [Remote host closed the connection]
GodFather_ has quit [Ping timeout: 244 seconds]
brendan- has joined #ruby
Salve has joined #ruby
jhass has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
gusrub has joined #ruby
d^sh has quit [Ping timeout: 250 seconds]
Salve has quit [Ping timeout: 245 seconds]
pontiki has joined #ruby
d^sh has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
y2mq37 has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
bturker has joined #ruby
modlin has quit [Ping timeout: 250 seconds]
modlin has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
gusrub has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
bauruine has joined #ruby
roamingdog has joined #ruby
Bellthoven has quit []
bauruine has quit [Excess Flood]
soud has quit [Ping timeout: 268 seconds]
Blueby has joined #ruby
codenbrew has joined #ruby
codenbrew has left #ruby [#ruby]
tvw has quit [Remote host closed the connection]
meshsmith has joined #ruby
bauruine has joined #ruby
WalterKing001 has quit [Quit: Textual IRC Client: www.textualapp.com]
hightower2 has joined #ruby
gusrub has joined #ruby
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: or you can always use ruby-install: https://github.com/postmodern/ruby-install
<elomatreb> havenwood: 2.0.0 fits the defintion of really old, wouldn't you say?
tyang has joined #ruby
<cosmicera> And I can always make the assumption that I will be able to install ruby (at least locally).
<ytti> depends on definition of old
<havenwood> cosmicera: yeah, the system package manager Ruby is often great, depends
<cosmicera> I've been using ruby install.
<havenwood> elomatreb: true, it's in maintenance mode
<ytti> you will all the time find users who have older ruby in their OS
<ytti> and their OS version does not trivially support newer
<cosmicera> It always just felt like kind of a hack.
hahuang61 has quit [Ping timeout: 245 seconds]
<ytti> so if definition of old is sometihng that is atypical to find
<ytti> then it definitely isn't old
Madplatypus has quit [Quit: Connection closed for inactivity]
<cosmicera> Thanks a lot! You have pretty much answered my first question.
Rodya_ has joined #ruby
<cosmicera> Additionally, why isn't ruby a default scripting language in Linux?
<cosmicera> Why did the default go to python?
<havenwood> cosmicera: it often is
y2mq37 has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
<elomatreb> I wouldn't even call Python a default scripting language
<cosmicera> bash?
<havenwood> as a shell?
<elomatreb> bash maybe, POSIX compliant shells scripts probably
<cosmicera> As in installed by default on Linux distros.
<havenwood> cosmicera: it often is
<cosmicera> It kind of means that I have to make a bash script that assumes that there is no ruby to install ruby for me and set up my environment.
<elomatreb> havenwood: "maintenance mode"? Wikipedia says security maintenance ended in February this year
Bloomer has joined #ruby
<cosmicera> Got it. It's just usually an older version.
<havenwood> elomatreb: oh sorry, i was thinking 2.1 :-O
<havenwood> yeah, 2.0 is past end-of-life
<havenwood> 2.1's time is coming soon even
pokalyis has joined #ruby
sleepee has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cosmicera> havenwood: So, assume that ruby is old on whatever distro I have and then install using the ruby-lang.org installation method.
<cosmicera> That way I can stay with the most up to date version.
Rodya_ has quit [Ping timeout: 250 seconds]
<elomatreb> cosmicera: "the ruby-lang.org installation method" -- Which do you mean? It often is not neccessary to compile from source
<havenwood> cosmicera: Or for example Brightbox maintains nice up-to-date packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<cosmicera> rvm
<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
flashpoint9 has quit [Ping timeout: 245 seconds]
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
aryaching has quit [Ping timeout: 256 seconds]
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.... :(
WalterKing001 has left #ruby ["Textual IRC Client: www.textualapp.com"]
roflmyeggo has quit [Ping timeout: 244 seconds]
hrodrig has quit [Quit: http://quassel-irc.org - Chatee cómodamente donde sea.]
baratheon has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
roflmyeggo has joined #ruby
griffindy has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
roflmyeggo has quit [Ping timeout: 265 seconds]
roflmyeggo has joined #ruby
Joufflu has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
roflmyeggo has quit [Ping timeout: 252 seconds]
roflmyeggo has joined #ruby
JoshS has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
roflmyeggo has joined #ruby
meshsmith has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
machinewar has quit [Remote host closed the connection]
meshsmith has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
roflmyeggo has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
hahuang61 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roflmyeggo has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
roflmyeggo has joined #ruby
Devalo has joined #ruby
roflmyeggo has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
boombox_ has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
astrobunny has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
Jon30 has joined #ruby
roflmyeggo has joined #ruby
<Jon30> is there a gem or built in method ot convert "http://www.google.com/hello/../hi" to "http://www.google.com/hi"
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gusrub has quit [Remote host closed the connection]
hahuang61 has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
raeoks has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
insanedreamer has joined #ruby
<insanedreamer> test
Silthias1 has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias has quit [Ping timeout: 260 seconds]
roflmyeggo has quit [Ping timeout: 244 seconds]
roflmyeggo has joined #ruby
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]
futilegames has quit [Ping timeout: 252 seconds]
futilegames_ is now known as futilegames
roflmyeggo has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
michael-g has quit [Ping timeout: 256 seconds]
astrobunny has quit [Ping timeout: 260 seconds]
roflmyeggo has joined #ruby
prawnzy has joined #ruby
hays has joined #ruby
agent_white has quit [Quit: agent_white]
agent_white has joined #ruby
aaaaa has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
futilegames has left #ruby [#ruby]
blackwind_123 has quit [Ping timeout: 256 seconds]
aidalgol has joined #ruby
michael-g has joined #ruby
nibbo has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
futilegames has joined #ruby
Jon30 has quit [Ping timeout: 260 seconds]
Jon30 has joined #ruby
nibbo has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
blaxter has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
PlasmaStar has quit [Ping timeout: 265 seconds]
rakm has joined #ruby
Jon30 has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
PlasmaStar has joined #ruby
pokalyis has joined #ruby
blaxter has quit [Quit: foo]
dminuoso_ has joined #ruby
teclator has joined #ruby
futilegames has quit [Ping timeout: 245 seconds]
davidt has joined #ruby
futilegames has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
meshsmith has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
davidt_ has quit [Ping timeout: 245 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
Devalo has joined #ruby
anjana has joined #ruby
amclain has quit [Quit: Leaving]
Silthias has joined #ruby
tomphp has joined #ruby
dminuoso_ has quit [Ping timeout: 252 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
Devalo has quit [Ping timeout: 256 seconds]
gingray has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
firstdayonthejob has joined #ruby
AlexJakeGreen has joined #ruby
spectrum has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
conta has joined #ruby
cyphase has joined #ruby
spectrum has quit [Client Quit]
gingray has quit [Ping timeout: 252 seconds]
firstdayonthejob has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
P1ro has joined #ruby
aufi has joined #ruby
dionysus69 has joined #ruby
dtscode has joined #ruby
<dtscode> hey guys! new to ruby here. what is the standard way to handle/throw errors in ruby? should I just do it C style and return status codes?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
wugy has joined #ruby
mtkd has joined #ruby
futilegames has quit [Ping timeout: 256 seconds]
<elomatreb> dtscode: Ruby uses exceptions, thrown using the `raise` keyword
<dtscode> cool
<dtscode> thanks!
dminuoso_ has joined #ruby
zacts has joined #ruby
Blueby has quit [Quit: Blueby]
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
SesMan has joined #ruby
vondruch has joined #ruby
xall has quit [Ping timeout: 245 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hs366 has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
bturker has joined #ruby
TomyWork has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ur5us has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
astrobun_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
astrobunny has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
disconnected has left #ruby ["WeeChat 1.0.1"]
Cohedrin has joined #ruby
flashpoint9 has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
xall has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 245 seconds]
sneakerhax has quit [Ping timeout: 265 seconds]
colegatron has quit [Remote host closed the connection]
ocbtec has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
dminuoso_ has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
allomov has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
Humdai has joined #ruby
allomov has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
andikr has joined #ruby
bkxd has joined #ruby
nowhereman has joined #ruby
dionysus69 has joined #ruby
astrobunny has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
CloCkWeRX has quit [Quit: Leaving.]
gusrub has quit [Remote host closed the connection]
mim1k|work has joined #ruby
gusrub has joined #ruby
bluOxigen has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
gusrub has quit [Ping timeout: 244 seconds]
jeyraof has quit [Quit: This computer has gone to sleep]
astrobunny has quit [Remote host closed the connection]
tuxaddicted has joined #ruby
mikecmpbll has joined #ruby
jeyraof has joined #ruby
jeyraof has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 256 seconds]
bturker has joined #ruby
quazimodo has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
Azure|dc has joined #ruby
gingray has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
jsrn_ has joined #ruby
pragmaticus has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
anjana has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 244 seconds]
prawnzy has quit [Remote host closed the connection]
marr has joined #ruby
flashpoint9 has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
blob has quit [Ping timeout: 268 seconds]
blob has joined #ruby
c0mrad3 has joined #ruby
yqt has joined #ruby
ziarkaen has joined #ruby
Burgestrand has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoi_ has joined #ruby
ocbtec has quit [Quit: leaving]
pandaant has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 244 seconds]
astrobunny has quit [Remote host closed the connection]
rajdesai has joined #ruby
jphase has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
djbkd has quit [Quit: My people need me...]
aep_ is now known as aep
allomov has joined #ruby
astrobunny has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
jsrn_ has joined #ruby
AlexRussia has joined #ruby
tuxaddic1ed has joined #ruby
nettoweb has joined #ruby
LiquidInsect has quit [Ping timeout: 260 seconds]
tuxaddic1ed has quit [Client Quit]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
tuxaddicted has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
astrobunny has joined #ruby
bturker has joined #ruby
teclator has joined #ruby
claw has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
koooge_ has quit [Quit: Leaving...]
Beams has joined #ruby
raeoks has quit [Ping timeout: 256 seconds]
anjana has joined #ruby
anjana has quit [Remote host closed the connection]
anjana has joined #ruby
nowhereman has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
rajdesai_ has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
rajdesai has quit [Ping timeout: 245 seconds]
biberu has joined #ruby
Silthias has joined #ruby
platzhirsch has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
kies^ has quit [Read error: Connection reset by peer]
porfa has joined #ruby
lenwood has joined #ruby
LiquidInsect has joined #ruby
vasilakisfil has joined #ruby
senayar has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
sagax has quit [Ping timeout: 250 seconds]
cyphase has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
quazimodo has joined #ruby
AnoHito has quit [Quit: Leaving]
skweek has quit [Ping timeout: 252 seconds]
saneax-_-|AFK is now known as saneax
insanedreamer has joined #ruby
aidalgol has quit [Remote host closed the connection]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
ruurd has quit [Remote host closed the connection]
y2mq37 has quit [Ping timeout: 250 seconds]
ichkv has joined #ruby
insanedreamer has left #ruby [#ruby]
Hyuk has joined #ruby
tomphp has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tristan-Speccy has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
ichkv has quit [Read error: Connection reset by peer]
VladGh has quit [Ping timeout: 260 seconds]
ddffg has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
meshsmith has joined #ruby
DaniG2k has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
djbkd has quit [Remote host closed the connection]
mim1k|wo1k has joined #ruby
Salve has joined #ruby
KiderSpiel has joined #ruby
ichkv has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
saslam has joined #ruby
mim1k|work has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
<KiderSpiel> Wht’s up guys, can anyone help me with this gist?: https://gist.github.com/anonymous/a68cfa8a7d590aabfb5a586afe836a22
<tobiasvl> KiderSpiel: what's the issue?
<KiderSpiel> Having some trouble hitting some Twitter bug, I think
<KiderSpiel> I get paged results, but the pages don’t add up, I’m expecting 5000+ items and I can only get ~3013
ocbtec has joined #ruby
<KiderSpiel> found some confirmation for this, but I was wondering if someone found a workaround
<tobiasvl> I don't think a general-purpose ruby channel is the best place to ask, but hey, maybe someone here has tried to do the same thing once
ichkv has quit [Read error: Connection reset by peer]
<KiderSpiel> sorry, though it was the right channel
Salve has quit [Ping timeout: 252 seconds]
<KiderSpiel> happy to take it to somewhere more appropriate, if someone points me out
<tobiasvl> I dunno what's more appropriate, maybe the gem has an e-mail list or something?
phredus has quit [Ping timeout: 245 seconds]
<jokke> hi
<jokke> anyone here using arch? i'm having a hard time using ruby-install
<jokke> for building older rubies
bturker has quit [Ping timeout: 256 seconds]
<jokke> 'scuse me ruby-build, not install
<ddffg> use ruby-install
<jokke> yeah
<jokke> ssl
<jokke> as always
<jokke> is there a way i can install it nonetheless (without downgrading openssl of course)
phredus has joined #ruby
minimalism has quit [Quit: minimalism]
go|dfish has quit [Quit: SIGQUIT]
jenrzzz has quit [Ping timeout: 250 seconds]
prawnzy has joined #ruby
ferr has joined #ruby
minimalism has joined #ruby
prawnzy has quit [Ping timeout: 245 seconds]
<KiderSpiel> Anyone? Could use some help with this gist: https://gist.github.com/anonymous/a68cfa8a7d590aabfb5a586afe836a22
rajdesai_ has quit [Remote host closed the connection]
rajdesai has joined #ruby
ichkv has joined #ruby
ichkv has quit [Client Quit]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
astrobunny has quit [Remote host closed the connection]
Salve has joined #ruby
<fbt> jokke, yeah, sslv3 is considered unsafe
<fbt> Has been for a while now
Salve has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
JeanCarloMachado has joined #ruby
rajdesai has quit [Remote host closed the connection]
claudiuinberlin has quit [Remote host closed the connection]
yaewa has quit [Quit: Leaving...]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
moei has joined #ruby
Bloomer has quit [Remote host closed the connection]
nowhereman has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mrgrieves has joined #ruby
Jameser has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
<jokke> sure
<jokke> works with the patch
<jokke> all good
claudiuinberlin has joined #ruby
ElCapitanMarklar has quit []
lizard2010 has joined #ruby
mim1k|wo1k has quit [Ping timeout: 260 seconds]
lizard2010 has quit [Client Quit]
nowhere_man has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
ferr has quit [Quit: WeeChat 1.5]
mim1k|work has joined #ruby
quazimodo has joined #ruby
ferr has joined #ruby
claudiuinberlin has quit [Ping timeout: 260 seconds]
tuxaddicted has joined #ruby
<tuxaddicted> hi
nowhere_man has quit [Ping timeout: 244 seconds]
go|dfish has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frozengeek__ has joined #ruby
frozengeek__ is now known as frozengeek
Silthias1 has joined #ruby
djellemah has quit [Quit: Leaving]
nowhere_man has joined #ruby
saslam has quit [Ping timeout: 244 seconds]
blaxter has quit [Quit: foo]
dminuoso_ has quit [Ping timeout: 244 seconds]
Silthias has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
bkxd has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
arne has joined #ruby
<arne> how do i write to a stdin of a program?
<Papierkorb> arne: To a program you start from your ruby script?
<arne> yes
<arne> but also interested in the different approach
dminuoso_ has joined #ruby
<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]
theRoUS has joined #ruby
Burgestrand has joined #ruby
zzzdemo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tjbiddle has joined #ruby
Guest67391 has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
nuck has joined #ruby
rajdesai has joined #ruby
nuck is now known as Guest32995
rajdesai has quit [Remote host closed the connection]
<KiderSpiel> Hello, can anyone help me with this gist?: https://gist.github.com/anonymous/a68cfa8a7d590aabfb5a586afe836a22
<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"
<jokke> the first is obviously wrong
brendan- has joined #ruby
<jokke> but the rest does what it should
<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?
<slima> yep, but https://gist.github.com not working now(?)
<jokke> ruby kind of inspires that sometimes
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
nowhere_man has joined #ruby
Salve has joined #ruby
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]
solocshaw has joined #ruby
sdothum has joined #ruby
Sammichmaker has quit [Ping timeout: 250 seconds]
face has joined #ruby
modlin has joined #ruby
vuoto has quit [Client Quit]
cdg has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
rodfersou|afk is now known as rodfersou
<jokke> dminuoso_: do you think this implementation is correct? https://p.jreinert.com/1Eo7/
<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"
<Kendos-Kenlen> yep
<ljarvis> >> "tty: tty.o fc.o".scan(/[\w\.]+/)
<ruby[bot]> ljarvis: # => ["tty", "tty.o", "fc.o"] (https://eval.in/664376)
frankiee_ has joined #ruby
Anatzum has joined #ruby
<ljarvis> you can write it loads of ways really, but that works
<ljarvis> if you want a string, i'd just sub ":" for ""
<Kendos-Kenlen> ljarvis: of course !!! I'm stupid thank you ! :D
chouhoulis has joined #ruby
<Kendos-Kenlen> I often try to make more complicated than necessary
<Kendos-Kenlen> Thank you :)
<ljarvis> :)
griffindy has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
ziarkaen has quit [Ping timeout: 265 seconds]
gingray has quit [Ping timeout: 260 seconds]
MrBusiness has joined #ruby
ziarkaen has joined #ruby
bturker has joined #ruby
<KiderSpiel> Can Ruby be used for twitter?
<KiderSpiel> Having trouble with this, anyone know some alternatives?
roflmyeggo has quit [Ping timeout: 250 seconds]
ichkv has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
saslam_ has joined #ruby
<Kendos-Kenlen> Is there any good and easy to use graph libs in ruby ? The idea is to create a graph from an adjacency matrix
postmodern has quit [Quit: Leaving]
teclator has quit [Quit: No Ping reply in 180 seconds.]
saslam has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
Aquazi has joined #ruby
platzhirsch has joined #ruby
chouhoulis has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
saslam_ has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
bdnelson has joined #ruby
teclator has joined #ruby
shayan_ has quit [Ping timeout: 244 seconds]
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