roolo_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
kalusn has joined #ruby
lemur_ has quit [Remote host closed the connection]
Megtasti_ has quit [Ping timeout: 256 seconds]
JimmyNeutron has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
christiandsg has joined #ruby
tier has joined #ruby
bonhoeffer has joined #ruby
bronson has joined #ruby
<bonhoeffer>
anyone ever get we recommend using mac-brew-gcc.sh to install a more recent g++
<bonhoeffer>
on osx
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium>
I use clang.
<Nilium>
Never felt compelled to reinstall gcc.
<jhass>
sadly I still very rarely run into stuff that builds with gcc but not clang
<bonhoeffer>
Nilium: i didn’t know clang was an alternative
<bonhoeffer>
i’m trying to install gsl
willharrison has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
<bonhoeffer>
is there a cli way to upgrade xcode?
diegoviola has quit [Quit: WeeChat 1.1.1]
<havenwood>
bonhoeffer: closest i can think of is: xcode-select --install
rbennacer has joined #ruby
<bonhoeffer>
yeah — xcode-select: error: command line tools are already installed, use "Software Update" to install updates
<bonhoeffer>
not sure what “Software Update” is
<bonhoeffer>
stupid message
<bonhoeffer>
installing xcode from the app store
<jokester>
mac app store?
<havenwood>
bonhoeffer: run: softwareupdate
<bonhoeffer>
oh
<bonhoeffer>
not sure how to deal with: You need a version of g++ which supports -std=c++0x or -std=c++11. If you're on a Mac and using Homebrew, we recommend using mac-brew-gcc.sh to install a more recent g++
<bonhoeffer>
what is: std=c++0x or -std=c++11
<ojacobson>
Compiler flags for selecting what version of the C++ language is in use
Lingo_ has quit [Quit: (null)]
patrick99e99 has quit [Ping timeout: 256 seconds]
krisquigley has joined #ruby
patrick99e99 has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
milesmatthias has joined #ruby
<bonhoeffer>
ojacobson: thanks, are there docs on what these are?
thinkswan has joined #ruby
christiandsg has quit [Remote host closed the connection]
<nobitanobi>
I want to iterate over an array of User objects, so that at the end I have an array with [{user.name, user.color}]. A user can have several colors. Here is what I have done: https://gist.github.com/novito/a74e528faa14b6dc72ed
<nobitanobi>
Am I over complicating with the inner map + flatten?
krisquigley has quit [Ping timeout: 264 seconds]
<Nilium>
bonhoeffer: You are using clang.
<Nilium>
g++ on OS X is mapped to clang.
<bonhoeffer>
nice
<Nilium>
nobitanobi: Yes.
<nobitanobi>
Nilium: any suggestion?
<nobitanobi>
I basically need to iterate over users, but each user can have several colors
milesmatthias has quit [Ping timeout: 252 seconds]
<baash05>
Hey guys/girls
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
<baash05>
I'm trying to figure out something about threading.
<baash05>
t1 = Thread.new { d = 1 + 2; p d }
Limix has quit [Quit: Limix]
<Nilium>
bonhoeffer: unless it needs gcc-only extensions, their build process is probably messed up.
<baash05>
in the rails c.
<nobitanobi>
Nilium, an array of hashes.
<baash05>
that prints out right away.
<Nilium>
nobitanobi: Then kill the flatten.
robustus has quit [Ping timeout: 255 seconds]
<baash05>
pry(main)> t1 = Thread.new { d = 1 + 2; p d } 3
<c-c>
baash05: do you have real life use case that needs threading?
<Nilium>
Or at least put it on the outside as flatten(1) or something
<nobitanobi>
Nilium: if I kill the flatten, I would get an array of arrays.
<Nilium>
baash05: You should probably ask the Rails room.
<baash05>
I am getting tokens for credit cards from 10 different providers.
<baash05>
well it's not really a rails question.
<c-c>
callback
<Nilium>
nobitanobi: No, right now you'll get an array of arrays because flattening a hash turns it into an array of [key, value]
<Nilium>
Your flatten is in the wrong place.
<c-c>
async
<c-c>
rest
<baash05>
Just happen to be using the rails c for some ruby code.
<baash05>
Okay.. so I have to get 10 tokens.. and each one is a net call.
<nobitanobi>
Nilium: I will try again. thanks
duncannz has quit [Ping timeout: 250 seconds]
dorei has quit []
<Nilium>
You just need to flatten the right thing and make sure you're flattening the right depth
martinbmadsen has joined #ruby
<baash05>
how would you do that with a call back?
<nobitanobi>
Is there a cleaner way of doing this though? Like iterating over a data structure knowing that for each of those, you also want to iterate
robustus has joined #ruby
bigmac has quit [Ping timeout: 244 seconds]
<baash05>
That seems like a large amount of overkill..
<work_op>
.each {|x| x.each {|y| .call}} ?
<baash05>
Just to avoid threading.
<c-c>
action record call back?
JDiPierro has quit [Remote host closed the connection]
oo_ has joined #ruby
<c-c>
lol I always typo "action" == active
<nobitanobi>
flat_map + map seems to do the work.
ominari has joined #ruby
<baash05>
c-c are you chatting at me?
hpoydar has joined #ruby
<baash05>
My question with respect to threads is.. given I've just new'ed the thread why does it look like the thread was run?
<c-c>
well it ran
<baash05>
I didn't want it started.
<baash05>
right.. why did it run?
<baash05>
thread.new runs?
oo_ has quit [Remote host closed the connection]
<baash05>
Thread.new
marr has quit [Ping timeout: 255 seconds]
<c-c>
are you saying you have no idea what you're doing? 8)
<baash05>
I guess a better question would be how do I create a thread object without running right away.
christiandsg has joined #ruby
Limix has joined #ruby
bigmac has joined #ruby
<Nilium>
By creating it later.
oo_ has joined #ruby
<baash05>
No.. I a saying I didn't expect an object init to run the code.
martinbmadsen has quit [Ping timeout: 252 seconds]
<c-c>
baash05: maybe you should use fibers
<jhass>
you probably want a subclass that overrides run
joast has quit [Quit: Leaving.]
<jhass>
or am I confusing this with Java completely now? :P
<c-c>
baash05: who knows, join andor fork
<baash05>
I expected that ::start would start..
rbennacer has quit [Remote host closed the connection]
<baash05>
and that new would.. well new
<baash05>
is there a way to new without starting.
hpoydar has quit [Ping timeout: 265 seconds]
<jhass>
subclass
rbennacer has joined #ruby
<jhass>
or a wrapper class
<c-c>
read harder!
exadeci has quit [Quit: Connection closed for inactivity]
rbennacer has quit [Remote host closed the connection]
Feyn has joined #ruby
<c-c>
read join or run (alternatively, read stop and run)
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
well, that method creates the underlying pthread on the .new call already
<jhass>
which might or might not be wanted
<baash05>
Yeah.. I'm taking a closer look at the docs, but it feels like new does a bit more than create the object. I suppose it's a "make it easy" thing.. but it feels wrong.
<jhass>
now that is something that really feels wrong
atomi has joined #ruby
_honning_ has quit [Ping timeout: 252 seconds]
tmoor has quit [Read error: Connection timed out]
djbkd has joined #ruby
tmoor has joined #ruby
<c-c>
baash05: anyway, you dont want threads
ghr has joined #ruby
christiandsg has quit [Remote host closed the connection]
<baash05>
so.. aside from subclassing there is no way to create the threads and start them later? I can sub class them fine, and I can just call the new when I really need them. Both with make my code bigger, but if that's my options. so be it.
<baash05>
I just want to do it the "right" way.. the DRY way.
<c-c>
baash05: did you not read the documentation
<jhass>
well, I gave you that handy wrapper there as another alternative
<c-c>
there seems to be ways, for example stop it instantly
<jhass>
and the third option is to use Thread.stop and Thread#run
<c-c>
waiting for 3rd party to return tokens shouldn't happen in a thread loop
JDiPierro has joined #ruby
<baash05>
I read it.. I googled around.. the question was framed not because it was running one way.. it was framed because I wanted to run later.. and nothing in the doc indicates how.
io_syl has joined #ruby
<baash05>
How should 3rd parties return tokens.. assuming no server on the system running the code is present?
<c-c>
well there is a way, and its documented in multiple examples, and I've pointed you to those examples multiple times, and pointed out that you are looking for the wrong solution
<c-c>
so good luck!
<bonhoeffer>
i’ve upgraded xcode and gcc
<baash05>
cool c-c.. I see how to do it with threads now.
<baash05>
but how best to get it done.. I'm hear to learn and share..
<c-c>
bonhoeffer: are you on linux or osx?
<baash05>
active record call backs are fine.. but these aren't for active record elements.. so not really handy.
djbkd has quit [Quit: Leaving...]
lordkryss has quit [Quit: Connection closed for inactivity]
<bonhoeffer>
osx
<baash05>
I also don't have (in this instance) the ability to serve up end points.
Takle has quit [Remote host closed the connection]
<helpa>
Learn Ruby by reading this book - http://manning.com/black3 - The Well-Grounded Rubyist by David A. Black
<Radar>
That is also a good book to learn Ruby from if you can afford it.
iteratorP has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
<DeathCode>
but but
<DeathCode>
i dled netbeans already
<DeathCode>
and set it up
bradleyprice has quit [Remote host closed the connection]
<Radar>
Does Netbeans even have a Ruby tutorial?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
bradleyprice has joined #ruby
<DeathCode>
no
<DeathCode>
but some other dude is doing it on komodo
<DeathCode>
and i'm typing and learning the same shit on netbeans
<DeathCode>
is that ok to do?
<Radar>
sure why not?
bradleyprice has quit [Read error: Connection reset by peer]
<mistergibson>
NetBeans version 7.1.2 only is capable of using a Ruby coding module - that's what I use
bradleyprice has joined #ruby
<mistergibson>
I love NetBeans
<DeathCode>
whats that mean?
<DeathCode>
i have netbeans 8.0.2
Morkel has joined #ruby
<DeathCode>
mistergibson:does that mean, all features of ruby are not supported by netbeans?
auraka has quit [Quit: WeeChat 0.4.2]
<mistergibson>
DeathCode: I have found that using the plugin works best. I does a great job of parsing Ruby
BTRE has joined #ruby
hpoydar has joined #ruby
<DeathCode>
i added all the plugins to ruby there is
<DeathCode>
as per tutorial
mjuszczak has quit []
hpoydar has quit [Ping timeout: 246 seconds]
juanpablo__ has joined #ruby
milesmatthias has joined #ruby
djbkd_ has joined #ruby
<DeathCode>
mistergibson:yes i just checked and i have all the ruby plugins on netbeans. what i wanted to ask was, does netbeans have a limitation? cause i want the full ruby experience
lolmaus has joined #ruby
n_blownapart has quit [Remote host closed the connection]
swgillespie has joined #ruby
jordanm has quit [Read error: Connection reset by peer]
queequeg1 has quit [Ping timeout: 248 seconds]
milesmat_ has joined #ruby
<mistergibson>
DeathCode: not to my knowledge
<DeathCode>
awesome
<DeathCode>
thank u
yfeldblum has quit [Ping timeout: 265 seconds]
jordanm has joined #ruby
zacts has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 272 seconds]
zacts` has joined #ruby
riceandbeans has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
malcolmva has quit [Ping timeout: 264 seconds]
__main__ has quit [Ping timeout: 264 seconds]
ByronJohnson has quit [Ping timeout: 264 seconds]
tmoor has quit [Quit: Leaving]
juanpablo__ has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Ping timeout: 244 seconds]
milesmatthias has joined #ruby
riotjones has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
queequeg1 has joined #ruby
patrick99e99 has joined #ruby
yfeldblu_ has joined #ruby
__main__ has joined #ruby
milesmat_ has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
nii236 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 252 seconds]
thumpba has quit []
djbkd has joined #ruby
riceandbeans has joined #ruby
riceandbeans has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malcolmva has joined #ruby
djbkd_ has quit [Ping timeout: 265 seconds]
zacts` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ByronJohnson has joined #ruby
ghostpl_ has joined #ruby
eitoball has joined #ruby
tagrudev has joined #ruby
michael_mbp has quit [Excess Flood]
DEA7TH has joined #ruby
aganov has joined #ruby
michael_mbp has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
ghostpl_ has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
sumark has quit [Remote host closed the connection]
sandelius has joined #ruby
sumark has joined #ruby
yfeldblum has joined #ruby
gkra has joined #ruby
gkra has quit [Remote host closed the connection]
<certainty>
moin
yfeldblu_ has quit [Ping timeout: 255 seconds]
DeathCode has left #ruby [#ruby]
krisquigley has joined #ruby
A205B064 has quit [Ping timeout: 255 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
relix has joined #ruby
ghr has joined #ruby
lessless has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
krz has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
lemur_ has quit [Remote host closed the connection]
<certainty>
morning sir
techsethi has joined #ruby
riotjones has joined #ruby
pwnz0r has joined #ruby
bal has joined #ruby
_djbkd has quit [Remote host closed the connection]
colorisco has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
Alphazzz has quit [Quit: Connection closed for inactivity]
dfinninger has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
milesmatthias has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Dakuan has joined #ruby
crazydiamond has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
lxsameer has joined #ruby
lxsameer has joined #ruby
jamto11 has quit [Remote host closed the connection]
roolo has joined #ruby
milesmatthias has quit [Ping timeout: 246 seconds]
bim has joined #ruby
Aswebb_ has joined #ruby
lessless has joined #ruby
<flughafen>
how was your weekend certainty \
jerematic has joined #ruby
gkra has joined #ruby
bim has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Ping timeout: 272 seconds]
wldcordeiro has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
wldcordeiro has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
gkra has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
nfk has quit [Quit: yawn]
<sevenseacat>
hallo
Joufflu has quit [Read error: Connection reset by peer]
Dakuan has quit [Remote host closed the connection]
<flughafen>
hallo sevenseacat wir war deine wochenende
techsethi has quit [Quit: techsethi]
<sevenseacat>
gut >_>
<flughafen>
was hast du gemacht
tagrudev has quit [Remote host closed the connection]
<sevenseacat>
schlaf <_<
<wasamasa>
lol
tagrudev has joined #ruby
gkra has joined #ruby
<flughafen>
geschlafen * ;)
<sevenseacat>
dammit
<flughafen>
sevenseacat: why are they letting you write a book? you can't even speak german!
<sevenseacat>
good thing the book is in english!
<flughafen>
there is no english, only zuul
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
* flughafen
should have named my dog zuul
mistermocha has joined #ruby
ghr has joined #ruby
Aswebb_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
krz has quit [Ping timeout: 256 seconds]
voidwalkr has quit [Ping timeout: 248 seconds]
voidwalkr has joined #ruby
DavidDudson has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
hpoydar has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
bigkevmcd has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
wottam has joined #ruby
ayaz has joined #ruby
kwd has joined #ruby
atomi has quit [Ping timeout: 264 seconds]
selu has joined #ruby
gkra has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 272 seconds]
juanpablo__ has joined #ruby
astrobunny has joined #ruby
eitoball has quit [Quit: WeeChat 1.1.1]
selu has quit [Read error: Connection reset by peer]
gkra has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
tgunr has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has joined #ruby
andikr has joined #ruby
MasterPiece has joined #ruby
blackmesa has joined #ruby
basiclaser has joined #ruby
ghostpl_ has joined #ruby
ToApolytoXaos has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
Pharaoh2 has joined #ruby
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
terlar has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
purrist has joined #ruby
craigp has joined #ruby
Deele has joined #ruby
ghostpl_ has quit [Ping timeout: 272 seconds]
bayed has joined #ruby
msgodf has joined #ruby
duncannz has joined #ruby
pwnz0r has quit [Ping timeout: 265 seconds]
edwinvdgraaf has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
purrist has quit [Remote host closed the connection]
jerematic has joined #ruby
sandelius has joined #ruby
ki0 has joined #ruby
<flughafen>
sevenseacat: how much more do you have to go?
<sevenseacat>
just final review
jerematic has quit [Ping timeout: 246 seconds]
hakunin_ is now known as hakunin
krisquigley has joined #ruby
antgel_ has joined #ruby
govg has quit [Quit: leaving]
CorpusCallosum has quit [Ping timeout: 272 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noname has quit [Ping timeout: 252 seconds]
christiandsg has joined #ruby
Hounddog has joined #ruby
reinaldob has joined #ruby
rdark has joined #ruby
atomi has joined #ruby
christiandsg has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
patrick99e99 has joined #ruby
craigp has quit []
ghr has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
kaspernj has joined #ruby
krz has joined #ruby
Aswebb_ has quit []
Takle has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
_5kg has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 245 seconds]
cfengineers has quit [Quit: Connection closed for inactivity]
ghr has quit [Ping timeout: 245 seconds]
garethrees has joined #ruby
kalusn has joined #ruby
chthon has joined #ruby
sevvie has joined #ruby
mengu has joined #ruby
milesmatthias has joined #ruby
exadeci has joined #ruby
gluten_hell has joined #ruby
einarj has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 245 seconds]
prasselpikachu has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
Takle has joined #ruby
bronson has joined #ruby
joonty has joined #ruby
krz has quit [Ping timeout: 250 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
f3lp has quit [Ping timeout: 248 seconds]
marr has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
livathinos has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
krisquigley has joined #ruby
sandelius has joined #ruby
CorpusCa_ has joined #ruby
Nahra has joined #ruby
<certainty>
ist github still under attack?
CorpusCallosum has quit [Ping timeout: 252 seconds]
<sevenseacat>
i think so
Mia has joined #ruby
Mia has joined #ruby
leafybasil has quit [Remote host closed the connection]
<certainty>
alright
<apeiros>
I'm still impressed how little you notice about such a large scale attack
livathin_ has joined #ruby
<apeiros>
excellent ops team
<certainty>
yeah they handle it well
CorpusCa_ has quit [Client Quit]
quimrstorres has joined #ruby
CorpusCallosum has joined #ruby
Dakuan has joined #ruby
charliesome has joined #ruby
havenwood has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 248 seconds]
merqlove has joined #ruby
senayar has joined #ruby
CustosL1m3n has quit [Ping timeout: 245 seconds]
<jokke>
hi
<jokke>
how can i include rake tasks from another gem?
<apeiros>
jokke: just load the files defining the tasks
<jokke>
ok. so it needs to be in lib
ghostpl_ has joined #ruby
ponga has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<flughafen>
certainty: it seemed ok just now
krz has joined #ruby
ponga has quit [Client Quit]
martinbmadsen has quit [Ping timeout: 264 seconds]
lkba_ has quit [Ping timeout: 245 seconds]
cassianoleal has joined #ruby
anarang has joined #ruby
lolmaus has joined #ruby
ponga has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sevenseacat has left #ruby [#ruby]
panga has joined #ruby
mistermocha has joined #ruby
krz has quit [Ping timeout: 244 seconds]
ghostpl_ has quit [Ping timeout: 272 seconds]
ponga has quit [Client Quit]
Zai00 has joined #ruby
nii236 has joined #ruby
astrobunny has quit [Remote host closed the connection]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
senayar has quit [Remote host closed the connection]
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
leafybasil has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
hpoydar has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
DeathCode has joined #ruby
patrick99e99 has joined #ruby
<DeathCode>
anybody here?
<apeiros>
no
* hanmac
currently are only answering machines online
sevenseacat has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
hpoydar has quit [Ping timeout: 244 seconds]
juanpablo__ has joined #ruby
razieliyo has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
vtunka has joined #ruby
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
<gregf_>
docker exec -it I need to send the whole XML along with namespace to a rest service using PUT/POST operations of REST Client.
<gregf_>
err, sorry :/ wrong chat
juanpablo__ has quit [Ping timeout: 272 seconds]
<DeathCode>
how important is ruby in today's world?
astrobunny has joined #ruby
<certainty>
DeathCode: that's a very vague question. Maybe you can narrow your scope
<gregf_>
DeathCode: it depends. most things i use nowadays need ruby in some form or the other ;). yet to write some death code tho' :/
Akagi201_ has quit [Remote host closed the connection]
razieliyo has quit [Quit: Saliendo]
razieliyo has joined #ruby
keen__________30 has joined #ruby
Akagi201 has joined #ruby
<certainty>
there are big parts of the world where ruby and any programming language for that matter is totally unimportant
<apeiros>
DeathCode: it's one of the top10 programming languages. so important enough I'd say.
keen__________29 has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 264 seconds]
<sevenseacat>
its about 71% important.
* sevenseacat
nods
<certainty>
:)
<apeiros>
[citation needed]
<gregf_>
heh
<certainty>
it's certainly important enough that many many nerds do nothing but eat drink and breath ruby all day
CustosL1m3n has joined #ruby
<apeiros>
if you eat ruby, do you become stoned?
<certainty>
haha
<certainty>
yeah you can tell because that person usally has little read diamonds in his eyes
<certainty>
erm, red
shadeslayer has quit [Ping timeout: 250 seconds]
Flcn__ has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
shadeslayer has joined #ruby
Akagi201_ has joined #ruby
vtunka has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
krz has joined #ruby
workmad3 has joined #ruby
<certainty>
and there comes workmad
yh has joined #ruby
Akagi201 has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 252 seconds]
techsethi has joined #ruby
quimrsto_ has joined #ruby
polysics has joined #ruby
bim has joined #ruby
quimrstorres has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
<apeiros>
ok, there's 3 hard problems in IT: naming, cache invalidation, off-by-one errors and using the right one of those goddamn less-/greater-than comparison operators…
<ddv>
yeah naming is hard
nii236 has joined #ruby
<jhass>
isn't 3 a special case of 2?
<apeiros>
no?
jerematic has joined #ruby
eregon_ is now known as eregon
pwattste has joined #ruby
<jhass>
well, usually it's < vs <= and > vs >=
<jhass>
not < vs > or >= vs <= or so
<apeiros>
I tend to jumble < and >
<jhass>
mh
<apeiros>
and it's always super silly
<jhass>
crystal has something neat, you can do a < x < b
<apeiros>
reminds me of elementary school where I happened to accidentally transcribe +/- wrong.
<apeiros>
jhass: syntax sugar which is transformed to something else?
<jhass>
which helps me visualize the right one a lot
<jhass>
yeah
bim has quit [Ping timeout: 272 seconds]
<jhass>
a < x && x < b I think
<apeiros>
I actually wondered whether I'd want to have that in ruby. I'm still not sure.
aswen has joined #ruby
<apeiros>
it breaks the expectation of (a < x) already being an expression and feeding into (a < x) < b
<apeiros>
but it is a common source of confusion (and probably should be added to the FAQ)
<hanmac>
jhass: x.between?(a, b)
<jhass>
hanmac: I know
<jhass>
that requires more mental work though IMO
<jhass>
you can continue to use it in crystal though ;)
jerematic has quit [Ping timeout: 248 seconds]
<jhass>
I think a < x < b is a common enough maths construct to be okay with breaking regular syntax rules
<DeathCode>
guys i have a question
<ddv>
don't ask to ask, DeathCode
<certainty>
+1 for a < x < b
<DeathCode>
i'm learning ruby on netbeans. is it the same thing as ruby on netbeans ?
<DeathCode>
ddv ^
<DeathCode>
no sorry
ghostpl_ has joined #ruby
<DeathCode>
UGH
<DeathCode>
ok
<ddv>
DeathCode: no idea
<DeathCode>
i'm learning ruby on netbeans. is it the same thing as ruby on rails?
<jhass>
mmmh, beans
<DeathCode>
answer my question please
<canton7>
netbeans is an IDE
<DeathCode>
ye ye
<jhass>
what's ruby on netbeans?
<canton7>
rails is a web framework
<jhass>
got a link?
<canton7>
they're completely different things
<ddv>
DeathCode: ruby on rails is a framework, ruby is programming language and neatbeans is a ide
<canton7>
you can use netbeans to write code which uses rails
<canton7>
or you can use notepad to write code which uses rails
<canton7>
or you can use netbeans to write code which does not use rails
<DeathCode>
ok
<canton7>
etc etc
voidwalkr has quit []
<ddv>
I will shoot you if you use notepad
<DeathCode>
how do i know which is ruby and which is ruby on rails?
<ddv>
DeathCode: by using your brain
<DeathCode>
whoa dude
<canton7>
DeathCode, are you using the 'rails' web framework?
<jhass>
ugh, eleven.scot is still available :/
<canton7>
if yes, you're using rails. if not, you're not
jheg has joined #ruby
<DeathCode>
you need to chill out. my "ex" dumped me today
* jhass
must resist
<certainty>
that's a common source of confusion actually
<ddv>
DeathCode: whoa? don't ask stupid questions
<DeathCode>
i feel bad already
iterator_ has quit [Remote host closed the connection]
<sevenseacat>
o.O
<DeathCode>
well damn..
<ddv>
DeathCode: sorry for the gf tho
<DeathCode>
everybody hates me today
<DeathCode>
apparently
iteratorP has joined #ruby
<DeathCode>
ye well she didnt leave me for my brain she left me for my looks so fuck u
<canton7>
<DeathCode> answer my question please <-- we just get defensive when people get uppity :P
<DeathCode>
oh sorry about that
<DeathCode>
ye im not uppity i'm super calm
<canton7>
<DeathCode> so fuck u <-- and we really don't like it when people get abusive ;)
<DeathCode>
oh ok sorry about that
<DeathCode>
got a little bit weird there
<certainty>
DeathCode: ok let's start all over. ruby is a programming language. ruby on rails is a framework/library for that programming language that is used to develop web applications
<DeathCode>
ok hold on can i just show u something and u tell me whats up
<DeathCode>
does it include the rails framework as well ?
<DeathCode>
it says ruby and rails
<canton7>
'rails' is a web framework for ruby
<sevenseacat>
added 2011? computer says no
<canton7>
it's providing auto-completely, etc, for both the ruby stdlib and for rails
<sevenseacat>
"It also provides support for Rails 2.3.x. " stop the presses
<canton7>
*auto-completion
<workmad3>
sevenseacat: last updated about a year ago though :P
<apeiros>
"ruby and rails" is shorthand for "ruby and ruby on rails"
<workmad3>
but yeah, I heard that netbeans had dropped their ruby and rails IDE plugin ages ago...
<DeathCode>
ok....
<DeathCode>
so many opinions
<DeathCode>
i'm a ruby noob
<sevenseacat>
then learn ruby, before learning rails.
<DeathCode>
i want to learn the advanced stuff of ruby on rails one day. so is netbeans a good idea to proceed with?
<sevenseacat>
no.
<apeiros>
there are not many opinions. there are mostly a couple of facts.
<DeathCode>
hold on
<DeathCode>
netbeans is not good?
<workmad3>
DeathCode: you want to go from ruby newcomer to learning advanced ruby and ruby on rails in a single day?
<DeathCode>
apeiros:i got u. please dont nitpick on like one word
<DeathCode>
workmad3:no i didnt say in a single day. i said, one day. as in, i'm sharing my dreams with u
<DeathCode>
like one day i wanna be the ruby on rails master
<DeathCode>
gotta code em all. you know the works
<apeiros>
DeathCode: have you used netbeans for other things before?
quimrsto_ has quit [Read error: Connection reset by peer]
cacocola has joined #ruby
<DeathCode>
no apeiros but i looked at the tutorials and i could work ruby
quimrstorres has joined #ruby
<apeiros>
DeathCode: then I would definitively not start with ruby + rails + netbeans
<DeathCode>
i just want to use netbeans to learn advanced stuff of ruby on rails in the future
Takle has joined #ruby
<sevenseacat>
get a text editor.
<sevenseacat>
not an IDE.
<DeathCode>
i've already worked with ruby in netbeans tho. i'm working and practicing on it as we speak
<DeathCode>
:(
<sevenseacat>
that is my opinion, but its one based on nearly 5 years of working with ruby.
<apeiros>
DeathCode: 3 strong reasons against: a) you'll get little support as only very very few people use that combination, b) as from your link, it seems netbeans' ruby/rails support is ages behind, c) you have to *also* learn an IDE
<DeathCode>
i have worked with IDEs before. i learned a lot of java from eclipse
<sevenseacat>
time flies when you're having fun. five years.
<workmad3>
DeathCode: ah, good... that wasn't clear :P
<apeiros>
most ruby programmers will tell you to use a good text editor, not an IDE
<DeathCode>
good text editor
<DeathCode>
what about komodo editor?
<workmad3>
if they do recommend an IDE, it'll probably be rubymine
<DeathCode>
that good?
_ixti_ has quit [Ping timeout: 250 seconds]
<apeiros>
you're on windows?
<DeathCode>
yes
<ddv>
yeah intellij is the best polygot ruby ide
<sevenseacat>
i've used komodo in the past for non-ruby stuff. it was okay.
<ddv>
but it feels way out of place on my mac
<DeathCode>
when i say ruby i want ruby on rails support too
<DeathCode>
and can it be something free too ?
<sevenseacat>
ddv: its also way out of place on most linuxes
<sevenseacat>
not asking for much are you
<apeiros>
DeathCode: going from "ruby" to "ruby on rails" is a single "gem install rails" command, once you have ruby installed.
<sevenseacat>
if you're good with eclipse, isnt radrails based on eclipse?
<ddv>
sevenseacat: yeah Java Swing UI is ugly as hell still
<sevenseacat>
indeed
chopperkun has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
<DeathCode>
guys guys
<sevenseacat>
is radrails still a thing?
<workmad3>
sevenseacat: wasn't radrails subsumed into aptana studio years ago?
<DeathCode>
what is good for learning ruby on rails?
<sevenseacat>
maybe. i dunno. like i said, i dont use IDEs :P
krz has quit [Ping timeout: 265 seconds]
<DeathCode>
i want to do web dev one day
<workmad3>
sevenseacat: same :P
<sevenseacat>
DeathCode: get a text editor with syntax highlighting. thats all you need.
<apeiros>
DeathCode: sorry, not using windows, so don't know which editor is good there.
<DeathCode>
for both ruby and rails sevenseacat
<DeathCode>
?
<sevenseacat>
yep.
<DeathCode>
awesome. thank u so much
ta has joined #ruby
<DeathCode>
its gonna be a bitch to switch again from netbeans
<DeathCode>
sevenseacat:do u have any in particular that u recommend?
<sevenseacat>
i use sublime text 3, which is free to evaluate (read: use forever as long as you dont like the odd nagging message)
<jhass>
DeathCode: go with sublime text 3
<sevenseacat>
(though i did register mine because i am a good netizen)
<DeathCode>
awesome
<DeathCode>
i cant afford to pay right now :(
<DeathCode>
which is why i'm learning code
<canton7>
"which is free to evaluate"
<canton7>
" (read: use forever as long as you dont like the odd nagging message)"
<DeathCode>
ye ye i wasnt talking about that
<DeathCode>
i was talking about the register part
<workmad3>
mmm... like the good old days of mIRC :)
<colorisco>
who is deathcode
<DeathCode>
if its not too much of a nag
<DeathCode>
then i'd use it
<DeathCode>
colorisco:what u mean?
<DeathCode>
i'm new here :)
<workmad3>
"You have used mIRC for 2136 days without purchase. Would you like to purchase?"
<sevenseacat>
lol
<certainty>
nope thanks
<sevenseacat>
pretty much
<colorisco>
show your cool apps that you wrote
<colorisco>
seems you a skilled developer
<ddv>
did you guys discover that easter egg in mIRC? when you click on the guys portrait in the about screen on his nose..
<DeathCode>
colorisco:me? i'm alright
<DeathCode>
i'm good at java tho
<DeathCode>
i made bus app for my city
<ddv>
DeathCode: for Java you need an IDE :P
<DeathCode>
ye i use eclipse
<DeathCode>
i already told u!
<DeathCode>
but these people told me to get sublime text 3
<DeathCode>
so i'm gonna do that now
<ddv>
DeathCode: and a large display in vertical setting because of the many lines of code
<DeathCode>
ok? lol
<DeathCode>
what are you trying to say
<sevenseacat>
we're picking on java.
<sevenseacat>
nvm.
<DeathCode>
meh i love java
<DeathCode>
what is this? like a turf war or something
<ytti>
i am gobsmacked fastest ruby is written in rpython
chopperkun has quit [Quit: Laters]
<ytti>
too bad rubinious didn't choose same path as rpython
kstuart has joined #ruby
<ytti>
rubinius
<DeathCode>
damn u guys hate java too much
rdark has quit [Quit: leaving]
<sevenseacat>
i dont hate anything. except mushrooms.
<sevenseacat>
fucking mushrooms.
withnale_ has joined #ruby
<sevenseacat>
stnaky pieces of fungus
rdark has joined #ruby
<sevenseacat>
stanky even
<ddv>
lol
blackmesa has joined #ruby
<DeathCode>
mushrooms are cute
hpoydar has quit [Ping timeout: 244 seconds]
roolo_ has joined #ruby
<DeathCode>
i dont know what yall be sayin
rdark has quit [Client Quit]
<sevenseacat>
who was the first person to sniff the unholy stench of a mushroom and go 'by golly im going to eat this
<sevenseacat>
crazy mofo
joonty has quit [Quit: joonty]
hectortrope has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
polysics_ has joined #ruby
joonty has joined #ruby
<DeathCode>
how old are you sevenseacat
<sevenseacat>
why?
<DeathCode>
then dont tell me
polysics has quit [Ping timeout: 250 seconds]
<sevenseacat>
k
<DeathCode>
i'm 20
stef204 has joined #ruby
hectortrope has quit [Client Quit]
milesmatthias has joined #ruby
<ddv>
this is not a dating channel, DeathCode
ArchRogem has joined #ruby
<kstuart>
Shroom munching is for the Gods, not mere mortals!
<DeathCode>
who was looking for dates
<DeathCode>
is sevenseacat even a chick?
<sevenseacat>
yes.
<DeathCode>
oh i didnt know
erlingre has joined #ruby
<DeathCode>
people here are super defensive
rdark has joined #ruby
<DeathCode>
and nitpicky
<canton7>
you're just quite... abrasive
<sevenseacat>
not really, but what does a person's age have to do with anything?
milesmat_ has joined #ruby
<sevenseacat>
programmers are nitpicky. get used to it.
<DeathCode>
sevenseacat:cause you sounded every young talking about the mushrooms and shit
<sevenseacat>
whether i'm 12 or 50, what does that have to do with my programming ability?
<ddv>
developers are like guitar players pretty arrogant :D
<DeathCode>
canton7:i didnt know i came off that way
<DeathCode>
sevenseacat:it doesnt. but it was just an observation
* certainty
is both a programmer and a guitarist
<certainty>
i try not to be arrogant
<sevenseacat>
try being the operative word >_>
<DeathCode>
ironically certainty was the nicest one here
hectortrope has joined #ruby
<jokke>
is it possible to do something like array concatenation in yaml? i have a property that is an array with some default values. I'd try to avoid copy pasting them all over the place.
oo_ has quit [Remote host closed the connection]
<canton7>
DeathCode, mushrooms are a perfrectly normal part of diet. the 'magic' part is one which you introduced all on your own :)
sandelius has quit [Ping timeout: 245 seconds]
milesmatthias has quit [Ping timeout: 255 seconds]
_ixti_ has joined #ruby
sevvie has joined #ruby
oo_ has joined #ruby
postmodern has quit [Quit: Leaving]
<DeathCode>
canton7:magic mushrooms?
<jhass>
jokke: I think &foo only works for hashes/objects (what does yaml call them even?), do it in your code
<jokke>
yeah..
<canton7>
at least I assume that's what you were referring to. Not sure how talking about mushrooms makes you sound young otherwise :P
sandelius has joined #ruby
pigoz has left #ruby ["WeeChat 1.0.1"]
<hectortrope>
Hi guysz
milesmat_ has quit [Ping timeout: 256 seconds]
iterator_ has joined #ruby
max96at|off is now known as max96at
patrick99e99 has quit [Ping timeout: 255 seconds]
krz has joined #ruby
patrick99e99 has joined #ruby
cacocola has quit [Remote host closed the connection]
avril14th has joined #ruby
bal has quit [Quit: bal]
macoecho has joined #ruby
vtunka has joined #ruby
mac_ has joined #ruby
iteratorP has quit [Ping timeout: 272 seconds]
bal has joined #ruby
oo_ has quit [Remote host closed the connection]
timonv has joined #ruby
iterator_ has quit [Ping timeout: 250 seconds]
vtunka has quit [Client Quit]
govg has joined #ruby
<DeathCode>
i dont understand how to set up sublime text 3 with ruby on rails
<DeathCode>
lol
davedev24_ has quit []
<sevenseacat>
theres nothing to set up
<sevenseacat>
st3 is a text editor
lordkryss has joined #ruby
oo_ has joined #ruby
mengu has joined #ruby
<certainty>
for some it's also $home
nii236 has quit [Ping timeout: 244 seconds]
<jhass>
DeathCode: you want something like http://railsinstaller.org/en on windows, if you don't already have it
<DeathCode>
ok what?
<DeathCode>
is there a site that shows me how to do this step by step
ta has quit [Remote host closed the connection]
<DeathCode>
i got st3 and got package installer
<certainty>
sevenseacat: do you have cases like these covered in the new edition?
Guest67179 has joined #ruby
<DeathCode>
can i just learn it on netbeans or eclipse?
<sevenseacat>
we have a ruby and rails installation guide for windows, yes.
<sevenseacat>
DeathCode: if you've already got netbeans configured, just use it.
Spami has joined #ruby
oo_ has quit [Remote host closed the connection]
<DeathCode>
i got it configured
roshanavand has joined #ruby
<sevenseacat>
of course, if it doesnt work, no-one will have a clue what its doing
roshanavand has left #ruby [#ruby]
ndrei has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
<DeathCode>
but i'm afraid the ruby on rails package on it is older version
<sevenseacat>
likely so.
<sevenseacat>
what version is it?
polysics_ has quit [Remote host closed the connection]
<Guest67179>
Q - for production servers should we use any ruby manager (rvm, rbenv, etc) or its better to use/update system ruby or compile it from source?
<certainty>
sevenseacat: :) i ditched C in the long run. I had to pick one problem that i was willing to solve xD
<workmad3>
certainty: I think I started with QBASIC using 'edit' on DOS...
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<avril14th>
hello
<workmad3>
certainty: that was... 'fun'
mistermocha has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<certainty>
workmad3: that seems like a real starter drug. I never did basic. I feel like i've missed something
<certainty>
edit is that cat equivalent?
gfawcettpq has joined #ruby
<workmad3>
certainty: it's like notepad, only a command-line version based in DOS
<workmad3>
certainty: so imagine something much much worse than notepad... with a blue background
<certainty>
workmad3: ah ok so not so much like cat
<certainty>
workmad3: beautiful
<certainty>
i like these vintage UXs
reinaldob has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<workmad3>
certainty: of course, I'm remembering right back to my childhood here, so my recollection is spotty :) and by 'started', I am of course meaning 'Tried to copy BASIC code listings out of a book that was meant to produce a text-based adventure game"
<wasamasa>
meh
yh has quit [Ping timeout: 248 seconds]
<wasamasa>
apparently eval-in_ does not reply to private messages ._.
<workmad3>
certainty: thinking back, I have a suspicion the book actually contained a listing for BASIC on an atari, and I was trying to get it to work on DOS :)
<certainty>
workmad3: haha. Sounds familiar.
<workmad3>
(it certainly never seemed to work quite correctly)
<certainty>
my first program was a C monster telling you how long it would take to brute force a password of a given length.
<certainty>
i was a mean hacker back then xD
mistermocha has quit [Ping timeout: 256 seconds]
<certainty>
i wonder why it was so big. I know i wanted it to look pretty so i used ncurses
<workmad3>
certainty: heh :) I think my first C program was a lottery number generator (so just 6 random numbers printed out on screen)
<canton7>
did it brute-force it, then tell you how long it took? :P
<workmad3>
certainty: my 8-year-old self wasn't very imaginative... or very good at coding :P
<certainty>
canton7: haha, no. It really was most concerned about the UI and a bit about the math, which i had to wrap my head around at that time. It was a tough task for me
<certainty>
workmad3: same here
<certainty>
of course my next project was an addressbook
Azure has quit [Ping timeout: 264 seconds]
<certainty>
workmad3: not being very good at coding, seems to have lasted for me.
<certainty>
At least im a bit more imaginative these days
unshadow has quit [Quit: leaving]
yh has joined #ruby
jenrzzz has joined #ruby
<hanmac>
workmad3: last Tuesday Antarctica has +17°C currently outside at my place are +5°C ... i think something is very wrong there ;p http://www.cnbc.com/id/102541217
<workmad3>
certainty: I think from about age 10 to age 16, I mostly tinkered with VB and things like prolog/delphi/whatever else came free on CDs with PC Pro :)
<certainty>
workmad3: you did prolog too? I've never seen that on cds. But i enjoyed it.
bonhoeffer has joined #ruby
stef204 has joined #ruby
<workmad3>
hanmac: hehe :) they seem to have lost all they '-' signs from throughout the article :P only one there is in the title
<certainty>
i wanted to build an AI with an natural language interface that would control my computer on my behalt
<certainty>
probably a bit ambitious :)
<certainty>
behalf, even
<workmad3>
certainty: yeah, I played a little when I was younger, and also one of my masters courses @ uni was on logic stuff and I built a simple propositional logic theorem prover in that
juanpablo__ has joined #ruby
<certainty>
workmad3: oh i actually did that for university too. Not that it was a task. It just helped with my exercises
iamjarvo has joined #ruby
<certainty>
workmad3: i have not lost interest in logic programming. I've always kept an eye on prolog, mercury and oz
<certainty>
i rarely have applications though :/
juanpablo__ has quit [Ping timeout: 265 seconds]
vtunka has quit [Quit: Leaving]
<hanmac>
very funny would be an AI which does believe thats a real person ;P
<workmad3>
certainty: you'd probably like the formal methods group in my uni then :)
<certainty>
hanmac: that's the ultimate goal xD
<wasamasa>
is it possible to use a refinement on an entire ruby file without encapsulating it in a class?
<hanmac>
shevy i already saw that too ... its very interesting, specially if they are pulling water from the oazeans to water that area extras => making more oasis
<shevy>
\o/
<wasamasa>
at least not in pry
fantazo has joined #ruby
<shevy>
are refinements final finally?
<wasamasa>
weird, why does it work non-interactively
<workmad3>
certainty: at least currently, we (as in humans) seem to associate the idea of 'general purpose intelligence' with a self-reflective capability that would most likely have something recognisable as a self-identity and something we'd recognise as consciounsess... and so by that view would 'believe it is a person' (or at least believe it is an intelligent being)
<wasamasa>
if I put it into a file and execute that with `ruby` or `pry`, everything behaves as expected
<wasamasa>
but defining the refinement interactively and using it only works as oneliner
<shevy>
certainty well it kind of sucks that some people are on #ruby-lang, and some on #ruby but not both
<shevy>
like hanmac
ndrei has joined #ruby
<shevy>
he is only here :)
<shevy>
or manveru... he is only on #ruby-lang
GinoMan has quit [Ping timeout: 256 seconds]
<workmad3>
shevy: all I'm currently thinking is "mwahahaha, just need to wait for shevy to be offline, then steal his nick!"
<certainty>
jhass: let's see how your evil plan goes :)
<jhass>
yeah, no reaction yet :(
<shevy>
workmad3 I see you need more work assignment
<jhass>
I figured it'll at least give some popcorn :P
_ixti_ has quit [Ping timeout: 264 seconds]
<workmad3>
shevy: I'm waiting for tests to run :P
jenrzzz has quit [Ping timeout: 256 seconds]
<certainty>
indeeed
hectortrope has quit [Quit: WeeChat 0.4.2]
<certainty>
workmad3: i always wondered if that said something, when i would look into irc because i'm waiting for my tests
<certainty>
i haven't figured it out yet :p
hectortrope has joined #ruby
<workmad3>
certainty: probably says that my test runs could do with being faster
<shevy>
jhass haha... ah well I guess people don't want to lose the way they are used to use things; like take those who are only on #ruby-lang but not here
<certainty>
workmad3: that'd be too obvious
<shevy>
they will be ANGRY at you for trying to obsolete them
<workmad3>
certainty: or that I need more coffee
<sevenseacat>
yeah this should be the official one, im not an op in the other one <_<
<jhass>
shevy: note that PR is not closing #ruby-lang
<jhass>
... yet
<shevy>
lol
<workmad3>
sevenseacat: I'm not an op in either :(
<workmad3>
shevy: just realised something though... "< shevy> certainty well it kind of sucks that some people are on #ruby-lang, and some on #ruby but not both" <-- you're one of the people not in both :P
<shevy>
workmad3 yeah!
<shevy>
I switched sides
<workmad3>
shevy: by extension, you suck :P
<tobiasvl>
I'm in both! this is the nicest place
<shevy>
I see that you are in both workmad3
<shevy>
can you handle the traffic of #ruby-lang?
<certainty>
is that the same as the gender thing?
<shevy>
hmm and probably you are in #rubyonrails too
<workmad3>
shevy: yup... and #chef and #pry :P
<certainty>
being #ruby or #ruby-lang or undecided?
<shevy>
gender thing?
<shevy>
well ok see
<shevy>
#python #perl #lua
<shevy>
so... #ruby or #ruby-lang! what should it be
lanemeyer has quit [Ping timeout: 250 seconds]
<certainty>
#haskell
<shevy>
haha
Deele has joined #ruby
<shevy>
1471 folks there, this is scary :\
<workmad3>
hmm... #brainfuck or #bf-lang I wonder which one freenode would allow? :)
<shevy>
when there are so many people then haskell must be good for something
<jhass>
we would break the 1000 mark too if the pals only in #ruby-lang would join us ;)
<shevy>
yeah
<certainty>
shevy: it's one of the most crowded channels here
fantazo has quit [Quit: Verlassend]
<shevy>
certainty that scares me even more... I'm gonna idle there now
Flcn__ has joined #ruby
<certainty>
shevy: smart move. chances are that you learn interesting things
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
that wikipedia page about OOP is cool:
<shevy>
"Significant object-oriented languages include Python, C++, Objective-C, Smalltalk, Delphi, Java, C#, Perl, Ruby and PHP."
banister has joined #ruby
<shevy>
you read it there first - php is a significant language. a significant OO language that is
martinbmadsen has joined #ruby
<workmad3>
shevy: just because it's on wikipedia doesn't make it true :P
sigurding has quit [Quit: sigurding]
<certainty>
so is delphi
<apeiros>
workmad3: well, the whole "you could have them" is a lot easier since last week (re ops)
<certainty>
where i always thought delphi was the IDE for object pascal
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
<workmad3>
apeiros: heh
<shevy>
delphi is that environment for putting together GUI-elements or?
ta has quit [Remote host closed the connection]
hpoydar has joined #ruby
<workmad3>
certainty: I thought that was visual-delphi, where delphi was an OO variant of pascal
<certainty>
workmad3: i'm not sure. Let's find out
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
<workmad3>
certainty: ok, go and find out ;)
sigurding has joined #ruby
<certainty>
'Embarcadero Delphi is an integrated development environment (IDE) for console, desktop graphical, web, and mobile applications.'
<shevy>
workmad3 is very different when he is waiting for tests to finish
<certainty>
wikipedia
ldnunes has joined #ruby
<shevy>
Embarcadero? mexican delphi?
<certainty>
"Delphi's compilers use their own Object Pascal dialect of Pascal and generate native code for several platforms ..."
<certainty>
seems at least that article agrees with me. But who can trust wikipedia
<jhass>
I trust only the wikipedia articles I wrote myself!
<certainty>
:)
martinbmadsen has quit [Ping timeout: 255 seconds]
sevvie has quit [Ping timeout: 245 seconds]
Flcn__ has quit [Read error: Connection reset by peer]
Feyn has quit [Ping timeout: 250 seconds]
Flcn__ has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
_ixti_ has joined #ruby
Zai00 has joined #ruby
iamjarvo has joined #ruby
kalusn has quit [Remote host closed the connection]
sevvie has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
serivich has joined #ruby
<apeiros>
jhass: s/wrote/falsified/ ? :)
<flughafen>
according to this, jhass is the rule of the mole people
Flcn__ has quit [Ping timeout: 245 seconds]
<flughafen>
ruler*\
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aswen has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
_ixti_ has quit [Ping timeout: 265 seconds]
mostlybadfly has joined #ruby
milesmatthias has joined #ruby
ValicekB has quit [Ping timeout: 256 seconds]
<shevy>
What is the best way to query whether some optional addon is available? Right now I use something like: if Object.const_defined? :MainNamespaceHere but that feels sort of ... hackish
Flcn__ has joined #ruby
<shevy>
flughafen the mole people from the Simpsons?
<avril14th>
I try to store an object to disk using marshaling
sigurding has quit [Quit: sigurding]
<avril14th>
and I have a UndefinedConversion error
<avril14th>
will encoding break the marshaling loading process?
krisquigley has joined #ruby
<jhass>
yes
<jhass>
you need binary encoding
<avril14th>
ok, so I need to specify that in the file, right?
<jhass>
no, while reading and writing the file
kyrylo_ has joined #ruby
<Trioxin>
If I already know PHP inside and out is there any reason I would want to learn rails & ruby? Is it really that much faster development to be worth it if I already have my PHP?
teddyp1cker has quit []
Feyn has quit [Quit: Leaving]
<dorei>
Trioxin: i'm pretty sure u'll find your programming nirvana with ruby :)
sankaber has joined #ruby
hpoydar has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<jhass>
Trioxin: wrong approach IMO. Learning a programming language is always worth it, even if you ain't gonna use it. It always introduces you to some new concepts and approaches and benefit your programming skills in general, regardless of language
tkuchiki has quit [Read error: Connection reset by peer]
<avril14th>
jhass: I think I found it. file.binmode is the treat?
<Trioxin>
whats the syntax based on?
<jhass>
avril14th: you can just specify the encoding as binary really, just like you would set utf-8 or anything else
<jhass>
Trioxin: it has some roots in perl and other stuff, but is quote unique and best approached as something on its own
<avril14th>
hmm, found that
<avril14th>
thanks a lot jhass
<Trioxin>
are there good mobile compilers for droid and ios?
<Trioxin>
well, any one good framework for that
erlingre has quit [Remote host closed the connection]
<jhass>
there's stuff like ruboto and rubymotion, though I'm not sure if Ruby is the best tool for that area
Jiyuhen has joined #ruby
<jhass>
after all programming languages are tools
<jhass>
you can abuse a tool for pretty much any task, yet you perform better if you use the right tool for the right task
amystephen has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Trioxin>
heh i know. I abuse PHP sometimes. javascript is finally getting good mobile implements
Dakuan has quit [Remote host closed the connection]
merqlove has quit [Quit: Connection closed for inactivity]
<Trioxin>
hopefully a full html5 implementation will happen (That works good)
<ddv>
PHP is horrible, Trioxin
<certainty>
everytime i have to use PHP i feel abused :(
jerius has joined #ruby
senayar has joined #ruby
<certainty>
have to take long hot showers afterwards
<Trioxin>
PHP is not horrible. I've made some wonderful things with it.
govg has joined #ruby
thinkswan has joined #ruby
VBlizzard has quit [Read error: Connection reset by peer]
ValicekB has quit [Read error: No route to host]
VBlizzard has joined #ruby
<jhass>
what do you expect from mentioning PHP in #ruby though :P
<canton7>
Trioxin, have you ever programmed in anything better than PHP?
<jhass>
sure, the problem is that it can happen in the first place ;)
antgel_ has joined #ruby
dblessing has joined #ruby
jayeshsolanki has joined #ruby
Aswebb_ has joined #ruby
chridal has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
<Trioxin>
im sure ruby isn't perfect
jerius has joined #ruby
<chridal>
Hello! What is that alternate synta in ruby for defining a class? I can't find it on google.
sigurding has joined #ruby
<chridal>
It is someting like a = class { }
<Trioxin>
anyway not really here to talk about php. I watched a video where a PHP coder moved to rails, weighing the pros and cons so figured I might want to know it
Rapier- has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<chridal>
It's something like defining the class as a proc, and then having the constant A pointing to it
<chridal>
anyone know?
jerematic has joined #ruby
Takle has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
chridal: well, I give you tip: a class is an instance of the class Class
yh has joined #ruby
Alina-malina has joined #ruby
Dakuan has quit [Ping timeout: 264 seconds]
<certainty>
now we go meta
<chridal>
B = Class.new {} ?
<chridal>
jhass: ^
<jhass>
!try
<helpa>
Why don't you try it and find out for yourself?
<chridal>
I'm in pry and trying it. Guess I was being to impatient.
<chridal>
Thanks for not just telling me how to solve it.
<jhass>
certainty: ok. Class is a specialization of Module. classes are modules that you can make instances of
<shevy>
certainty you were talking about the snake
<certainty>
jhass: i think i didn't know it was that way. thanks
<chridal>
I can't understand why they would return true on line 4 there? It doesn't make any sense? Can someone please enlighten me, if you can.
cacocola has joined #ruby
zenith_ has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
B1n4r10 has quit [Client Quit]
<shevy>
code like this is not simple to read
<shevy>
for example, what does send(action_method, obj) return?
<jhass>
chridal: if there's a method defined for the action, authorization is determined by the return value of calling that method, if there's none defined it defaults to true
<chridal>
shevy: I would just believe that they should return false there...
<chridal>
jhass: Yes. I just don't understand why it would return true, and not false.
<jhass>
it's the default
<jhass>
"if there's no special rule, default to granting it"
<chridal>
Oh!
mcpierce has quit [Ping timeout: 264 seconds]
livingstn has joined #ruby
<chridal>
Have you worked with discourse, or are you just inferring it?
livingstn has quit [Max SendQ exceeded]
livingstn has joined #ruby
<ddv>
chridal: you can infer it
ghostpl_ has quit [Remote host closed the connection]
<jhass>
yeah, inferred it
<chridal>
Alright.
agrinb has joined #ruby
<jhass>
although next time link it on github
jerius has quit [Quit: /quit]
<jhass>
you can click on the line numbers
chinmay_dd has joined #ruby
prasselpikachu has joined #ruby
Azure has joined #ruby
cacocola has quit [Ping timeout: 265 seconds]
<ddv>
and jhass probably looked it up on github
<chridal>
Will do!
<jhass>
to get an URL highlighting that line
<jhass>
ddv: I didn't :P
<ddv>
jhass: ok :-)
marr has quit [Ping timeout: 250 seconds]
<chridal>
Been learning so much just by looking through this source. It's an invaluable resource.
lordkryss has quit [Quit: Connection closed for inactivity]
<chridal>
To be able to look through the source of other projects, I mean.
<ddv>
yes reading is harder than writing it
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
hehe, try to read bundlers code
<jhass>
(no, don't)
<chridal>
is it that bad? :-)
<jhass>
it could be better IMO
<ddv>
this is why a lot programmers want to start new instead of using an existing codebase
<ddv>
+of
<jhass>
especially for being such an essential project
jamto11 has joined #ruby
<ddv>
provide a pull request. :)
<ddv>
jhass
triple_b has joined #ruby
<jhass>
I would need a month to understand how the test suite works first...
<ddv>
probably :)
<jhass>
like it's not even green on my system but on travis
oo_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
oo_ has joined #ruby
bronson has joined #ruby
Jiyuhen has quit [Ping timeout: 264 seconds]
Dakuan has joined #ruby
chridal has quit [Remote host closed the connection]
zzing has joined #ruby
jerius has joined #ruby
albedoa has joined #ruby
polysics has quit []
Aswebb__ has joined #ruby
Aswebb_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
spyderman4g63 has quit [Read error: No route to host]
bronson has quit [Ping timeout: 255 seconds]
chridal has joined #ruby
govg has quit [Ping timeout: 265 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
Takle has quit [Remote host closed the connection]
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
tus has joined #ruby
_maes_ has joined #ruby
macoecho has joined #ruby
mac_ has joined #ruby
nerium has joined #ruby
<nerium>
Anyone knows a tool for rotating proxies?
macoecho has quit [Client Quit]
mac_ has quit [Client Quit]
juanpablo__ has joined #ruby
einarj has quit []
macoecho has joined #ruby
mac_ has joined #ruby
macoecho has quit [Client Quit]
<ddv>
nerium: haproxy?
<ddv>
or maybe I don't understand what you mean with rotating proxies...
<ddv>
+you
<ddv>
nice now I can't access github
<nerium>
ddv: I was looking for something to handle proxies for me when makeing requests to other servers
<ddv>
and back it is again
SouL has joined #ruby
mac_ has quit [Remote host closed the connection]
<nerium>
If a proxiy is slow or dead it should be flagged or removed
macoecho has joined #ruby
mac_ has joined #ruby
<ddv>
nerium: how are you making the request?
<ddv>
nerium: with a browser?
<ddv>
nerium: haproxy it is then
<nerium>
ddv: Using Ruby, RestClient for example
<ddv>
nerium: yeah ok
pretodor has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<chridal>
Aha. So the reason they are doing it, is beause they are actually expecting the user to submit the request via Ajax.
djellemah_ has joined #ruby
<chridal>
I thought they were just using Ajax because of speeding up the tests, or something like that...
<jhass>
yeah
ghostpl_ has joined #ruby
Dude007 has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
<yh>
Tangentially Ruby related - working with the Ruby SDK for AWS's DynamoDB at the moment. Any DynamoDB gurus around?
<yh>
In the interests of disclosure, I asked in ##aws (it's a pretty tumbleweedy channel) - I won't elaborate on the full question here without invite as it's a slight tangent from Ruby itself :)
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
<gregf_>
i've been warned about using that db :/
mac_ has joined #ruby
macoecho has joined #ruby
<yh>
gregf_: I've enjoyed success with it. Why advised against it? It's pretty awesome in many ways
kyrylo_ is now known as kyrylo
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yh>
At the same time, my concern in this case is that I don't want to throw an inappropriate problem/workload at it :)
<gregf_>
yh: dunno tbh. we've kinda found others better. like so, replacing sqs with rabbitmq too
mitchellhenke has joined #ruby
pandaant has joined #ruby
<yh>
gregf_: ah, why RabbitMQ over SQS?
<yh>
I've used both. A previous project was RabbitMQ as it was so high-traffic, that SQS would have cost a bomb.
<ericwood>
erlanggggggg
<yh>
ericwood: details. :)
<ericwood>
I wholeheartedly support anything that takes advantage of the erlang VM
<yh>
I wholeheartedly support anything that negates that ancient need for a VM.
<yh>
But erlang is pretty cool nonetheless
<ericwood>
wait what's so bad about a language that uses a VM?
pandaant has quit [Client Quit]
<ericwood>
Ruby and most scripting languages run on one
<yh>
You mean the JRuby implementation specifically, right?
rbennacer has joined #ruby
<ericwood>
no, Ruby itself
<ericwood>
MRI
<ericwood>
YARV, specifically
palms has quit [Ping timeout: 252 seconds]
<yh>
Perhaps I'm jaded by the JVM in particular
<ericwood>
a VM is just an abstraction layer, not to be confused with what you're used to with the JVM stc
<ddv>
yh: the jvm is actually pretty awesome, clojure, jruby all use it
jconnolly has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
<ericwood>
yeah, the JVM is very kickass
palms has joined #ruby
oo_ has quit [Remote host closed the connection]
<yh>
I understand the JVM to be rather ugly on the lower-level
<ericwood>
but when I say "erlang VM" I'm referring to something along the likes of YARV, not the JVM
macoecho has joined #ruby
mac_ has joined #ruby
<ericwood>
no, JVM bytecode is fairly elegant, actually
<yh>
But more importantly to me, it's slow as hell
nerium has quit [Quit: nerium]
<ericwood>
the JVM performs exceptionally well, I don't know what you're talking about :o
browndawg has joined #ruby
<yh>
More specifically: start-up time
browndawg has quit [Max SendQ exceeded]
<ericwood>
neglegible for real-world usage
<ericwood>
and there's tools like drip to fix that
<ddv>
yh: it only becomes an issue if you're the next facebook or twitter
Aswebb__ has quit [Remote host closed the connection]
browndawg has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
<yh>
Colleagues of mine told me vaguely that there was some sort of problem (for them) in using drip
fryguy9 has joined #ruby
Zamyatin has joined #ruby
<yh>
And what I'm talking about isn't negligible or niche - surely everyone likes a nice tight feedback loop
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
joonty has quit [Quit: joonty]
kirun has joined #ruby
joonty has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balazs has joined #ruby
<ericwood>
I did a ton of Rails work with JRuby, restart time was hardly an issue
<ericwood>
and when it comes to actually using stuff on the JVM outside of dev you're rarely restarting it
<ericwood>
honestly, even when doing Rails dev with it I was rarely restarting...only when doing routes work really
<ericwood>
but anyways I don't think startup time is a good reason to avoid the JVM
GnuYawk has joined #ruby
<ericwood>
I forget the name but there's another tool along the lines of drip that works really well
<yh>
ericwood: it's on the tip of my tongue also
<yh>
ericwood: were you not periodically running `bundle exec rspec` as a Rails dev (and thus wasting precious seconds waiting for JVM, when MRI would have already completed)?
<ericwood>
I typically was running tests on our CI machines, so it wasn't a huge painpoint but it definitely wasn't the greatest for that
<ericwood>
but the benefits of using it overshadowed any of those small gripes
<yh>
If you're not running specs locally, I can see why the gripes would be small for you
<yh>
Also: nailgun - was that what you were thinking of?
<ericwood>
ah yeah that's it!
davidhq has joined #ruby
<yh>
ericwood: were you not TDDing?
<ericwood>
not strictly, no
<yh>
Meh, I'm not strict either; but close enough to want to run specs locally periodically
<ericwood>
I'd run tests locally when writing them, but for catching regressions it was all on the CI stuff
<yh>
oh, totally
<ericwood>
our test suite took a good 30-45 min to run, soooooo
<ericwood>
gigantic crufy rails app
<ericwood>
not one of those sleek brand new ones :\
aclearman037 has joined #ruby
<ericwood>
...I will not miss it
<yh>
which brand new ones do you mean, framework-wise?
<ericwood>
I just mean newer growth, like only being a few years old
<shevy>
your beard?
<yh>
ah, I see.
<ericwood>
not a gigantic monolith written poorly and upgraded over the course of 7 years up from rails 1
<yh>
I'm a Ruby dev at the moment - I write Rack/Sinatra apps. But I understand that to be a minority given Rails
oo_ has joined #ruby
quimrstorres has joined #ruby
<ddv>
do you have a baby face, shevy?
<ericwood>
a lot of early rails practices kinda encouraged bad stuffs
<yh>
Not sure if I would hate going to a Rails place or not.
<ericwood>
modern rails is great
<yh>
That's promising
<workmad3>
yh: would kinda depend what you spent a lot of time on in your sinatra apps
<ericwood>
working on a two year old rails app right now, if you pay attention to code quality and structure things right it's wonderful
<shevy>
ddv yeah, I don't have a fancy beard :(
<workmad3>
yh: and what sort of activities you would dislike doing :)
<yh>
ericwood: if I was looking at a couple of Rails jobs, are there any particular signs that'd highlight if it's a modern one or not, per se?
<ericwood>
tl;dr use engines and try to break things out into services
<ericwood>
yh: age of the company, competency of their devs :P
banister has quit [Ping timeout: 265 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<ddv>
microservices is all the rage these days
<workmad3>
yh: whether they ask for rails 2 experience
<yh>
Ha
<ericwood>
I found that having code reviews and using a pull-request model of development keeps things sane
<yh>
I loves me microservices.
<ericwood>
old job you just throw stuff out willy-nilly
<ericwood>
rails engines are great, though not exactly micro-services
oo_ has quit [Remote host closed the connection]
<yh>
yeah, I was about to inquire into that, never heard of a rails engine
<ericwood>
but yeah rails these days is great
<yh>
google results look satisfying
oo_ has joined #ruby
lavros has joined #ruby
<yh>
ericwood: job market for modern Rails looking pretty good at the moment, would ya say?
<ericwood>
100%
<yh>
You bring me much promise
<ericwood>
if you're in the NYC area we're hiring
mistermocha has joined #ruby
<yh>
London, myself
mitchellhenke has joined #ruby
juanpablo__ has joined #ruby
<ericwood>
that's a bit of a commute
<yh>
ha
<workmad3>
ericwood: you don't allow remote work? :P
<yh>
My understanding of the Rails situation was: always monolithy, don't go near. I'm glad it sounds better now
arup_r has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
bruno- has joined #ruby
chris[] has left #ruby ["Leaving"]
<ericwood>
workmad3: nope, although I know that's grounds for being hated on these days :\
Morkel has quit [Quit: Morkel]
<yh>
In fact it's worried me, because I love Ruby - and if it was true that all the Ruby jobs were done in a framework that I hate, it'd force me to pick another language that I don't like so much :/
<yh>
I'm very picky
<ericwood>
we're still a fairly small team and don't really have the infrastructure in place to do it right
<ericwood>
plus we like to all be together, there's seriously something to be said for that
<workmad3>
yh: tbh, 'standard' rails approaches to problems do still tend towards large, monolithic apps... but the community is a lot better now at recognising that and breaking out of the standard mold when it makes sense
<yh>
ericwood: shame you're so far. We clearly have that ideal in common
<workmad3>
yh: so if you're in a team with decent devs, you can take advantage of a lot of niceness from rails and break out of the mold in the places you need to
<yh>
It surprises me how little I see some dev teams communicating.
<jokke>
hi, i need some help with rack-oauth2-server
<jokke>
it seems like Server.options does not set defaults
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jokke>
Server.options[:collection_prefix] for example is nil in client and so it tries to get a collection starting with a period
phutchins has joined #ruby
dfinninger has joined #ruby
aclearman037 has quit [Ping timeout: 252 seconds]
<workmad3>
yh: as ericwood can attest though, there are still quite a lot of legacy apps out there that fell foul of older practices without spotting the danger signs ;)
mistermocha has quit [Ping timeout: 256 seconds]
JDiPierro has joined #ruby
<yh>
workmad3: I don't think I could turn up for work if it was in an environment like that
<ddv>
actually you want to be in a team where everyone is better than you
<yh>
ddv: totally.
psychopath_mind has joined #ruby
<yh>
I'm just not a good enough developer to work in a bad codebase.
<workmad3>
yh: it's actually quite surprising how quickly an observant coder committed to self-improvement becomes a good coder when you dump them into a bad codebase ;)
psy_ has joined #ruby
<ddv>
yep people rather write new stuff instead of dealing with stuff written by others years ago
GinoMan has joined #ruby
<yh>
workmad3: I've been in a bad environment before, and came to a good one. That made me realise how large the spectrum between good & bad is - and that there's always better
<workmad3>
yh: sure, a bad environment is very different from a bad codebase though
aswen has quit [Ping timeout: 248 seconds]
<yh>
workmad3: well... there was a correlation in that instance
surs has quit [Quit: WeeChat 0.3.7]
<workmad3>
:)
<ericwood>
I will say, working on that app put hair on my chest and seriously improved the way I structure code
chthon has quit [Quit: Ex-Chat]
<ericwood>
you catch yourself early on with bad habits
christiandsg has joined #ruby
Rayford has joined #ruby
bronson has joined #ruby
<ericwood>
"oh yeah I'll just dump that here" wait a minute I remember what happened when that got out of hand, let's do it the right way early on
<ddv>
there are lots of developer that don't even know if they are doing something wrong, if you work with b players all the time you start to think you're good
tagrudev has quit [Remote host closed the connection]
<ddv>
but when you start to work with the a players you suddenly realize you have a lot to learn still
<ericwood>
having others look at every single line of code I submit for a pull request has been amazing :D
<ericwood>
we have some people that know rails waaaaaaaay better than me
Aswebb_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<workmad3>
ddv: yeah... I've been in the position of being the only dev on a team for quite some time... which means I've mostly been checking myself against people on IRC :P
aganov has quit [Read error: Connection reset by peer]
thinkswan has joined #ruby
icebourg has quit [Client Quit]
senayar has quit [Remote host closed the connection]
<yh>
ericwood: trouble is, I don't know Rails too well. But I'm pretty good with design
jonobob has joined #ruby
aswen has joined #ruby
<yh>
I see far too many listings asking for <x> experience in Rails, specifically
jonobob has quit [Client Quit]
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
<Ove___>
Can anyone recommend some good articles about tuning ruby's GC?
<Ove___>
Which authours to believe and which not to listen too.
crueber has joined #ruby
<yh>
ericwood: my team is really meticulous with review just like yours. Our teams sound v similar. Even still, it seems quite hard to measure which level everyone is at against the wider world: as in, who/what *actually* consistitutes the A-players
<Ove___>
Also, I am well aware of that no one setting fits all projects, but that they are uniqe in it's settings etc.
<yh>
Maybe we are those people, maybe we're way off. I'd love a way to comparably assess
ghostpl_ has quit [Remote host closed the connection]
<ddv>
workmad3: :)
Rayford has quit [Quit: Rayford]
<ddv>
yh: fake it till you make it
<workmad3>
Ove___: I'm currently chuckling over the fact that you're asking strangers on IRC who to trust on articles ;)
ascarter has joined #ruby
spider-mario has joined #ruby
Flcn__ has quit [Quit: Be back later ...]
aswen has quit [Ping timeout: 248 seconds]
ghostpl_ has joined #ruby
<Ove___>
Well, someone ough to know more about gc tuning than the other etc.
joonty has quit [Quit: joonty]
<Ove___>
I'm not a developer and thus knows nothing about Ruby. :P
<Ove___>
Hence I need to learn which people are to be trusted.
<workmad3>
Ove___: sure... but you're then trusting our view on that subject rather than your own... and you don't know if our view is trustworthy :P
icebourg has joined #ruby
<ddv>
You can trust me. :)
VBlizzard has quit [Ping timeout: 272 seconds]
aclearman037 has joined #ruby
<workmad3>
^^ anyone uttering that isn't trustworthy ;)
<ddv>
:D
xcombelle has joined #ruby
<Ove___>
So no good reads etc?
flcn___ has joined #ruby
<workmad3>
Ove___: basically, I can understand why you're asking the question, but I'm chuckling because you're in no more of a position to rate *our* trustworthiness on the subject than you are to rate the original article authors ;)
icebourg_ has joined #ruby
jlast has joined #ruby
ta has joined #ruby
krisquigley has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
joonty has joined #ruby
krisquigley has joined #ruby
<Ove___>
I'll just go ahead and trusting everyone then.
<Ove___>
:D
silkfox has quit [Quit: WeeChat 0.4.3]
thinkswan has quit [Remote host closed the connection]
<Ove___>
BVut from what I've come to understand it might be a good idea to create a heap size big enough to host all of the initial objects.
ghostpl_ has joined #ruby
<Ove___>
Or have I misunderstood anything?
cpt_yossarian has quit [Ping timeout: 255 seconds]
<jhass>
gregf_: sweeper btw never rescue Exception, the default is RuntimeError for good reason
agarie has quit [Remote host closed the connection]
<gregf_>
jhass: i know ;). that was a sample
<sweeper>
yea, been bitten by that far too many times :)
<jhass>
pagios: not aware of anything inbuilt but, but writing a small wrapper around Array should be easy and fun
graydot has joined #ruby
<jhass>
I guess the term you're looking for is ring buffer
<pagios>
yea
joonty has quit [Quit: joonty]
centrx has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olblak has quit [Ping timeout: 250 seconds]
rankine has joined #ruby
graydot_ has joined #ruby
decoponio has joined #ruby
graydot_ has quit [Client Quit]
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
_honning_ has quit [Ping timeout: 250 seconds]
mac_ has joined #ruby
macoecho has joined #ruby
browndawg has quit [Quit: Leaving.]
bronson has joined #ruby
pdoherty has joined #ruby
dmr8 has joined #ruby
joonty has joined #ruby
gsd has joined #ruby
graydot has quit [Ping timeout: 265 seconds]
<pagios>
i have an element being changed in ruby and being returned when requested by sinatra, is there any chance that sinatra returns the element when it is being "changed" like null? or that is considered an atomic operation so that it returns old or new value ?
Xiti has quit [Quit: Xiti]
<pagios>
like when the request happens when the value is being changed
nicolastarzia has joined #ruby
<jhass>
too vague to yes or now that question
<jhass>
er, "or no"
kblake has joined #ruby
<pagios>
thelement is an array being changed by ruby (replaced)
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
in MRI Array operations can be considered atomic, if "change" however means a series of array operations (.pop + .shift for example), that change is not atomic
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
_maes_ has joined #ruby
<pagios>
got it
<pagios>
so if it is in between the .pop and shift
riotjones has quit [Remote host closed the connection]
rhllor has joined #ruby
centrx has quit [Ping timeout: 252 seconds]
edwinvdgraaf has quit [Ping timeout: 248 seconds]
christiandsg has quit [Remote host closed the connection]
<shevy>
pop it, shift it, pop it, shift it
<jhass>
now Array is shevy's new favorite class
vtunka has quit [Quit: Leaving]
<ericwood>
yh: rails isn't too hard to learn if you're already into ruby; the only tricky part is figuring out all the conventions
ghostpl_ has quit [Remote host closed the connection]
Xiti has joined #ruby
<ericwood>
yh: but if you're on a team that's doing code review it falls into place pretty quickly
dmitrykorotkov has joined #ruby
ghostpl_ has joined #ruby
michael_mbp has quit [Excess Flood]
doodlehaus has quit [Remote host closed the connection]
<pagios>
jhass: can i return the "last 100 points of an array" ?
sevvie has quit [Ping timeout: 265 seconds]
<jhass>
.last(100)
<pagios>
the array is filling but sometimes i might be at length 80
<ericwood>
the railsguides are really well-written and I highly recommend reading every single one
<ericwood>
the one on security is amazing, too, and one of the better introductions to general web security I've seen :D
palms has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
<ericwood>
they include examples of real-world stuff and it's fascinating
Mives has quit [Ping timeout: 264 seconds]
Mives has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
B1n4r10 has joined #ruby
dmitrykorotkov has quit [Quit: Leaving]
bim has quit [Disconnected by services]
bim_ has joined #ruby
<yh>
I'll no doubt read through those ericwood :)
<yh>
Should I ever be applying to Rails jobs in future, I'll be reading the shit out of it before hand
icebourg_ has quit [Ping timeout: 250 seconds]
Aswebb_ has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 252 seconds]
<yh>
A practice I've adopted which seems effective is: if there are any foreign technologies at a place I go to work, read (at least) a book on it
Hijiri has quit [Quit: WeeChat 1.0.1]
O_the_Del has left #ruby ["Leaving..."]
<jokester>
yes that's a good idea
christiandsg has quit [Remote host closed the connection]
willharrison has joined #ruby
last_staff has quit [Quit: last_staff]
icebourg has joined #ruby
vdamewood has joined #ruby
momomomomo has quit [Quit: momomomomo]
cacocola has quit [Remote host closed the connection]
aewffwea has quit []
Takle has quit [Remote host closed the connection]
sevvie has joined #ruby
Takle has joined #ruby
riotjones has joined #ruby
Biopandemic has joined #ruby
milesmatthias has joined #ruby
_ixti_ has quit [Ping timeout: 265 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
zzing has joined #ruby
n80 has joined #ruby
hobodave has joined #ruby
cacocola has joined #ruby
_honning_ has joined #ruby
_ixti_ has joined #ruby
moresill has joined #ruby
macoecho has joined #ruby
mac_ has joined #ruby
rokob has joined #ruby
rokob has quit [Remote host closed the connection]
rokob has joined #ruby
cjim has joined #ruby
drawingthesun has joined #ruby
antgel_ has quit [Ping timeout: 256 seconds]
joe_meade has joined #ruby
mjuszczak has joined #ruby
oo_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
andikr has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
rbennacer has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
GnuYawk has joined #ruby
agarie has joined #ruby
JDiPierro has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 256 seconds]
cacocola has quit [Remote host closed the connection]
_2_angeliina30 has joined #ruby
<pagios>
is there a way to bind to a ruby program and issue realtime commands, like check the current values on an array and its length?
<pagios>
like realtime querying a ruby program
<_2_angeliina30>
what??
<pagios>
you have a ruby program running, you connect to it somehow and you issue realtime commands to check the current arrays etc
<pagios>
like sql for example
shadeslayer has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
<pagios>
thinking out loud
<jhass>
pagios: not unless the program is prepared for that
<pagios>
ok
<SebastianThorn>
irb?
<jhass>
pry-remote is one thing to look into
mjuszczak has quit [Ping timeout: 265 seconds]
<pagios>
SebastianThorn: yes irb on a ruby software
<pagios>
application*
cacocola has joined #ruby
moresill has left #ruby ["Leaving"]
paulcsmith has quit [Quit: Be back later ...]
krisquigley has quit [Remote host closed the connection]
_2_angeliina30 has quit [Quit: WhatsChat IRC Android APP]
pengin has joined #ruby
Takle has quit [Remote host closed the connection]
krisquigley has joined #ruby
rbennacer has joined #ruby
deol has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
<SebastianThorn>
pagios: pry, or thread your application and just it in tmux/screen
<SebastianThorn>
the later might be a bad idea, not sure
bingoDLA has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
snath has joined #ruby
<bingoDLA>
hi all, i have a question about the whenever GEM, is there a way to run some job in schedule.rb and return that result to a variable to be used by myapp.rb?
shadeslayer has joined #ruby
n80 has quit [Quit: n80]
caveat- has left #ruby [#ruby]
n80 has joined #ruby
Takle_ has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 265 seconds]
msgodf has quit [Ping timeout: 248 seconds]
Aswebb_ has joined #ruby
cacocola has quit [Remote host closed the connection]
<bingoDLA>
yes no maybe ? :)
Dakuan has quit [Read error: Connection reset by peer]
<centrx>
bingoDLA, I would have the job store a value in the database to be read by the app, but that's when already using a database
drawingthesun has quit [Quit: Leaving]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dakuan has joined #ruby
Takle_ has quit [Remote host closed the connection]
<jhass>
!goal
<helpa>
Describe your goal, not the solution you imagine.
<bingoDLA>
centrx: i dont have a database, i just want to use that variable in my rb file :) cant i include the schedule.rb?
Aswebb_ has quit [Remote host closed the connection]
sargas has joined #ruby
<bingoDLA>
ok so i have a query happening every 1h and fetching data from some third party system, i would like to store that query in a variable and use it in my code
nettoweb has joined #ruby
_honning_ has quit [Ping timeout: 244 seconds]
<jhass>
I'm sorry but that doesn't make much sense
<bingoDLA>
^ jhass
<romking>
Can anyone point me in the right direction to parse this log file? http://pastebin.com/JAzjfdL9 I want to capture it by hash sequence type, where a sequqnce is ID-A-- through ID-Z--
<helpa>
Hi romking. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
<centrx>
bingoDLA, If you're fetching data from a third-party system every hour, you probably do want to store that data in a database
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bingoDLA>
centrx: not really the data is volatile
<jhass>
bingoDLA: so you run some script with whenever that fetches something regularly and then want to do some processing to it. Why don't you just put the code for processing it after the fetching code?
<centrx>
bingoDLA, If you want to run your code after the query, put the query in the code
pengin has quit [Remote host closed the connection]
bronson has joined #ruby
<bingoDLA>
jhass: centrx the whenever gem has a scheduler.rb file that can contain the at commands, can i use the at commands in my myapp.rb?
<jhass>
no
pengin has joined #ruby
<jhass>
you put the query and processing the result together
<jhass>
I don't know how you imagine this to work
<centrx>
bingoDLA, As I understand it, whenever deploys cron jobs, those cron jobs are run by the OS
<bingoDLA>
exactly that s my problem, i want to use the code in my schedule.rb (my variable) in myapp.rb as a variable :)
milesmatthias has quit [Remote host closed the connection]
<bingoDLA>
data is forex echange stuff
<jhass>
then you need to save it somewhere
<centrx>
bingoDLA, put it in a database
<jhass>
preferably a database, yeah
paulcsmith has quit [Client Quit]
<bingoDLA>
i save it in a variable
C1V0 has joined #ruby
havenwood has quit []
<bingoDLA>
its only 1 variable at the end
jenrzzz has joined #ruby
michael_mbp has joined #ruby
<bingoDLA>
USD:5 for example
<bingoDLA>
if ruby crashes no big deal, the app restarts and the value is fetched again
milesmatthias has joined #ruby
<bingoDLA>
why do i need a DB
<bingoDLA>
i am already fetching from a db
pietr0 has joined #ruby
senayar has quit []
<centrx>
It sounds like you have some data to store, that's all
milesmatthias has quit [Remote host closed the connection]
<jhass>
your cronjob and your webapp are separate processes
<centrx>
You can pass data between processes by interprocess communication or files too
<jhass>
that they both use Ruby doesn't matter
towski_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
_hollywood has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<bingoDLA>
jhass: can i run something every 1h from inside my app?
mistermocha has joined #ruby
<jhass>
sure, for example you could store a timestamp of the last fetch and check whether to fetch the new value or return the cached one based on that
lemur has joined #ruby
ixti has joined #ruby
JDiPierro has joined #ruby
kalusn has quit [Remote host closed the connection]
sevvie has joined #ruby
momomomomo has quit [Quit: momomomomo]
qhartman has joined #ruby
_ixti_ has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
Aswebb_ has joined #ruby
<bingoDLA>
jhass: or i can use a sleep of 3600?
c0m0 has quit [Ping timeout: 256 seconds]
basiclaser has quit [Quit: Connection closed for inactivity]
<jhass>
if you run a background thread and properly synchronize the access to the shared data, sure
anarang has quit [Quit: Leaving]
govg has quit [Quit: leaving]
ghostpl_ has joined #ruby
banister has joined #ruby
<bingoDLA>
thanks jhass now i understand that the whenever is mainly a seperate thing, like a crontab for ruby with a scope being schedule.rb
milesmatthias has joined #ruby
anarang has joined #ruby
CustosL1m3n has quit [Ping timeout: 265 seconds]
Dakuan has quit [Read error: Connection reset by peer]
Dakuan_ has joined #ruby
momomomomo has joined #ruby
Mives has quit [Quit: WeeChat 1.1.1]
hectortrope has joined #ruby
kappy has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Client Quit]
gluten_hell has quit [Quit: Computer has gone to sleep.]
macoecho has joined #ruby
mac_ has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
macoecho has quit [Client Quit]
mac_ has quit [Client Quit]
bingoDLA has quit [Quit: Page closed]
sevvie has quit [Ping timeout: 256 seconds]
davejlong has joined #ruby
Zamyatin has quit [Ping timeout: 248 seconds]
lemur has quit [Remote host closed the connection]
paulcsmith has joined #ruby
cacocola has joined #ruby
GnuYawk has quit [Ping timeout: 256 seconds]
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
davedev24_ has joined #ruby
wicope has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Zamyatin has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
macoecho has joined #ruby
mac_ has joined #ruby
michael_mbp has quit [Excess Flood]
macoecho has quit [Client Quit]
mac_ has quit [Client Quit]
mac_ has joined #ruby
macoecho has joined #ruby
rbennacer has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
zenith__ has joined #ruby
Morkel has joined #ruby
anarang has quit [Quit: Leaving]
Dakuan_ has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Limix has joined #ruby
wallerdev has joined #ruby
macoecho has quit [Client Quit]
mac_ has quit [Client Quit]
zenith_ has quit [Ping timeout: 272 seconds]
garethrees has quit [Ping timeout: 265 seconds]
rokob has quit []
Zamyatin has quit [Ping timeout: 250 seconds]
Soda has joined #ruby
yh__ has joined #ruby
einarj has quit [Remote host closed the connection]
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
cacocola has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
centrx has joined #ruby
leafybas_ has joined #ruby
cacocola has joined #ruby
chrishough has joined #ruby
leafybas_ has quit [Remote host closed the connection]
danzilio has joined #ruby
guyz is now known as daynaskully
yh has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
momomomomo_ has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
chinmay_dd has quit [Quit: Leaving]
Zamyatin has joined #ruby
Spatzerny has joined #ruby
ghr has joined #ruby
sevvie has joined #ruby
yh__ has quit [Ping timeout: 264 seconds]
cacocola has quit [Remote host closed the connection]
shazaum has joined #ruby
momomomomo has quit [Client Quit]
wicope has quit [Quit: Leaving]
wicope has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jayeshsolanki has quit [Quit: bye!]
jheg_ has joined #ruby
jheg has quit [Ping timeout: 256 seconds]
jheg_ is now known as jheg
MasterPiece has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
aswen has joined #ruby
Zamyatin has quit [Ping timeout: 255 seconds]
detail_pratique has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
riotjones has quit [Remote host closed the connection]
Jiyuhen has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
thiagovsk has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
chridal has quit [Ping timeout: 256 seconds]
a5i has joined #ruby
<shevy>
OptionParser will handle only arguments that have -- or - right?
detail_pratique has joined #ruby
iamjarvo has joined #ruby
Megtastique has quit []
bruno- has joined #ruby
zenith__ has quit [Ping timeout: 256 seconds]
morenoh149 has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
bronson has joined #ruby
Biopandemic has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
tcrypt has joined #ruby
djbkd_ has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
_djbkd has joined #ruby
ki0 has quit [Ping timeout: 264 seconds]
bruno- has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 250 seconds]
macoecho has joined #ruby
mac__ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
djbkd has quit [Ping timeout: 244 seconds]
mac__ has quit [Client Quit]
macoecho has quit [Client Quit]
fawkes1 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
fawkes1 has quit [Max SendQ exceeded]
dfinninger has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
DexterLB has quit [Quit: So long and thanks for all the fish]
fawkes1 has joined #ruby
Spatzerny has left #ruby ["Leaving"]
fawkes1 has quit [Max SendQ exceeded]
yqt has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
bruno- has joined #ruby
fawkes1 has joined #ruby
fawkes1 has quit [Max SendQ exceeded]
hasB4K has quit [Read error: Connection reset by peer]
withnale_ has quit [Ping timeout: 252 seconds]
chridal has joined #ruby
triple_b has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
ixti has joined #ruby
sevvie has joined #ruby
bim_ has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 264 seconds]
_djbkd has quit [Remote host closed the connection]
wicope has quit [Quit: Leaving]
towski_ has joined #ruby
davejlong has quit [Remote host closed the connection]
Hijiri has joined #ruby
bim has joined #ruby
macoecho has joined #ruby
mac__ has joined #ruby
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
sargas has quit [Quit: This computer has gone to sleep]
sevvie has quit [Ping timeout: 244 seconds]
<Senjai>
Morning ruby
relix has joined #ruby
DexterLB has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejlong has joined #ruby
bim has quit [Remote host closed the connection]
relix_ has quit [Ping timeout: 246 seconds]
<GaryOak_>
shevy: I think it's configurable
jenrzzz has joined #ruby
quimrstorres has quit [Remote host closed the connection]
mistermo_ has joined #ruby
quimrstorres has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
yqt has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
path[l] has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
I am scared by its docu
<shevy>
I think it is time to use something else
<pipework>
shevy: Try documentation.
<pipework>
It's the more mature and fully-formed sibling of docu.
aswen has quit [Ping timeout: 248 seconds]
<jhass>
no time, must ship code!
<GaryOak_>
shevy: have you seen slop?
sigurding has joined #ruby
rhllor has quit [Quit: rhllor]
quimrstorres has quit [Ping timeout: 264 seconds]
mistermo_ has quit [Ping timeout: 265 seconds]
<path[l]>
Hi. I’d like to get some help with handling concurrency in my app. Has anyone here used concurrent-ruby?
<pipework>
path[l]: Have you also looked at celluloid?
<pipework>
Or other ruby implementations?
mac__ has joined #ruby
mac__ has quit [Client Quit]
leafybasil has joined #ruby
<path[l]>
pipework: I did, I have a feeling celluloid will not solve my problems (at least from a cursory reading), but I wonder I dont know about some of its abilities
OrbitalKitten has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<jhass>
ask you actual question, maybe it can be answered without having any clue of the gem ;)
<path[l]>
sounds good
<path[l]>
Currently my system is a pretty simple one that spawns 3 threads which operate in a producer/consumer fashion. The first thread runs through a bunch of files on the filesystem and scans and hashes them, it puts the hashes into a queue, the second picks items from the queue and speaks to an external server on some custom protocol. That server only allows a single instance to be logged in at a time (hence I have this running on a single
<path[l]>
queue), once it gets a response from the server it puts this in yet another queue which then picks up items from this and does some simple file system operations (such as renames and creating symlinks).
mac__ has joined #ruby
macoecho has joined #ruby
mac__ has quit [Client Quit]
Megtastique has joined #ruby
<jhass>
aka pipeline ;)
<pipework>
path[l]: Seems pretty sane and normal. I'd consider digging into celluloid for the actors on that then.
<path[l]>
so let me talk about why I’m not sure how to solve my new problem with actors
<pipework>
But I haven't looked at concurrent-ruby since the last time I recall seeing it on HN and wondering what people are doing.
sevvie has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
jerius_ has joined #ruby
jerius has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
ta has joined #ruby
replay has joined #ruby
<path[l]>
I now have something new I’m trying to accomplish. The third thread, when its processing the final results, might discover that the file its trying to process (rename) is replacing another identical one. In which case it needs to scan the copy it found and speak to the external server. It can then resolve between the two files. The newly renamed one and the one that was originally provided to process
<path[l]>
so I want to be able to submit a new job to the pipeline, but at a higher priority
ghostpl_ has joined #ruby
rbennacer has joined #ruby
<path[l]>
I’ve not seen anything in the actor system that allows me to pre-empt existing messages with a high pri message
ejnahc has quit [Ping timeout: 256 seconds]
davejlong has quit []
<GaryOak_>
use a priority queue
<pipework>
path[l]: That'd definitely be something you'd have to handle yourself.
<path[l]>
yeah thats what I was thinking (there is one in the concurrent-ruby implementation). However, in my new requirement, the result from the process also goes to a different place. So I was thinking of making use of a priority queue and promises
Wolland has quit [Client Quit]
<path[l]>
both of which are present inside concurrent-ruby
ejnahc has joined #ruby
<jhass>
I don't think you need a promise
Nahra has quit [Remote host closed the connection]
gluten_hell has quit [Ping timeout: 252 seconds]
<pipework>
Ah, whale I haven't looked much into concurrent-ruby myself. It might have what you need.
<pipework>
The promises seem neither here nor there in this situation.
<jhass>
you simply abort the job and queue a new one
<jhass>
it's ruby, you can easily queue different types of jobs
hoylemd has quit [Quit: leaving]
macoecho has joined #ruby
mac__ has joined #ruby
<path[l]>
hmm ok, let me think about that. Thanks :)
djbkd has quit [Remote host closed the connection]
doodlehaus has joined #ruby
danman has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
zcreative has joined #ruby
rbennacer has joined #ruby
ta has quit [Remote host closed the connection]
willharrison has joined #ruby
aswen has joined #ruby
sigurding has quit [Quit: sigurding]
havenwood has joined #ruby
Alphazzz has joined #ruby
Advocation has joined #ruby
edwinvdgraaf has joined #ruby
sevvie has joined #ruby
vt102 has joined #ruby
baweaver has joined #ruby
fryguy9 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
f3lp has joined #ruby
jobewan has joined #ruby
shadoi1 has joined #ruby
rhllor has joined #ruby
Hounddog has quit [Ping timeout: 256 seconds]
shadoi1 has quit [Client Quit]
shadoi1 has joined #ruby
djbkd has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
shadoi1 has quit [Client Quit]
shadoi1 has joined #ruby
ta has joined #ruby
mac__ has joined #ruby
macoecho has joined #ruby
momomomomo has joined #ruby
wallerdev has quit [Quit: wallerdev]
Advocation has quit [Quit: Advocation]
yfeldblum has joined #ruby
shadoi1 has left #ruby [#ruby]
zenith_ has joined #ruby
evanjs has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
jottr has joined #ruby
ta has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
yh has joined #ruby
lavros has quit [Quit: leaving]
xDelta has joined #ruby
xDelta has left #ruby ["Saindo"]
wallerdev has joined #ruby
startupality has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
macoecho has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
C1V0 has quit [Ping timeout: 264 seconds]
evanjs is now known as evanfreeman
riotjones has quit [Ping timeout: 256 seconds]
macoecho has joined #ruby
mac_ has joined #ruby
startupality has quit [Client Quit]
CorpusCallosum has quit [Read error: Connection reset by peer]
Zamyatin has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
ta has quit [Remote host closed the connection]
agrinb has quit [Quit: Leaving...]
yeticry has joined #ruby
Zamyatin has joined #ruby
_djbkd has joined #ruby
nicolastarzia has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speaking1ode has joined #ruby
blueOxigen has joined #ruby
speakingcode has quit [Disconnected by services]
GnuYawk has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
speaking1ode is now known as speakingcode
greenbagels has joined #ruby
evanfreeman has quit [Remote host closed the connection]
bim has joined #ruby
ixti has joined #ruby
evanfreeman has joined #ruby
flcn___ has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
relix has joined #ruby
shadoi1 has joined #ruby
sargas has joined #ruby
bluOxigen has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
postmodern has joined #ruby
ta has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
bayed has quit [Quit: Connection closed for inactivity]
rhllor has quit [Read error: Connection reset by peer]
<jhass>
ght: so classic xy or is there another catch? ;)
<bradland>
dats a fresh looking IRC setup you got there jhass
cr3 has joined #ruby
<bradland>
is that a pimped out irssi session?
tmoor has joined #ruby
romking has quit [Quit: Konversation terminated!]
<ght>
ahh, so date.today.wday == 1 always works?
<gr33n7007h>
weechat
<jhass>
bradland: weechat with official "make it pretty guide" + color nicks script
Trynemjoel has joined #ruby
CustosL1m3n has joined #ruby
<jhass>
ght: yeah
urbanmonk has quit [Quit: urbanmonk]
cjim_ has joined #ruby
<jhass>
bradland: oh and a custom same_nick prefix thingy
<cr3>
hi folks, is there a clean way to look for keys from keys from keys of a hash where the first might not be there, like foo['a']['b']['c'] where 'a' might not be in foo? in the end, I just want nil if 'c' is not there or the value if it's there.
<ght>
Brilliant, thank you, must have missed the now.wday method in the documentation
<ght>
or the wday method as it were.
Lewix has quit [Remote host closed the connection]
<jhass>
ght: also note there actually is a monday? as gr33n7007h pointed out
kadoppe has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
chinmay_dd has quit [Quit: Leaving]
joe_meade has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ght>
I love Ruby.
n80 has joined #ruby
<ght>
Thanks guys, appreciate the help.
<jhass>
cr3: I'd just value = foo['a']['b']['c'] if foo.has_key? 'a' in that case
kadoppe has joined #ruby
<cr3>
jhass: what if 'b' is not there? in python, I might do foo.get('a', {}).get('b', {}).get('c')
<jhass>
cr3: you didn't say so ;P
cjim has quit [Ping timeout: 256 seconds]
<jhass>
Ruby has get too, it's called fetch
naftilos76 has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
<jhass>
replace get with fetch and what you wrote is valid ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cr3>
jhass: yeah, I couldn't come up with a clear way to ask but I think you hit the nail on the head :) I was looking at {}.methods and didn't notice fetch, thanks!
felltir has joined #ruby
vim_shimm has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 248 seconds]
OrbitalKitten has joined #ruby
maasha has joined #ruby
cacocola has quit [Remote host closed the connection]
<naftilos76>
Hi i am trying to use IPSocket.getaddress(domain) after doing require 'socket' in one of my controllers. It works fine in my home laptop. It also works in my vps if i try in IRB but it does not work in my rails website . That is weird. Can anybody have a guess?
jheg has quit [Ping timeout: 252 seconds]
<maasha>
What does it take to ensure that a temp dir created with Dir.mktmpdir is removed?
<naftilos76>
The same rails controller that does not work in my vps works fine in my home laptop
<jhass>
naftilos76: no, nobody can help you with "does not work"
flak has joined #ruby
beneggett has joined #ruby
<havenwood>
maasha: "If a block is given, it is yielded with the path of the directory. The directory and its contents are removed using FileUtils.remove_entry before ::mktmpdir returns. The value of the block is returned."
<jhass>
maasha: you removing it
<jhass>
oh, or block form apparently
jheg has joined #ruby
<maasha>
havenwood: so what happens if the app is interrupted or killed?
<maasha>
jhass: ^^
<naftilos76>
ok jhass, sorry. I get in my dev log this:
<naftilos76>
SocketError (getaddrinfo: No address associated with hostname):
sgambino has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
<jhass>
maasha: mmh, I guess you could use systemd-run and PrivateTemp=yes :P
jobewan has quit [Quit: Leaving]
<maasha>
rubie: you can do a shallow copy with .dup or you can create a deep copy using Marshal.
<naftilos76>
jhass, i just tried to count their characters and they all agree with the chars in the domains. No weirg chars or anything extraordinary in the domains strings. They are extracted from a db so they are not a result of a string manipilation or anything like that.
<agarie>
rubie: array.dup is what you need
<rubie>
ok thanks ill look for that method... thanks!
cacocola has joined #ruby
<jhass>
naftilos76: I don't think we can debug this remotely
<jhass>
they don't resolve is all I can say
<naftilos76>
neither do i :-)
mengu has quit [Ping timeout: 272 seconds]
neohunter has joined #ruby
<neohunter>
HI guys!
cacocola has quit [Remote host closed the connection]
<agarie>
well, `clone` would be the same in this specific case :P
B1n4r10 has joined #ruby
Alphazzz has joined #ruby
iamjarvo has joined #ruby
B1n4r10 has quit [Client Quit]
B1n4r10 has joined #ruby
<neohunter>
its possible to do something to alter the result that appear on console when returning an object
<neohunter>
so to change this #<Nene:0x007f987c0fd810>
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
B1n4r10 has quit [Client Quit]
B1n4r10 has joined #ruby
<neohunter>
I thought that if I define to_s method i were able to change that, but aparently not?
<felltir>
it's inspect, not to_s
cacocola has joined #ruby
gfawcettpq has quit [Ping timeout: 246 seconds]
gluten_hell has quit [Read error: Connection reset by peer]
gluten_hell has joined #ruby
Dakuan has quit []
Alphazzz is now known as AlphaTech
speakingcode has quit [Ping timeout: 265 seconds]
mhib has joined #ruby
cacocola has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
frem has joined #ruby
jottr has joined #ruby
Dakuan has joined #ruby
znst has joined #ruby
_djbkd has quit [Remote host closed the connection]
speakingcode has joined #ruby
n80 has quit [Quit: n80]
albedoa has quit [Read error: Connection reset by peer]
mhib has quit [Client Quit]
freerobby has joined #ruby
rubie has quit [Quit: Page closed]
albedoa has joined #ruby
mhib has joined #ruby
<znst>
Hello, our team was wondering about Ruby and HTTP 2 support. It seems Net::HTTP supports HTTP 1.1 . Is there any reading material or talk on the subject?
duncannz has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 250 seconds]
Dakuan has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
<naftilos76>
bradland: if i do => IPSocket.getaddress("domain_name_string.tld") it works fine but if i let it take the domain as an argument then it does not. The weird thing is that it works fine in my laptop locally. This behavior is only encountered in my vps.
<naftilos76>
both my vps
Hijiri has joined #ruby
graydot has joined #ruby
<bradland>
naftilos76: can you gist the code nearby app/controllers/virtual_domains_controller.rb:115:in `getaddress'
chridal has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
pengin has joined #ruby
<naftilos76>
yep
nicolastarzia has joined #ruby
felltir has quit [Read error: Connection reset by peer]
milesmatthias has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland>
just a few lines of context would be enough
<bradland>
i'm going to suggest some logging calls
<bradland>
note that your log level must be info in order to see log messages sent with loggerinfo
Jiyuhen has joined #ruby
<bradland>
*logger.info
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
speakingcode has quit [Ping timeout: 256 seconds]
<work_op>
ok rubyists, I'm trying to parse documents of plaintext, and I want to have an heirarchy of words and structures, and be able to compose them
bronson has quit [Remote host closed the connection]
OrbitalKitten has quit [Ping timeout: 244 seconds]
<GaryOak_>
if this was an irc bot, I would be impressed
odin22 has joined #ruby
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<ght>
Question: I have a datetime column in my profiles table named "testtime" I want to declare as a Ruby variable so I can use methods such as testtimevar.now.hour, testtimevar.now.monday?, etc.
<ght>
Is that possible?
chridal has quit [Ping timeout: 272 seconds]
<jhass>
ght: fully #RubyOnRails territory now ;)
<ght>
I do that currently with an ActiveSupport::TimeZone value
<GaryOak_>
what's a profiles table?
tocapopai has joined #ruby
<ght>
Well actually this is for a Ruby application I'm coding, but it uses Rails as a user front end for writing database values.
<ght>
So yes, in a sesne, but the code utilizing it is straight Ruby.
<jhass>
rails applications are ruby applications
<jhass>
always
<ght>
The Rails piece is just used for allowing users to enter values.
<ght>
Yes, I realize that.
<ght>
Point being, this code is entirely separate from the Rails project, which is why I'm asking here.
<jhass>
so that question isn't implying ActiveRecord? ;)
tocapopai is now known as rambos
c_ronaldo is now known as r_10
rambos is now known as marcos_ramos_gat
<ght>
ActiveRecord, don't believe so, since I'm not asking how to pull the DB values, I'm asking how to declare a Ruby var of datetime type so I can use methods like .now, .now.hour, etc
marcos_ramos_gat is now known as gatinho_uol_356
<ght>
as I do with an ActiveSupport::TimeZone object
<ght>
Maybe it does involve ActiveRecord, if so I apologize.
brb3 has quit [Quit: ZZZzzz…]
<jhass>
foo = Date ?
Rollabunna has joined #ruby
<jhass>
not sure what you're getting at really
gatinho_uol_356 has left #ruby [#ruby]
r_10 is now known as steve-jobs
<ght>
Can you declare a Date.new() with values formatted for datetiem?
<zenspider>
ght: you're not asking any (sensible) question yet... maybe you could actually ask one that people could help you with.
<GaryOak_>
ght: you should be able to use strptime
<zenspider>
not a question: "I want to declare as a Ruby variable so I can use methods such as testtimevar.now.hour, testtimevar.now.monday?"
<ght>
lol zenspider, very sorry for wasting your time, I'll try harder to format the question.
ta has joined #ruby
<jhass>
!bail
pengin has quit [Remote host closed the connection]
<jhass>
meh
BTRE has joined #ruby
Cache_Money has quit [Ping timeout: 244 seconds]
vim_shimm has quit [Ping timeout: 256 seconds]
<jhass>
anyway, I think I'll leave that to others to decipher :P
M-Technic has joined #ruby
<GaryOak_>
I think that was what he was asking about *shrug*
elaptics is now known as elaptics_away
<GaryOak_>
I guess (he or she)
<ght>
Let's try this. I have a variable that's of type string, such as "Central Time (US & Canada)", that I can create a var of ActiveSupport::TimeZone() type with, and once declared, I can utilize methods such as .now.hour, .now.day, etc.
hpoydar has quit [Remote host closed the connection]
triple_b has quit [Ping timeout: 252 seconds]
<GaryOak_>
thee asker
<ght>
I have a separate variable, stored of type datetime, and I would like to use that value to declare a variable with which I can use those same .now and .now.hour methods.
<jhass>
>> datetime
<ght>
Example of stored datetime value: 2015-03-30 20:42:19 +0000
<eval-in_>
jhass => undefined local variable or method `datetime' for main:Object (NameError) ... (https://eval.in/306653)
OtterCoder has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
<jhass>
that's not a Ruby class, so be more precise
x1337807x has quit [Max SendQ exceeded]
<zenspider>
they still haven't gotten to a question... so I'm mentally checking out.
Cache_Money has joined #ruby
<GaryOak_>
ght: Do you have a DateTime ruby object, or a datetime string?
x1337807x has joined #ruby
<ght>
jhass: When running a rails migration, you can specify a column to be of type "datetime", but let's forget that and just focus on the value itself: 2015-03-30 20:42:19 +0000
<zenspider>
How do I X? What should I use to do Y? etc... not hard
<ght>
How can I take the value "2015-03-30 20:42:19 +0000" and store it in a Ruby variable type that allows methods such as now.hour, now.day, etc?
<shevy>
ght you could turn that into a time object
<zenspider>
you're just dragging this out jhass :P
steve-jobs is now known as torvalds
<ght>
Shevy: is that the variable type I'm looking for? To use Time.new()?
<shevy>
almost
<ght>
That Time class contains the methods I'm referring to, such as .now?
<shevy>
x = Time.parse "2015-03-30 20:42:19 +0000"
<shevy>
x.class
mib_mib has joined #ruby
<jhass>
!goal
<helpa>
Describe your goal, not the solution you imagine.
<shevy>
there may be more parse-related methods like that
<ght>
ahh, very nice, I'll try that.
<ght>
Thank you.
<shevy>
x.day # => 30
<GaryOak_>
dang that was like walking into a biker bar
<mib_mib>
hi all - how do i write a regex that matches all unicode spaces but NOT newlines? i want to do something like "my string".gsub(/[[:space:]]/, ' ') but not have it replace newlines...
<shevy>
the time + date stuff in ruby is a bit chaotic, I always need to look things up
milesmatthias has quit [Remote host closed the connection]
<ght>
shevy: I gathered that myself. :)
<ght>
That solution is perfect though, thank you.
<shevy>
I usually look at my notes
<shevy>
\o/
wallerdev has joined #ruby
<shevy>
GaryOak_ have you walked into a biker bar?
<GaryOak_>
I've seen it on TV
<zenspider>
mib_mib: gah. not sure. you might want to .tr newlines to something unique, gsub on :space: and then tr the unique char back to newlines?
torvalds is now known as pecados
<shevy>
I am scared by watching movies... the dudes there are big, heavy, have beards - and bikes
<jhass>
yeah, bot is still broken with unicode input :/
CorpusCallosum has joined #ruby
rodfersou has quit [Quit: leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has joined #ruby
<jhass>
I'm not sure I understand why that works :P
Sgeo has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
<jhass>
ah, because the lookahead consumes it already
shazaum has quit [Quit: Leaving]
yfeldblum has joined #ruby
<Mon_Ouie>
Hm? First it checks, without consuming any input, that the string doesn't match "\n", and if it doesn't match, it tries to see if the input matches against the same string… not sure if that makes sense
Guest48143 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<eam>
you can nest, yeah?
<eam>
I think that's more exactly what you're after
Rollabunna has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<eam>
[^[^[:space:]]\n] is (not ((not (set of all spaces)) plus \n))
AlexRussia has quit [Ping timeout: 250 seconds]
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
Rollabunna has joined #ruby
<eam>
or all whitespace except \n
<jhass>
oh, didn't know you can nest
ta has quit [Remote host closed the connection]
<eam>
\s should work inside a [] as well
<jhass>
that i know
<jhass>
[[:space:]] and \s are not equal though afaik
tier has quit [Remote host closed the connection]
markoiskander has joined #ruby
<eam>
no clue there
<jhass>
ascii vs unicode category I think?
<markoiskander>
Hello, I was wondering if anyone has seen seg faults from ruby 2.1.2 when running cucumber? Or knows how to start troubleshooting them even
<eam>
I wouldn't be surprised, but also wouldn't be surprised if they were aliases :)
rhllor has quit [Quit: rhllor]
markoiskander has left #ruby [#ruby]
elaptics is now known as elaptics_away
mac_ has joined #ruby
macoecho has joined #ruby
<jhass>
wow, such patience
<shevy>
hehe
markoiskander has joined #ruby
<eam>
markoiskander: do you have the segfault? Can you gist it?
<jhass>
markoiskander: start with updating to .1.5, no reason to not run on the latest patches
freerobby has joined #ruby
ascarter has joined #ruby
timonv has joined #ruby
<eam>
markoiskander: first step is collect a corefile and use gdb to extract the backtrace
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rankine has quit [Quit: leaving]
jefus_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
JimmyNeutron has joined #ruby
batm has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jefus has quit [Ping timeout: 272 seconds]
elaptics_away is now known as elaptics
einarj has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
markoiskander has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
totimkopf has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
_2_neeky23 has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_2_neeky23 has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
baweaver has joined #ruby
einarj has joined #ruby
<totimkopf>
can someone explain to me how SomeClass.instance_method(:some_method).bind(some_object).call can be useful?
hobodave has quit [Quit: Computer has gone to sleep.]
sevvie has quit [Ping timeout: 245 seconds]
milesmatthias has quit [Remote host closed the connection]
fakam has joined #ruby
markoiskander has joined #ruby
<zenspider>
totimkopf: if you have to ask, you won't understand. :P
<zenspider>
tho, in this case, not entirely jest. try to avoid it if you can
<fakam>
Good Afternoon Rubyland.
<totimkopf>
zenspider: pfft :p
<fakam>
Can someone suggest some good projects to do in Ruby? For an intermediate level?
rbennacer has quit [Remote host closed the connection]
sevvie has joined #ruby
<zenspider>
totimkopf: in actuality, avoid overly clever code. this counts
wallerdev has quit [Ping timeout: 245 seconds]
dopie has joined #ruby
<totimkopf>
zenspider: you really can't give an example?
<totimkopf>
:(
<postmodern>
what is a good standalone file cache (a cache which stores data in a tempdir, and expires based on a files ctime)?
<zenspider>
totimkopf: I can totally give examples. of code I try to avoid.
<totimkopf>
zenspider: okay, so then you agree that it's not very useful?
<zenspider>
it has its uses, but ruby is dynamic enough that there are generally better solutions available
brb3 has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<zenspider>
postmodern: it's a 3-5 liner, so I usually just whip up my own
A205B064 has joined #ruby
<postmodern>
guess that's better than depping in ActiveSupport just for their 3-5 liner file cache
cacocola has joined #ruby
fakam has quit [Quit: Leaving]
<totimkopf>
the only case I've seen in TWGR is that you might want to access a method further up the method lookup chain from an instance, but why would you need that instance, but that purpose is a little fuzzy
baweaver has quit [Ping timeout: 250 seconds]
martinbmadsen has quit [Ping timeout: 250 seconds]
<shevy>
totimkopf I guess in ruby things are often just possible to do, whether they may then be useful is another issue. see whether @@class_vars are useful or not, some think yes, I on the other hand don't like them. I remember a bug I had years ago due, back then I realized I could have used a constant in that case anyway
<zenspider>
postmodern: hah. yeah.
sevvie has quit [Ping timeout: 256 seconds]
<zenspider>
totimkopf: that's a design smell
paulcsmith has quit [Quit: Be back later ...]
freerobby has quit [Quit: Leaving.]
<shevy>
totimkopf like this one here http://ruby-doc.org/core-2.2.0/Method.html - I am sure it may be useful for someone, I haven't yet found a clear example of where I needed it
<totimkopf>
@@class_vars, I can see their use, so that even the subclasses can keep track of state
jerius has quit [Quit: /quit]
milesmatthias has joined #ruby
AndyBotwin has joined #ruby
<totimkopf>
shevy: hehehe
<shevy>
I dunno, I never really had required my subclasses to keep track of state through @@
shadoi2 has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
momomomomo has quit [Quit: momomomomo]
shadoi1 has quit [Ping timeout: 248 seconds]
mattwildig has quit []
quimrstorres has joined #ruby
lanemeyer has joined #ruby
<markoiskander>
I can’t seem to find a core file where the script was running
<markoiskander>
Any idea where it may be located?
mengu has joined #ruby
<jhass>
cat /proc/sys/kernel/core_pattern
merqlove has quit [Quit: Connection closed for inactivity]
sevvie has joined #ruby
<markoiskander>
jhass: I did that and checked that directory no ruby dir with in it
Notte has quit [Remote host closed the connection]
hobodave has joined #ruby
<jhass>
so how about sharing the full output at least
freerobby has joined #ruby
AlexRussia has joined #ruby
<zenspider>
markoiskander: you might not have cores enabled
<zenspider>
look at `ulimit -a`
<zenspider>
tho it doesn't matter. you don't need a core
<zenspider>
run ruby under gdb and repro and you can get the backtrace
<zenspider>
gdb $(which ruby)
<zenspider>
r script.rb
<zenspider>
... boom
<zenspider>
bt
Hijiri has quit [Quit: WeeChat 1.0.1]
<markoiskander>
Ah, I’ll give that a try. It seg faults randomly so will have to see if I an reproduce
jenrzzz has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
<markoiskander>
zenspider: looks core is not enabled as you suspected
<markoiskander>
Set to 0
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
razieliyo has quit [Read error: Connection reset by peer]
<zenspider>
markoiskander: you can certainly unlimit the core size and let it go about randomly reproducing
<zenspider>
put it in your shell setup: ulimit -c $(ulimit -Hc)
wldcordeiro_ has quit [Quit: Leaving]
<markoiskander>
zenspider: thanks! Will hopefully have stack trace soon
<markoiskander>
I guess once i get a stack trace what should I be looking for?
DavidDudson has joined #ruby
<markoiskander>
Does the first line really indicate the cause or is it potentailly random based on some other variables?
<jhass>
I would still be interested in the MRI segfault output btw, it can show an issue or two
MasterPiece has quit [Read error: Connection reset by peer]
<zenspider>
markoiskander: once you get the core: gdb corefile $(which ruby)
<zenspider>
bt
cacocola has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 264 seconds]
<totimkopf>
zenspider: could you provide me an example of how you wouldn't do something, with the instance_method thing we were discussing earlier, please?
<kstuart>
totimkopf: XClass.instance_method(:xmethod).bind(xobj) I don't think is particularly useful, but you could use instance_method and bind to wrap methods with, eg. aspects. For example performing authentication check before method; logging before/after/around method, etc... Is that what you mean?
bonhoeffer has joined #ruby
baweaver has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
<totimkopf>
kstuart: yes, thank you
nfk has quit [Quit: yawn]
adriancb has quit [Remote host closed the connection]
<totimkopf>
kstuart: probably a lot of better ways to accomplish that, though
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
gluten_hell has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Quit: Leaving]
senayar has joined #ruby
senayar has joined #ruby
reinaldob has joined #ruby
cacocola has quit [Remote host closed the connection]
chipotle has joined #ruby
<shevy>
hehe
maletor has joined #ruby
<shevy>
why try simple when you can make it complicated
wallerdev has joined #ruby
<totimkopf>
:p
<shevy>
jhass do the crystal guys have one of their goals to make crystal simpler than ruby?
<jhass>
I don't think so
baweaver has quit [Remote host closed the connection]
<jhass>
I have trouble coming up with any real world examples for that statement though
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<jhass>
what in Ruby would you solve "simpler"/differently?
jconnoll1 has quit [Ping timeout: 252 seconds]
<jhass>
writing library bindings is a lot simpler actually
macoecho has joined #ruby
mac_ has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
hpoydar has quit [Remote host closed the connection]
<kstuart>
hmm...what do you use instead of pastie?
speakingcode has quit [Ping timeout: 245 seconds]
<kstuart>
Oh, gist
JoshGlzBrk has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
<kstuart>
(contrived as I'm not to keen on the coupling)
path[l] has quit [Ping timeout: 264 seconds]
path[l]_ is now known as path[l]
<zenspider>
ugh
sevvie has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
AlexRussia has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<bradland>
i think someone just let their dog take a dump right outside my window
<zenspider>
thanks for sharing?
<bradland>
film at eleven
macoecho has joined #ruby
mac_ has joined #ruby
max96at is now known as max96at|off
Mon_Ouie has quit [Ping timeout: 244 seconds]
<kstuart>
is there something wrong with decorating methods like that?
Cust0sLim3n has joined #ruby
nettoweb has joined #ruby
Cust0sL1men has joined #ruby
decoponio has quit [Ping timeout: 244 seconds]
<totimkopf>
kstuart: that's interesting
CustosLimen has quit [Ping timeout: 252 seconds]
hpoydar has joined #ruby
CustosL1m3n has quit [Ping timeout: 256 seconds]
palms has quit [Ping timeout: 255 seconds]
fryguy9 has quit [Quit: Leaving.]
sevvie has quit [Ping timeout: 264 seconds]
hellome has joined #ruby
Wolland has quit [Remote host closed the connection]
krisquigley has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
milesmatthias has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
Notte has joined #ruby
mac_ has joined #ruby
macoecho has joined #ruby
macoecho has quit [Client Quit]
mac_ has quit [Client Quit]
<kstuart>
totimkopf: saw other examples in a book on metaprogramming, or source code, don't recall. but google ruby metaprogramming should give other (probably better) examples, I think it's a common enough pattern/technique.
bronson has joined #ruby
_akers has left #ruby [#ruby]
krisquigley has quit [Ping timeout: 250 seconds]
AlphaTech has quit []
<totimkopf>
kstuart: I have that pragmatic metaprogramming book but have yet to read it :)
odin22 has quit [Quit: Leaving]
graydot has quit [Quit: graydot]
<totimkopf>
kstuart: but sure, I will search for more examples. thank you
dfinninger has quit [Remote host closed the connection]
adriancb has joined #ruby
yxhuvud has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cacocola has joined #ruby
baweaver has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy>
bradland kill this dog
replay has quit [Ping timeout: 264 seconds]
<shevy>
or perhaps the owner
jerematic has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
cacocola has quit [Remote host closed the connection]
<bradland>
dogs poop where their owners walk them. the owner must die.
<shevy>
yeah
baweaver has quit [Remote host closed the connection]
<shevy>
grab the pile and give it to the dog owner
baweaver has joined #ruby
<dorei>
tourists are really shocked when they realize there're stray dogs here in greece :D
yxhuvud has joined #ruby
replay has joined #ruby
Notte has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
caconym has joined #ruby
cacocola has joined #ruby
AlphaTech has joined #ruby
evanfreeman has quit [Remote host closed the connection]
shadoi1 has joined #ruby
replay has quit [Remote host closed the connection]
shadoi1 has quit [Client Quit]
shadoi1 has joined #ruby
AlexRussia has joined #ruby
cr3 has quit [Quit: leaving]
roolo_ has quit [Remote host closed the connection]
Pharaoh2_ has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
baweaver has joined #ruby
shadoi2 has joined #ruby
einarj has quit [Remote host closed the connection]
<shevy>
hmm
quimrstorres has quit [Remote host closed the connection]
<shevy>
a pack of wild dogs can be quite dangerous
<shevy>
I usually see group of cats
<shevy>
like in italy, in rome, on the cemetary
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]