sargas has quit [Quit: This computer has gone to sleep]
<polyzen>
i assume i should only have one of each installed
GGMethos has quit [Quit: WeeChat 1.0.1]
Faiqus has quit [Remote host closed the connection]
<polyzen>
first time actually using ruby.. i've installed gamebox and it's deps, and then followed the steps under Game Creation https://github.com/shawn42/gamebox
<polyzen>
Radar ^
poguez has quit [Quit: Connection closed for inactivity]
Takle has quit [Remote host closed the connection]
<Radar>
Ah I've not used that before. I don't think that I can help you.
<polyzen>
perhaps i should just uninstall rake 0.9.2.2
mesamoo has quit [Quit: Konversation terminated!]
pengin has quit [Remote host closed the connection]
^wald0 has quit [Quit: ^wald0]
shazaum has quit [Quit: This computer has gone to sleep]
doodlehaus has quit [Remote host closed the connection]
puzzlr has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
puzzlr has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
sankaber has joined #ruby
emmesswhy has quit [Ping timeout: 255 seconds]
adriancb has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
puzzlr has joined #ruby
klmlfl has joined #ruby
puzzlr has quit []
hamakn has joined #ruby
klmlfl_ has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
CynosureKuruma has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
jobewan has joined #ruby
towski_ has quit [Remote host closed the connection]
echooo has joined #ruby
klmlfl has quit [Ping timeout: 265 seconds]
kalz has quit [Ping timeout: 272 seconds]
teddyp1cker has joined #ruby
vin` has quit [Ping timeout: 264 seconds]
sankaber has quit [Client Quit]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
emmesswhy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
<zalmoxes>
i've been automating some tasks with Nokogiri/Mechanize but I've hit a wall. one of the things i'm trying to automate is uploading files, but the file manager that opens up is written in Flash
emmesswhy has quit [Client Quit]
dpy has quit [Ping timeout: 252 seconds]
emmesswhy has joined #ruby
chipotle has joined #ruby
adriancb has quit [Remote host closed the connection]
<abhimanyu>
i need to assign the current day to a variable. If this variable's value is Monday, it will post WPD, it Tuesday, WordPress, and so on.
<certainty>
you could for example have a hash that maps the weekday to the output
<certainty>
then do puts somehash[Time.now.wday]
<certainty>
just a thought
agrinb has joined #ruby
<certainty>
or even use an array and index into it
oo_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
<abhimanyu>
Friends, no, you don't understand. I'm a rookie... I don't understand what you mean by hashing and whatever. It's so simple: get the day, assign value, cram lots of (14) if statements like if day=Monday do puts"WPD" end
n008f4g_ has quit [Ping timeout: 264 seconds]
<certainty>
well i'm not going to give you the entire thing
<sevenseacat>
lol
LouisRoR has joined #ruby
<sevenseacat>
'you dont understand, i want you to do it for me'
<sevenseacat>
if its so simple, you should be able to do it yourself
mrmargolis has quit [Ping timeout: 244 seconds]
<abhimanyu>
uh yeah, but that doesnt mean i wont learn if you tell me how to do it,
<crome>
also, with 14 ifs and all that stuff the cyclomatic complexity of your method is going to be crazy
<crome>
think about the pandas
xrlabs has joined #ruby
<certainty>
abhimanyu: you will have to do most of the work. We're here to help but you need to learn things. (even if it hurts slightly)
<abhimanyu>
i wouldnt have come here if it were really that simple. it includes date time... i think the process of doing it should be simple, but i dont know it
agrinb has quit [Ping timeout: 244 seconds]
<abhimanyu>
ofc i have to do it. i completely understand. But I don't see what's the big deal, someone of you must be able to solve this in a single pinch.. the problem feels so simple for a powerful programming language like ruby..
doodlehaus has joined #ruby
ponga has joined #ruby
<avril14th>
is there a way to give back a pry/irb console to the user in the middle of a Rake task?
<certainty>
abhimanyu: well in its simplist and probably also the least beautiful way you could just have a bunch (about 7) conditionals. if now.monday? ... elsif now.tuesday? ....
<sevenseacat>
there has to be a name for this kind of guilt tripping people into doing your work
<certainty>
sevenseacat: there is
<certainty>
boss
<sevenseacat>
'if its so simple and ruby is so good and youre so smart, why wont you write it'
<certainty>
or manager
<sevenseacat>
lol
<avril14th>
certainty: was gonna say the same
<avril14th>
more precisely
<avril14th>
Dunning-Krueger bosses
<avril14th>
aka wannabees
<certainty>
avril14th: just starting the pry session inside the task should work
<abhimanyu>
...
<certainty>
binding.pry and off you go
blackmesa has quit [Ping timeout: 252 seconds]
<abhimanyu>
is that how you all treat newcomers?
<avril14th>
certainty: ok will look into that. thx
<sevenseacat>
that try to guilt-trip us, yes
spider-mario has joined #ruby
<sevenseacat>
well, i do, anyway
abhimanyu has quit [Remote host closed the connection]
<shevy>
I was looking at class Array and wondered where that option was
<shevy>
:\
<shevy>
:/
<certainty>
ah ok
einarj has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
<dark_lord>
Hello I am new to ruby. I want to execute systemtype = Facter::Util::Resolution.exec('netstat -abon | ruby -nae "puts $F[1] if $F[3] == 'LISTENING'"') , but I am getting error :syntax error, unexpected tCONSTANT, expecting ')'...ts $F[1] if $F[3] == 'LISTENING'"')
krz has quit [Read error: Connection reset by peer]
thsig has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 244 seconds]
lkba_ has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 252 seconds]
krz has joined #ruby
msgodf has joined #ruby
tokik has joined #ruby
joonty has joined #ruby
krzkrz has quit [Ping timeout: 255 seconds]
krzkrz has joined #ruby
marr has joined #ruby
PierreRambaud has quit [Read error: Connection reset by peer]
PierreRambaud has joined #ruby
davidhq has quit [Max SendQ exceeded]
davidhq has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
teotwaki has quit [Ping timeout: 265 seconds]
leafybasil has quit [Remote host closed the connection]
kenneth has joined #ruby
teotwaki has joined #ruby
JohnBat26 has quit [Ping timeout: 252 seconds]
zarubin has joined #ruby
<zenspider>
shevy: you can set the width for PP, but I don't think you can say how many "columns" there are
<zenspider>
char width
Xeago has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
gccostabr has joined #ruby
Pharaoh2 has quit [Ping timeout: 264 seconds]
arup_r_ has joined #ruby
dpy has joined #ruby
Mia has joined #ruby
Pharaoh2 has joined #ruby
zarubin has quit [Ping timeout: 244 seconds]
arup_r has quit [Ping timeout: 244 seconds]
vinc has quit []
lkba has quit [Ping timeout: 245 seconds]
leafybasil has joined #ruby
havenwood has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
norc has joined #ruby
<norc>
Hi. I have about 300mb of YAML files that Im trying to load, however the jruby just crashes with GC overhead limit exceeded errors, and I have a feeling that it's a bit extreme for the interpreter. Am I likely to have more success with the native implementation?
lkba has joined #ruby
<norc>
Or should I consider incrementally loading the files (and losing references for the GC to clean up)?
lkba_ has joined #ruby
brandon__ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
nanoyak_ has quit [Quit: Computer has gone to sleep.]
iamninja has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
Aswebb_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
ldnunes has joined #ruby
SilkFox_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
timonv_ has joined #ruby
hephaestus_rg has quit [Ping timeout: 244 seconds]
mrmargolis has joined #ruby
Flcn has joined #ruby
agrinb has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferr has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<ferr>
How would I actually make so the test is only executed if at least 3 selectors found? http://pastie.org/9821830
asmodlol has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
dark_lord has quit [Ping timeout: 240 seconds]
lessless has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
workmad3 has joined #ruby
andikr has quit [Ping timeout: 245 seconds]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<canton7>
as a unit test, that kinda stinks tbh
asmodlol has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
<canton7>
imo, you should have a precise, known input. so you never have conditional asserts - you set up the test, you should know exactly what to assert for
<canton7>
otherwise your test is starting to get more complex than it needs to be - and now your tests need testing themselves, which defeats the point
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
<Macaveli>
how can you delete last from array?
Zai00 has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
sinkensabe has joined #ruby
sevenseacat has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
devoldmx_ has joined #ruby
<Macaveli>
yep
<Macaveli>
indeed workmad3
<Macaveli>
:)
<Macaveli>
easy as pie
postmodern has joined #ruby
timonv_ has quit [Remote host closed the connection]
kamilc__ has quit [Ping timeout: 244 seconds]
ramblex has joined #ruby
kenneth has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
davidhq has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
devoldmx_ has quit [Ping timeout: 264 seconds]
<ferr>
expect(page).to have_css("div[class='portlet box gray'][id='health-settings']) would it be possible to write this css selector like div.portlet box gray#health-settings?
cobakobodob has quit [Read error: Connection reset by peer]
neersighted has joined #ruby
DaniG2k has quit [Quit: leaving]
nicolastarzia has quit [Ping timeout: 244 seconds]
cobakobodob has joined #ruby
fabrice31 has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
dinesh__ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
asmodlol has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
Aswebb_ has joined #ruby
<pontiki>
didn't i just answer that??
* canton7
has no messages in his log from pontiki
<sevenseacat>
yeo, he cross-posted.
bal has quit [Ping timeout: 256 seconds]
<sevenseacat>
yep
<canton7>
aah, that'll be why
teddyp1cker has joined #ruby
ilvtxt has joined #ruby
shredding has quit [Quit: shredding]
DadoCe has joined #ruby
ChoiKyuSang has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
sigurding has quit [Quit: sigurding]
agrinb has joined #ruby
DadoCe has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
josephndenton has joined #ruby
SilkFox_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
AFKGeek has joined #ruby
dinesh__ has quit [Quit: Page closed]
Zai00 has quit [Quit: Zai00]
rodfersou has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
asmodlol has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
asmodlol has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
sandelius has joined #ruby
dark_lord has quit [Ping timeout: 240 seconds]
froginvasion has joined #ruby
codeFiend has quit [Quit: codeFiend]
max96at|off is now known as max96at
n1lo has joined #ruby
Takle has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
davidhq_ has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
Morkel_ has joined #ruby
ponga has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
Morkel_ is now known as Morkel
<madhatter>
Hi. Is there a way to install executables in a gem to /usr/local/bin or automatically create symlinks there? I tried 'gem install --bindir /usr/local/bin gem_name-version.gem' which kinda works, but is not exactly what I wanted.
iGabriel has quit [Read error: Connection reset by peer]
iGabriel has joined #ruby
<workmad3>
madhatter: it's much preferred to add the gem bin directory to your PATH
Flcn has quit [Quit: Be back later ...]
DadoCe has joined #ruby
<madhatter>
workmad3: Thanks. That is what I would do, if I was allowed to do so. I install it on multiple servers here, but the administrator does not want me to modify the default path. The gem will be installed as root.
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
sigurding has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
<workmad3>
madhatter: so the administrator doesn't want to modify the default path, but is absolutely fine with chucking random executables into places like /usr/local/bin ?
<workmad3>
madhatter: I think the admin is madder than you :P
<madhatter>
workmad3: :D
<madhatter>
I will let him know ;)
<jhass>
+1 get your admin here and let him explain that reasoning
<workmad3>
heh :)
<jhass>
meanhwhile I'll prepare some popcorn
DadoCe has quit [Client Quit]
<workmad3>
"Hey dood, some random guy on IRC says you crazy"
cmouse has joined #ruby
<madhatter>
Great idea
<cmouse>
hi, anyone have any idea how to debug ruby process spendin 99,9% CPU
Aswebb_ has quit [Remote host closed the connection]
Aswebb__ has joined #ruby
<jhass>
cmouse: if you have debug symbols for your ruby executable you could attach with gdb and print a backtrace
<pontiki>
maybe set GEM_HOME=/usr/local
<pontiki>
^ for madhatter
<cmouse>
jhass: possibly, it has several threads though
<jhass>
you can do that in each thread
<cmouse>
yes
<madhatter>
pontiki: I will give it a try. Right now GEM_HOME is unset
<jhass>
call rb_backtrace() and I always have to look up thread switching :P
<Takumo>
So I've got a build process written in rake. And I'd like to introduce an asset pipeline/pre-processor into that, could anyone give me any recommendations? (This is *not* for a RACK or Ruby app)
devoldmx_ has joined #ruby
<pontiki>
Takumo: not an answer, really, but you might look at sinatra-assets and jekyll-assets as examples of doing something like that?
larissa has joined #ruby
kenneth has joined #ruby
<workmad3>
Takumo: or you could take a look at gulp or grunt
<pontiki>
or even delve into sprockets
<Takumo>
will take a look at those, would rather not have grunt *and* rake though!
BlackGear has joined #ruby
davidhq has joined #ruby
<cmouse>
jhass: did not discovery anything interesting
<cmouse>
jhass: all threads were in wait
davidhq_ has quit [Read error: Connection reset by peer]
<jhass>
huh? unlikely for the process to hog the CPU then
<cmouse>
jhass: despite that it spends 99.9% CPU
<cmouse>
i checked all threads
<jhass>
sounds like an active deadlock
DadoCe has joined #ruby
<jhass>
two threads waiting for each other, continously waking up and checking a condition, then going back to sleep
<cmouse>
jhass: could be
devoldmx_ has quit [Ping timeout: 264 seconds]
<cmouse>
jhass: i do see lots of futex stuff
ldnunes has quit [Quit: Leaving]
<cmouse>
so that's not even unlikely
jakolehm has joined #ruby
<jhass>
so backtraces to see whether the threads wait in a location you expect them to wait could still be revealing
codeFiend has joined #ruby
ajaiswal has quit [Quit: Leaving]
sk87_ is now known as sk87
<cmouse>
jhass: this includes a 3rd party gem
<cmouse>
jhass: but yes
davidhq has quit [Max SendQ exceeded]
<jhass>
that's as much general advice as I can give there
<workmad3>
froginvasion: well, a lot of gems with native extensions (the ones that are of concern) have mingw versions available with pre-built binaries, and rubygems picks those up on win32 automatically
<workmad3>
froginvasion: and if you have some gems that are windows-specific, you can also specify that in a project Gemfile using the platform specifier options
cmouse has left #ruby [#ruby]
<froginvasion>
workmad3, is this something new, or was i completely oblivious? I remember problems i had last time i needed xml extensions (for nokogiri) that that was not fun to get to work.But now this should work?
<workmad3>
froginvasion: I think the feature has been in rubygems for a while, but more gems have taken it on board and are providing windows builds
<workmad3>
froginvasion: it also helps that nokogiri since 1.6 includes bundled versions of libxml2 and libxslt, so you're not reliant on providing those outside of the gem now too :)
nicolastarzia has joined #ruby
<froginvasion>
i remember having to provide libxml2 and libxslt myself a while ago
<workmad3>
froginvasion: but with windows gems and native extensions, you do need to look at it on a case-by-case basis
<froginvasion>
but good to hear that that has progressed
bal has joined #ruby
nfk has joined #ruby
<froginvasion>
what about mysql adapter?
<froginvasion>
that used to be another one if i remember correctly
<workmad3>
take a look at it on rubygems ;)
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<froginvasion>
wait where do you see nokogiri supports windows builds?
brb3 has joined #ruby
<workmad3>
look at the versions
<froginvasion>
yeah sorry found it
<certainty>
look at $thing
lessless has joined #ruby
sambao21 has joined #ruby
<workmad3>
if a gem has native extensions and doesn't provide a mingw version, chances are it'll need to compile on install... which means you need a suitable compiler and build environment set up, etc.
blackmesa has joined #ruby
<workmad3>
which I've personally always find a complete PITA on windows (as do many others), hence why the bundling of prebuilt mingw versions :)
<workmad3>
if you're very good at setting up cygwin on mingw, you're probably ok though
nicolastarzia has quit [Ping timeout: 264 seconds]
amundj has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
amundj has joined #ruby
panga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
pdoherty has joined #ruby
Flcn has quit [Ping timeout: 252 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
phantomtiger has joined #ruby
aclearman037 has joined #ruby
doritostains has joined #ruby
workmad3 is now known as wm3|away
felipedvorak has joined #ruby
felipedvorak has quit [Changing host]
felipedvorak has joined #ruby
<canton7>
on the whole, native compilation on windows using DevKit is fine
agrinb has joined #ruby
<canton7>
that gets more tricky if extra third-party libaries are required (e.g. libxml), but gems are pretty good at providing prebuilt binaries in that case
krzkrz has quit [Quit: WeeChat 1.0.1]
josephndenton has joined #ruby
vdamewood has joined #ruby
B1n4r10 has joined #ruby
shredding has joined #ruby
harax has quit [Quit: WeeChat 1.0.1]
agrinb has quit [Ping timeout: 244 seconds]
livathin_ has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
josephndenton has quit [Ping timeout: 255 seconds]
kenneth has joined #ruby
pu22l3r has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
arup_r_ has quit []
pu22l3r_ has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
dc_ has quit [Remote host closed the connection]
krisleech has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
rbennacer has joined #ruby
krisleech has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renier has joined #ruby
nkts has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 244 seconds]
nkts has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
iwishiwerearobot has joined #ruby
oleo has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
apurcell has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
shellfu_afk has quit [Ping timeout: 256 seconds]
SilkFox_ has joined #ruby
<electrical>
hi all. I'm trying out an OpenSuse 13.1 vagrant box which has ruby 2.0.0 install. for some reason every gem i install has 2.0 appended to the executable files.. is this something that's been set at compile time of the ruby in OpenSuse or is this something i can fix ?
DadoCe has quit [Remote host closed the connection]
rbrs has quit [Quit: rbrs]
apurcell has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 256 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
codecop has quit [Quit: Išeinu]
VilaDeste has joined #ruby
VilaDeste has quit [Client Quit]
pandaant has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
osvico has quit [Ping timeout: 240 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
kl__ has joined #ruby
BlackGear has quit [Quit: ZZZzzz…]
dblessing has joined #ruby
rbennacer has quit [Remote host closed the connection]
<kl__>
I'm looking for a good way to avoid excessive public version bumping of my gem
<kl__>
gems*
devoldmx_ has joined #ruby
rbennacer has joined #ruby
<kl__>
Almost like I want to "privately" to my organization bump the versions of my various gems, and only when I'm convinced that they're stable and play together nicely, publically version bump them all
Alina-malina has joined #ruby
<sevenseacat>
privately, just use the master branch of the gem's code?
<sevenseacat>
then only push a new release when you're ready?
adriancb has joined #ruby
osvico has joined #ruby
<kl__>
sevenseacat: even pushing to the master branch you're going to be bumping versions still, even if not pushing
<sevenseacat>
huh?
ponga has quit [Read error: Connection reset by peer]
<certainty>
so sevenseacat is bumping the versions of our gems. i always wondered :)
kiyote23 has quit [Remote host closed the connection]
<leafybasil>
kl__: are you trying to avoid bumping version on rubygems?
<avril14th>
why can't I use ? or * in a look-behind pattern in a regex?
jakolehm has quit [Remote host closed the connection]
Guest97 has joined #ruby
Guest97 has quit [Client Quit]
Guest97 has joined #ruby
Pharaoh2 has joined #ruby
zcreative has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
Takle has quit [Remote host closed the connection]
Tomasso has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
xenomorph is now known as {xenomorph}
prometh has joined #ruby
{xenomorph} is now known as xenomorph
<bradland>
kl__: pushing to master doesn't require bumping the version number. i'm guessing here, but are you mixing the requirement to bump the gem version and getting gem updates by using `gem update`?
phantomtiger has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
<prometh>
if i do `bundle exec rake sunspot:solr:start`, what would that look like with a `ps aux` ?
<prometh>
also, how do i stop that daemon?
slawrence00 has joined #ruby
<sevenseacat>
rake sunspot:solr:stop
<prometh>
thanks :)
<sevenseacat>
it'll be some horribly long java process
<sevenseacat>
in ps
doodlehaus has joined #ruby
livathin_ has quit [Remote host closed the connection]
<prometh>
i have another one that i don't know how to stop as well.. `bundle exec rake resque:run`
<prometh>
`:run` is a daemon while `:work` was not a daemon
<vasilakisfil>
hey guyzz/girlzz could you help me a bit? I just created a new gem but when I run pry --gem, the gem's files are not included! Only the version file (which I include anyway in gemspec)
<prometh>
sevenseacat: apparently there is a BACKGROUND env var
B1n4r10 has joined #ruby
<grn>
How can I change a method's return value for the purpose of testing? I've been using rr for this but since it's deprecated I'd like not to depend on it and any other gems (I'm using minitest).
<brocktimus>
grn: stub?
hamakn has joined #ruby
whoisjake has joined #ruby
<pontiki>
vasilakisfil: it might be something to do with the namespacing going on? idk, be pry --gem works for me
<Pharaoh2>
DaniG2k, I would like to not iterate over the string twice
<DaniG2k>
ah gotcha
agrinb has quit [Ping timeout: 265 seconds]
nemesit|znc has quit [Quit: quit]
arya_ching has joined #ruby
thsig_ has quit [Ping timeout: 256 seconds]
<pontiki>
str.scan(/.*\n?/)[0...-1]
iamjarvo has joined #ruby
nemesit|znc has joined #ruby
<prometh>
`rails server --daemon` doesn't appear to work
<prometh>
when i do `rails server` after, it works
tobago has quit [Remote host closed the connection]
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<prometh>
must i do `--daemon=yes` or something?
<Pharaoh2>
pontiki: that works :). However could it be done without the cost of regex...? I am going to run it on 100s of MB of strings
<pontiki>
i doubt it
<jhass>
prometh: so you're in dev env. What's your issue? Don't want to keep multiple terminals open?
<pontiki>
do the lines vary in length?
tagrudev has quit [Remote host closed the connection]
Flcn has quit [Ping timeout: 265 seconds]
<Pharaoh2>
yep, they can be from a few bytes all the way to a few 100 MBs
<prometh>
jhass: yes, and i don't need th elog.... but my issue is that --daemon doesn't even start the server
<jhass>
prometh: I'd just write a quick Procfile and use the foreman gem, but how about tmux?
<pontiki>
i mean, what would the altrenative be, other than scanning through each line character by character
klmlfl has joined #ruby
jobewan has joined #ruby
<pontiki>
you could also slurp up the files line by line; i don't think IO.read_lines does a chomp
<Pharaoh2>
of course I have to run a scan at least once, but regex have an additional cost, although I guess such a simple regex won't really have an overhead
blackmesa has quit [Ping timeout: 245 seconds]
norc has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Remote host closed the connection]
koderok has joined #ruby
<pontiki>
how often is this going to be run?
blackmesa has joined #ruby
<Pharaoh2>
very very very often
<pontiki>
like once a second?
sheepman has joined #ruby
<Pharaoh2>
probably will be the most used line of code, although I can't really confirm on how many times a second
<Pharaoh2>
I have to compare output generated by code under test with expected output
<sheepman>
jhass: ah an attempt of systemd feud wit i see :P
* sheepman
giggles and strokes his neck beard
apurcell has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland>
sheepman: i still use god.
<Pharaoh2>
also have to figure out which line was wrong, but I can stop as soon as I find the first mismatched line
<pontiki>
why do you need to split it like that, then?
<pontiki>
why not use diff?
JDiPierro has joined #ruby
<sheepman>
bradland: ok ta, was kinda hoping that was the answer as its nice and simple :)
<pontiki>
nice, really fast, written in C
<bradland>
sheepman: you have to decide whether you want to manage your daemon with your OS's tools, or as part of your application install (gems).
sigurding has quit [Quit: sigurding]
fryguy9 has joined #ruby
<sheepman>
bradland: sure
<bradland>
that's more of a philosophical question though. if you're going to use gems, god is viable.
<sheepman>
thanks
nemesit|znc has quit [Ping timeout: 265 seconds]
<pontiki>
lots of output options as well
<sheepman>
i have gems so meh
<Pharaoh2>
pontiki: the know dataset streams in from S3, doesn't really make it any faster writting it to disk and running diff
livathinos has joined #ruby
<Pharaoh2>
known*
anarang has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 264 seconds]
<bradland>
Tomasso: I did some digging and it looks like that ECONNRESET error indicates the server is the one terminating the connection.
<pontiki>
then you don't actually have a speed of processing problem; your network latency is already going to be larger
JohnBat26 has joined #ruby
<bradland>
Tomasso: it's possible that the SSL handshake is failing, which is causing the server to send the connection reset.
diegoviola has joined #ruby
<Pharaoh2>
Its intra aws, they have 10G lines... but yes, I guess the bottelneck will still be the network.... I will be using your method, thanks for that
<vasilakisfil>
pontiki I create a new gem with only 1 commit and it doesn't work either.. https://github.com/vasilakisfil/test_gem_repo I think it has to do with the path something because a third gem that I created which didn't have dashes in the name was working
apurcell has quit [Ping timeout: 244 seconds]
<bradland>
Tomasso: the SSL options available in a browser are going to differ from what's in rest-client. then you have to factor in what is available from the server. this is especially true these days because of recent vulnerabilities in OpenSSL (a common dep for server SSL implementations).
<wm3|away>
Pharaoh2: don't forget to consider latency as well as bandwidth when considering bottlenecks
razieliyo has joined #ruby
razieliyo has joined #ruby
wm3|away is now known as workmad3
Timgauthier has joined #ruby
sigurding has joined #ruby
<Pharaoh2>
aws latencies are < 0.1 ms
<Pharaoh2>
and I will be streaming huge amounts of data, latency shouldn't really be a problem
<vasilakisfil>
any ideas? ^_^
Timgauthier is now known as timgauthier_away
<bradland>
Tomasso: try using this rest-client setting: http.ssl_version = :SSLv3
<Pharaoh2>
but pontiki is right, I am just being anal about this
<workmad3>
Pharaoh2: ah, are you assuming intra-datacenter then?
<Pharaoh2>
yes
omosoj has joined #ruby
<workmad3>
Pharaoh2: yeah... and latency can still be important if you're working on TCP, as it effects the acks ;)
slester has joined #ruby
livathinos has quit [Remote host closed the connection]
<workmad3>
even when streaming
sinkensabe has quit [Remote host closed the connection]
<Pharaoh2>
true, but I am surprised that the split method doesn't have a flag to preserver the delimiter
ta_ has joined #ruby
ferr has quit [Remote host closed the connection]
<bradland>
prometh: use `rails server -d` instead
<shevy>
Pharaoh2 because it splits away at that character! :-)
Photism has joined #ruby
<prometh>
bradland: the shorthand works but the full doesn't?
<bradland>
it's not a mess. this is just my system of organization. don't judge me.
<IceDragon>
unicode?
devoldmx_ has quit [Ping timeout: 245 seconds]
<mikecmpbll>
is it possible to initialize a queue from an array?
Timgauthier has quit [Max SendQ exceeded]
<mikecmpbll>
or do i have to do q = Queue.new; array.each{|a| q << a}
dkphenom has joined #ruby
Timgauthier has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
<bradland>
IceDragon: I think it's because unicode does not use wide characters, so if the first byte is 00, it's not stored in the binary representation of the string.
<IceDragon>
sad :(
mattwildig has joined #ruby
gtrak has joined #ruby
<bradland>
it's great!
bal has quit [Quit: bal]
snath has quit [Ping timeout: 255 seconds]
<bradland>
that's why UTF-8 and ASCII are compatible for any code point beginning in 00
<IceDragon>
I set the Encoding default_internal and default_external to UTF-8 and just forget about it most times
Soda has joined #ruby
<bradland>
if it used wide characters, UTF-8 files would be much larger.
zcreative has quit [Quit: (null)]
<workmad3>
bradland: you mean like UTF-16 or UTF-32 :P
<bradland>
exactly like UTF-16, UTF-16LE and friends
<bradland>
fuckers
<bradland>
that's Excel's default encoding, which makes things loads of fun
<workmad3>
bradland: although it depends exactly on what the file contents are tbh
<shevy>
lol
<shevy>
<bradland> i quit
<shevy>
<bradland> >> "\
<shevy>
^^^ you quit man!!!
emirozer has joined #ruby
<bradland>
since Ruby started handling encodings properly, it's a lot less hassle
<bradland>
i did, but it was only temporary ;)
<shevy>
yes! now go and use encoding with the bot!
<workmad3>
bradland: UTF-8 is the smallest when you're dealing primarily with codepoints < 127... if you have a majority of codepoints above that, you could easily find UTF-16 is better :)
bronson has joined #ruby
<bradland>
i hate bit twiddling
Timgauthier has quit [Max SendQ exceeded]
dkphenom has quit [Ping timeout: 255 seconds]
<bradland>
well, not hate, but i made it through the first couple of rounds of the cryptopals challenges and decided that i had enough time spent dealing with the raw bytes that make up this stuff
elfuego has joined #ruby
Zai00 has quit [Quit: Zai00]
<workmad3>
bradland: the next bit of fun would be to create an 8-bit clean unicode encoding ;)
Timgauthier has joined #ruby
<bradland>
chances of me succeeding at that: <0%
ahem has quit [Read error: No route to host]
<bradland>
lol
<bradland>
anyone else here do the cryptopals challenges in ruby?
<workmad3>
no, not done the cryptopals challenges
<bradland>
I read this line of the challenge specification and almost lost it: "Always operate on raw bytes, never on encoded strings. Only use hex and base64 for pretty-printing."
<bradland>
hey ruby, don't encode these strings!
aganov has quit [Quit: Leaving]
<bradland>
ruby: @_@
<elfuego>
Hey i’m new to ruby. But i’m trying to run the following command. bundle exec pumactl -p 40430 stop, but I keep getting this error: bundler: command not found: pumactl
<elfuego>
Install missing gem executables with `bundle install`
<workmad3>
bradland: ruby -E BINARY:BINARY
<bradland>
elfuego: are you familiar with bundler?
ahem has joined #ruby
crueber has joined #ruby
<bradland>
workmad3: iiiiiiinterresting
emirozer has quit [Client Quit]
<elfuego>
bradland: nope, I just started using it today
<bradland>
bundler is a dependency manager that you'll encounter a lot
<workmad3>
bradland: sets the default external and internal encoding to BINARY (a.k.a. ASCII-8BIT or 'raw bytes')
gtrak has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 244 seconds]
Timgauthier has quit [Max SendQ exceeded]
<bhaak>
workmad3: google UTF-5, UTF-6, UTF-7
<bradland>
could/should have used that
diegoviola has quit [Ping timeout: 255 seconds]
<workmad3>
bradland: it's actually more difficult to only operate on raw bytes in python... they go and force all internal strings to UTF-8 over there :)
philwantsfish has joined #ruby
Timgauthier has joined #ruby
razieliyo has quit [Remote host closed the connection]
<workmad3>
bhaak: aww, I wanted bradland to come up with one ;)
DonOtreply has joined #ruby
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
iGabriel has quit []
<workmad3>
bhaak: but now you mention them, I have this great idea for UTF-1
<bradland>
UTF-5!? (╯°□°)╯︵ ┻━┻
razieliyo has quit [Remote host closed the connection]
<apeiros>
I really wonder about the use cases for utf-5
<bradland>
spoiler alert, if you're doing cryptopals, don't click that
B1n4r10 has joined #ruby
<bradland>
although it's not really a solution, just useful for the approach i used
<workmad3>
bhaak: where each unicode codepoint is represented by a series of 1s of length == the codepoint's value
<apeiros>
utf-7 makes sense with some antiquated software/equipment
<workmad3>
and is separated by a null byte
devoldmx_ has joined #ruby
<bhaak>
workmad3: but you need to name it differently. utf-1 is already something else
<workmad3>
bhaak: drats :D
<bradland>
i suspect Radiohead were involved in the creation of some of these
Ankhers` has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bhaak>
apeiros: utf-5 was one of the proposed encodings for non-ascii domain names
jaequery has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
<jhass>
yesterday I learned: MySQLs utf8 encoding isn't utf8
Timgauthier has joined #ruby
<elfuego>
bradland: I saw the problem. I bundle install inside another terminal where I was running the puma service, apparently I have to bundle install inside each terminal before using a package, or atleast thats how it is on my machine now.
jaequery_ has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
<jhass>
elfuego: are you using RVM or something like that? sounds like you have activated different environments there
ndrei has joined #ruby
Takle has quit [Remote host closed the connection]
<elfuego>
yes jhass i’m using rvm
Pharaoh2 has joined #ruby
Xeago_ has joined #ruby
<jhass>
compare rvm current on both terminals
larissa has quit [Ping timeout: 252 seconds]
<apeiros>
jhass: wott?
devoldmx_ has quit [Ping timeout: 265 seconds]
<jhass>
apeiros: can only handle 3 byte chars
<apeiros>
ohlol
<jhass>
if you want the full 4 bytes use utf8mb4
<jhass>
and have your index keys explode since they can only be 767 bytes
<apeiros>
pg?
<jhass>
yeah
jaequery_ has quit [Client Quit]
<jhass>
got to support both for diaspora unfortunately
kiyote23 has joined #ruby
<apeiros>
index keys sounds fine. useless if your index data is large.
jaequery has quit [Ping timeout: 255 seconds]
rkalfane has joined #ruby
<apeiros>
index' main duty is to segment well
<jhass>
767 bytes on utf8mb4 means 190 characters max
Timgauthier has quit [Max SendQ exceeded]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
unless you have text data, which would probably need a different index anyway, then more than a couple of bytes for the index sounds wrong. but maybe I just haven't seen the use cases yet.
Xeago has quit [Ping timeout: 244 seconds]
<apeiros>
text as in stuff where you want to do fulltext search
Timgauthier has joined #ruby
<jhass>
we have one for URLs for caching OpenGraph data for example
<vasilakisfil>
pontiki I found the "issue".. I had to explicitly require 'rubycas/server/memory' from pry --gem. I thought pry would do that for me :/]
ponga has quit [Quit: Leaving...]
<apeiros>
yeah, there's no point for the index to be too long. unless your urls still don't segment until the 190'th character
<apeiros>
does mysql support function indexes?
<jhass>
no idea
Aswebb_ has quit [Remote host closed the connection]
<jhass>
didn't dig too much into all that myself
<jhass>
and don't really want to for mysql
Hobogrammer has joined #ruby
<apeiros>
heh, same
<apeiros>
I haven't touched mysql ever since php
<jhass>
:D
<apeiros>
though, one thing they do better than any other db I've seen so far: you can have encodings per column.
Timgauthier has quit [Max SendQ exceeded]
<apeiros>
you'd think that's not too difficult, but pg & oracle both don't support that
devoldmx_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
did you see a valid usecase for having heterogeneous encodings in a DB yet?
uri_ has joined #ruby
Flcn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<apeiros>
yupp
Timgauthier has joined #ruby
<apeiros>
but don't ask :-p
fabrice31 has joined #ruby
<jhass>
but... :P
<pontiki>
elder gods time
<apeiros>
I'd handle that case with binary columns in pg
<apeiros>
and coercing on the client side
Takle has joined #ruby
<apeiros>
since we didn't have to search that data on the server
<apeiros>
and if we'd have had to search it - function index might help
<apeiros>
pontiki: elder gods? a game?
felipedvorak has quit [Ping timeout: 264 seconds]
<apeiros>
champanger time here :D
<apeiros>
champagner
<apeiros>
speling
<jhass>
mh, and you had to preserve the encoding? normalizing to UTF-8 is a non-option?
sambao21 has quit [Quit: Computer has gone to sleep.]
fabrice31 has quit [Read error: Connection reset by peer]
<apeiros>
correct
Timgauthier has quit [Max SendQ exceeded]
<apeiros>
either preserve or re-encode all the time
<workmad3>
apeiros: was it that you needed to preserve the encoding, or you needed to preserve a sorting collation?
<apeiros>
so not coercing to utf-8 was mostly a performance thing
sniperh4x0r has joined #ruby
<workmad3>
hmm... interesting
<apeiros>
that said… that's ~10y ago. maybe today performance wouldn't even matter and making handling easier would be the more important factor.
<workmad3>
interfacing with a legacy system? :)
<jhass>
I feel like I'd gone the re-encode all the time route, though I'm still kind of inexperienced tbh ;)
klmlfl has quit [Remote host closed the connection]
icebourg has joined #ruby
<apeiros>
workmad3: *almost* precisely. make it "systems".
<workmad3>
apeiros: :D
klmlfl has joined #ruby
Timgauthier has joined #ruby
<sniperh4x0r>
where can i do actual rails work? is there a website that can make it easy for me to find work? I need external work.
<apeiros>
but seriously, stop asking. it hurts me to remember that stuff :-S
<shevy>
did you not use a lot of php apeiros
<apeiros>
sniperh4x0r: I think there's a couple of rails related job boards. google should help.
Aswebb_ has joined #ruby
<apeiros>
shevy: yes, I coded php for ~6y I think. not a time I want to remember either.
<shevy>
:D
<apeiros>
I started when php couldn't chain method calls.
<workmad3>
apeiros: heh :) sounds like me recollecting my days doing Symbian development...
kiyote23 has quit [Remote host closed the connection]
mattwildig has left #ruby [#ruby]
Flcn has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
<apeiros>
$foo->bar()->baz() # <-- syntax error
windowlicker has joined #ruby
sniperh4x0r has quit [Client Quit]
<workmad3>
apeiros: stop dirtying the channel :P
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Ankhers` is now known as Ankhers
devoldmx_ has quit [Remote host closed the connection]
snath has joined #ruby
* apeiros
poops php and vomits mysql
rbennacer has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
<apeiros>
workmad3: symbian? you developed for phones on symbian?
gaboesquivel has joined #ruby
Cache_Money has joined #ruby
Timgauthier has joined #ruby
<workmad3>
apeiros: yup
dumdedum has quit [Quit: foo]
mjuszczak has joined #ruby
<workmad3>
apeiros: that was my first job out of uni, for 18 months (right up to the point symbian died)
<apeiros>
workmad3: collation is independent of encoding. but I guess that's a nice and proper use-case of column specific encoding/collation data. e.g. having values in region specific columns, translated and with proper collation
<apeiros>
(for the uninitiated: collations determine how text is sorted, e.g. whether ä, â or a comes first)
Tomasso has quit [Ping timeout: 246 seconds]
<apeiros>
workmad3: I'd assume that was interesting?
<workmad3>
you mean ä, â, A or a comes first, right? :)
diegoviola has joined #ruby
<apeiros>
no, I meant what I wrote :)
<workmad3>
apeiros: sure... if you happen to like crippled C++...
<apeiros>
but granted, with ascii collation, it'd even confuse lower- & uppercase letters.
kiyote23 has joined #ruby
<apeiros>
that said, collation alone is IMO insufficient for proper sorting. see natural sort.
<apeiros>
(that's one dot on the todo of my orm/webframework - proper sorting, both client- & serverside)
<workmad3>
tbh, I've never looked too heavily at what collations specify and how they're implemented
Timgauthier has quit [Max SendQ exceeded]
<workmad3>
I enjoy the bits of sanity left after symbian...
<apeiros>
they're basically a mapping to a sorting index
razieliyo has joined #ruby
razieliyo has joined #ruby
<apeiros>
i.e. a -> 1, ä -> 2, A -> 50, …
jusmyth has joined #ruby
Cache_Money has quit [Client Quit]
jusmyth has quit [Client Quit]
Timgauthier has joined #ruby
<apeiros>
how something using a collation is implemented - no idea. given that with 400k characters, and a couple of dozen collations, just keeping all collations in memory would probably be expensive.
<apeiros>
I'd assume a good implementation performs a lazy loading. it might also be that most collations only care about a tiny fraction of all unicode chars. e.g. latin collations probably only care about ~60 chars.
DonOtreply has quit [Quit: DonOtreply]
<apeiros>
omosoj: the first case would require you to define the method in the String class.
<apeiros>
omosoj: also it'd require you to first turn the string into a Time or DateTime
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
apeiros, i see (it's already a Time or DateTime object, i made a mistake there)
<omosoj>
changing those classes is generally not advised, right?
livathinos has joined #ruby
<apeiros>
omosoj: how do you mean?
<apeiros>
changing as in "add methods"?
Timgauthier has quit [Max SendQ exceeded]
<omosoj>
yes
livathinos has quit [Client Quit]
<apeiros>
yes, it's generally a bad idea.
<omosoj>
k, thanks
<apeiros>
but google for "ruby refinements"
Timgauthier has joined #ruby
<apeiros>
I'm not yet sure whether I'd recommend using them, but they're the tool to monkey patch core classes without harm
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
ok. i'm a relative newb so i'll stick with the simple stuff and offer to change it on code review
DadoCe has joined #ruby
<pontiki>
better to be explicit than tricky
treehug88 has joined #ruby
jefus_ has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
nickjj has joined #ruby
sambao21 has joined #ruby
Timgauthier has joined #ruby
DonOtreply has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
chrishough has joined #ruby
DadoCe has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 250 seconds]
jefus has quit [Ping timeout: 264 seconds]
razieliyo has quit [Remote host closed the connection]
<omosoj>
pontiki, meaning i should stay out of those classes and just create a new method?
Timgauthier has quit [Max SendQ exceeded]
SilkFox_ has joined #ruby
dangerousdave has joined #ruby
Timgauthier has joined #ruby
<vasilakisfil>
if I have this definition in bundler gem 'rubycas-server-memory', :git => 'https://github.com/vasilakisfil/rubycas-server-memory.git', require: 'rubycas/server/memory' and run bundle exec {command here} shouldn't rubycas-server-memory be required using require 'rubycas/server/memory' ?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
vasilakisfil: nope
zarubin has joined #ruby
<jhass>
bundle exec just executes Bundler.setup, not Bundler.require
hamakn has quit [Remote host closed the connection]
ptrrr has joined #ruby
iamninja has joined #ruby
kiyote23 has quit [Remote host closed the connection]
roolo_ has quit [Remote host closed the connection]
mattmcclure has joined #ruby
roolo has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
kiyote23 has joined #ruby
<vasilakisfil>
jhass I have a gem which needs rubycas-server-memory in :test group and rubycas-server-activerecord in :production group.. what should I do to automatically get this data from Gemfile ?
gtrak has quit [Ping timeout: 252 seconds]
avril14th has quit [Remote host closed the connection]
mattmcclure has quit [Client Quit]
AlSquirrel has joined #ruby
<jhass>
a gem?
Timgauthier has quit [Max SendQ exceeded]
SilkFox_ has quit [Ping timeout: 255 seconds]
AlSquire has quit [Read error: Connection reset by peer]
Skelz0r_ has quit [Ping timeout: 265 seconds]
<jhass>
Gemfiles won't be read by Rubygems
brb3 has joined #ruby
<jhass>
so they won't be respected when your gem is installed
Pharaoh2 has joined #ruby
<vasilakisfil>
ok.. if I move this data to gemspec's add_development_dependency and add_dependency respectively would that work ?
Skelz0r has joined #ruby
Timgauthier has joined #ruby
iGabriel has joined #ruby
<jhass>
neither of those will automatically require anything
<vasilakisfil>
ah ok
<vasilakisfil>
so I will explicitly require the test sub-gem (rubyucas-server-memory) in tests only
baroquebobcat has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
<jhass>
if that doesn't conflict with the -activerecord, that's the right plan, yes
Pharaoh2 has quit [Client Quit]
Faiqus has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
<vasilakisfil>
yes the idea is that in tests you need the memory bogus gem but when you use the super gem you can include any other subgem you like to store your data.. redis,activerecord,mongodb etch
Timgauthier has quit [Max SendQ exceeded]
Timgauthier has joined #ruby
hiyosi has joined #ruby
sinkensabe has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
<iGabriel>
Are there guides for how to use Ruby with PuTTy for absolute beginners?
iamjarvo has joined #ruby
<jhass>
open putty, enter ruby ?
dpy has quit [Ping timeout: 252 seconds]
apeiros__ has joined #ruby
<iGabriel>
haha
<iGabriel>
i know nothing, so everything helps. thanks
<jhass>
then why do you want to use ruby over putty?
mjuszczak has quit []
<jhass>
wasn't that a SSH and telnet client?
<iGabriel>
yes
bweston92 has quit [Remote host closed the connection]
<iGabriel>
isnt that how i am supposed to communicate on my web host?
shredding has quit [Quit: shredding]
_maes_ has joined #ruby
<tekk>
hey guys, is there a rails chan? or is here fine/
Timgauthier has quit [Max SendQ exceeded]
<canton7>
#rubyonrails
apeiros has quit [Ping timeout: 255 seconds]
josephnd1nton has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
Timgauthier has joined #ruby
mikecmpbll has quit [Quit: ciao.]
greenbagels has joined #ruby
<wasamasa>
iGabriel: nope
<wasamasa>
iGabriel: you're not supposed to do it that way
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<iGabriel>
could you suggest where to look so i can learn the proper way? hahaha
pdoherty has quit [Remote host closed the connection]
defrang has quit [Quit: defrang]
<wasamasa>
you set up a proper development environment resembling the environment where you deploy your code to, work on it, deploy code
pdoherty has joined #ruby
<wasamasa>
that's it in a nutshell
<iGabriel>
i just want to setup self-starter
Crazy_Atheist has joined #ruby
Faiqus_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Timgauthier has quit [Max SendQ exceeded]
terlar has quit [Ping timeout: 245 seconds]
josephnd1nton has quit [Ping timeout: 240 seconds]
Timgauthier has joined #ruby
hmsimha has joined #ruby
sambao21 has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
Faiqus has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
Timgauthier has joined #ruby
charliesome has joined #ruby
Takle has joined #ruby
Grumelo has joined #ruby
sargas has joined #ruby
joonty has quit [Quit: joonty]
sargas has quit [Changing host]
sargas has joined #ruby
gtrak has joined #ruby
<omosoj>
i want to iterate through and array of strings, and if i find a particular value, to change it. arr.each {|x| if x == "blah", x = "blah"; end} doesn't work
russt has quit [Ping timeout: 264 seconds]
Hijiri has quit [Ping timeout: 244 seconds]
zarubin has joined #ruby
deric_skibotn has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
jamgood96 has joined #ruby
kenneth has joined #ruby
antgel has joined #ruby
Timgauthier has joined #ruby
brocktimus has quit [Ping timeout: 272 seconds]
<omosoj>
okay - the map method does that
<havenwood>
omosoj: how would you know it didn't work, since x is still "blah"? :P
<jamgood96>
I'm having a heck of a time using an Upstart script for Unicorn AND being able to properly handle a USR2 signal. Does anyone have experience?
<havenwood>
omosoj: but yeah, there's #map! too
<eam>
how do I incorporate gnu autoconf into my ruby extension?
Faiqus has joined #ruby
<eam>
all I see in gems are bad ad-hoc oneoffs for platform detection
<omosoj>
havenwood, lol you're right, but the words were different in what i'm writing
GaryOak_ has joined #ruby
<jhass>
omosoj: or maybe arr[arr.index('blah')] = 'blub' ?
zarubin has quit [Remote host closed the connection]
<omosoj>
but with map i'm finding that if i don't have an else condition assigning x to itself, the value turns to nil
chipotle has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
Faiqus_ has quit [Ping timeout: 245 seconds]
<omosoj>
jhass, hmmm, i think that actually works better for me here, thanks
<jhass>
the map should look like arr.map! {|item| item == 'blah' ? 'blub' : item }
<jhass>
omosoj: only does a single item though
Timgauthier has quit [Client Quit]
<omosoj>
ok
bricker has joined #ruby
pdoherty has joined #ruby
tchaudhry has joined #ruby
Grumelo has quit [Ping timeout: 245 seconds]
pietr0 has joined #ruby
mleung has joined #ruby
russt has joined #ruby
tchaudhry is now known as tariqc
Jackneill has joined #ruby
sinkensabe has joined #ruby
conniemj has joined #ruby
<gregf_>
omosoj: before you learn a map you can learn how to write a for :). like so, for str in %w{foo bar baz} do; print str == "bar" ? "blah" : str;end
<tariqc>
I think sDotZ is the coolest Ruby developer ever!!!!!!!!!!!!!!!
apurcell has joined #ruby
pushpak has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<jhass>
gregf_: I don't think I agree
apeiros__ has quit [Read error: Connection reset by peer]
<jhass>
for is not really idiomatic anymore
Flcn has joined #ruby
<jhass>
and basically a syntax rewrite to each anyway
<omosoj>
yeah i heard you shouldn't use for, dunno
sinkensabe has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
apurcell has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
ldnunes has quit [Ping timeout: 264 seconds]
Flcn has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
devoldmx_ has joined #ruby
Takle has joined #ruby
Porpado has joined #ruby
<gregf_>
omosoj: theres far too many ways to a specific task . so in essence a map is still a loop. what jhass was saying was the above 'for' is equivalent to "%w{foo bar baz}.each { |str| print str == "bar" ? "blah" : str; }
JDiPierro has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Asher has quit [Client Quit]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
Asher has joined #ruby
msgodf has quit [Ping timeout: 245 seconds]
qba73 has quit []
dangerousdave has joined #ruby
asmodlol has joined #ruby
<eam>
no thoughts on leveraging gnu autoconf in ruby extensions?
pengin has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
devoldmx_ has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
ilvtxt has quit [Read error: Connection reset by peer]
jzigmund_ has joined #ruby
lsmola_ has joined #ruby
Rollabunna has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
ziyadb has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<GaryOak_>
I've been coding in python and I really like how it's method calls from external packages are self documenting, is there a way to do this in Ruby?
<omosoj>
gregf_, i see
qulo has quit [Remote host closed the connection]
<arrubin>
GaryOak_: What do you mean?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ccooke>
GaryOak_: Could you give us an example of the python behaviour you mean?
Aswebb_ has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
<GaryOak_>
arrubin: like in python you do an import string, you have to write string.upper, so you know where it's from
Aswebb_ has joined #ruby
jzigmund has quit [Read error: Connection reset by peer]
<gregf_>
1) arr = %w{foo bar baz}; arr.map! { |str| str.gsub("bar","quux") }; 2) arr = %w{foo bar baz};p arr.inject(""){ |str,v| str+= (str.empty? ? "" : "-")+v }.gsub("bar","quux").split("-") <== you could go on and on(but ofcourse theres the best way)
bronson has quit [Ping timeout: 264 seconds]
oleo is now known as Guest76643
oleo__ has joined #ruby
rkalfane has joined #ruby
lsmola has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
<arrubin>
GaryOak_: As long as you are using classes and modules in required files, which you should, I cannot see how this would be an issue.
<ccooke>
GaryOak_: That's not a universal in Python. If you say "from lib import *" you get all the methods in the default namespace, without accessing them that way
<ccooke>
GaryOak_: You *could* avoid it in Ruby too, but just as in python the usual way is to namespace functionality in modules and classes
<GaryOak_>
ccooke: yeah, I think it's just python standard convention not to do that so that you can document where method calls are coming from
<GaryOak_>
ccooke: ok gotcha
<ccooke>
GaryOak_: The usual syntax would be Module.method (or sometimes Deeper::Module.method)
<jhass>
the return value of a block is either determined by the value passed to a next call or its last expression
dblessing has joined #ruby
apurcell has joined #ruby
ghostmoth has joined #ruby
sigurding has joined #ruby
<jhass>
and you should read up on the difference between .map and .map!
<jhass>
.map(&:to_s).map(&:humanize).map! is not doing what you want
charliesome has quit [Quit: zzz]
Takle has joined #ruby
SilkFox_ has joined #ruby
recurrence has joined #ruby
pietr0 has quit [Quit: pietr0]
Kricir has joined #ruby
einarj has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
devoldmx_ has joined #ruby
<omosoj>
k, thanks
<arrubin>
GaryOak_: Can you give us an example of a line of code where you are confused?
ghr has quit [Ping timeout: 264 seconds]
mjuszczak has quit []
kenneth has joined #ruby
ddd has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
<omosoj>
jhass, besides those errors, is that why not all the conditionals ar working?
Earthnail has joined #ruby
LouisRoR has quit [Ping timeout: 265 seconds]
<jhass>
they are working
<jhass>
you just don't do anything with the expressions value
<Earthnail>
I have a 128bit unsigned integer that I want to send over the network via ZeroMQ. In ruby, this is stored in a bignum. How do I create a 128bit byte array (16 bytes byte array) out of that number? I assume Array.pack is my friend, but I can't figure it out.
<omosoj>
it's passed to another method that creates a csv
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 244 seconds]
<omosoj>
if i put 2 of hte conditionals, it works, if i put 5, only 1 works. it's werid
Grumelo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
devoldmx_ has quit [Ping timeout: 244 seconds]
lsmola_ has joined #ruby
<jhass>
omosoj: pay closer attention to which one of those works
<jhass>
I bet it's always the last one
x1337807x has joined #ruby
rbennacer has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Tricon has joined #ruby
x1337807x has joined #ruby
<omosoj>
yeah, you're right. but if i only do 2, both of them work
zB0hs has joined #ruby
rbennacer has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
<GaryOak_>
arrubin: I think it's just due to poor naming
<jhass>
I doubt that
devoldmx_ has joined #ruby
dling has quit []
x1337807x has joined #ruby
<omosoj>
hm, k you're right lol
slester has quit [Ping timeout: 264 seconds]
max96at is now known as max96at|off
rbennacer has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
<jhass>
omosoj: ping me if you have a working version and I'll show you a nicer one ;P
econerd4ever has joined #ruby
mjuszczak has quit []
msgodf has joined #ruby
slester has joined #ruby
mjuszczak has joined #ruby
JDiPierro has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
sigurding has quit [Quit: sigurding]
tuelz has joined #ruby
<kl__>
pwd
puzzlr has joined #ruby
<kl__>
ok, this isn't a zsh prompt
s00pcan has quit [Remote host closed the connection]
<gregf_>
GaryOak_: in python its separate directories for namespaces, in ruby its modules
elaptics is now known as elaptics`away
<gregf_>
like so, this in python: from A.B import c;print c.C(10,20).to_str();
<puzzlr>
..
max96at|off is now known as max96at
<gregf_>
would be this in ruby: module A; module B; class C; def self.foo; puts "Foo!";end; def bar; puts "Bar";end;end;end;end;A::B::C.new().bar;A::B::C::foo()
<tuelz>
I'm writing a short blog post about creating a slim preprocessor gem for a new framework and some guy in here helped me out a few weeks ago, will the real slim shady please stand up?
<tuelz>
I want to give you some credit :)
Tricon has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
<tuelz>
the accused looked into the temple source code and found the correct way to pass text to the engine as opposed to an entire file
sambao21 has quit [Quit: Computer has gone to sleep.]
<yxhuvud>
Earthnail: certain you don't want it as a string? "%08x" % 122345
mjuszczak has quit [Client Quit]
codeFiend is now known as aeon_t
<Earthnail>
yxhuvud: maybe I do. Just read that strings are actually stored as byte-sequences. So yeah, a string of 16 characters would be good
defrang has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
defrang has joined #ruby
shellfu is now known as shellfu_brb
larissa has joined #ruby
<dopie>
jhass, is ruby and ror gangster
<dopie>
:)
ghostmoth has quit [Quit: ghostmoth]
<Earthnail>
IceDragon: well, I use zeromq to send data between a Ruby client and a C++ "server" (simple request-response pattern). In ZeroMQ, you need to think in C-level terms. I want to send one 128bit hash to the C++ server. It will do some heavy computation, and return a couple of 128bit hashes. Since they are 128bit, they can easily be represented by numbers, so I thought I'd store them in a bignum, but that may be the des
<Earthnail>
ign flaw.
chipotle has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Earthnail>
IceDragon: on the C++ side, I simply declared a 128bit datatype, problem solved.
devoldm__ has joined #ruby
_1_JLMAESTRE has joined #ruby
<IceDragon>
Earthnail: so, your working with bits, not bytes...
<_1_JLMAESTRE>
HELLO
<IceDragon>
well, thats complicated
<jhass>
_1_JLMAESTRE: your keyboard is broken
nrcpts has joined #ruby
<jhass>
it forgot lowercase characters
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Earthnail>
IceDragon: ^^. Maybe I'm overcomplicating things. But really, I just need to send 128bit hashes.
<IceDragon>
well 128 bits is 16 bytes
<Earthnail>
yup
x1337807x has quit [Ping timeout: 252 seconds]
_1_JLMAESTRE has quit [Remote host closed the connection]
<IceDragon>
but you need to change the bits to little endian... aren't endianess applied only to bytes or am I missing something?
GaryOak_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
devoldmx_ has quit [Ping timeout: 256 seconds]
<Earthnail>
no, you are right, endianess is applied to bytes
<Earthnail>
Thinking about it, yeah, I can chop it into smaller numbers and convert them to little endian separately, that works of course.
josephnd1nton has joined #ruby
x1337807x has joined #ruby
defrang has quit [Quit: defrang]
<IceDragon>
Earthnail: I guess I just indirectly shedded some more light on your problem
duggiefresh has quit [Remote host closed the connection]
<Earthnail>
yup :)
duggiefresh has joined #ruby
puzzlr has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 264 seconds]
asmodlol has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Read error: No route to host]
josephnd1nton has quit [Ping timeout: 245 seconds]
<IceDragon>
Earthnail: one easy solution, is to pack the hash as a ruby string and then do reverse on it
<dopie>
using regex I have "This is Amzing Balls!#@!" how do i make it where it removes all the special characters which are not letters or words and do "this-is-awesome
<dopie>
"
<Earthnail>
that's the same as number.to_s(16)
<dopie>
i mean
<dopie>
this-is-amazing-balls
<Earthnail>
Okay I think I have to think a little harder about my little vs big endian problem, maybe the problem is not there at all and I'm trying to solve a problem that doesn't exist
Aswebb_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
davidhq has quit [Client Quit]
<fryguy9>
that corssword thing is cool
<fryguy9>
*crossword
DonOtreply has joined #ruby
kiki_lamb has quit [Remote host closed the connection]
reset has joined #ruby
djbkd has joined #ruby
<dopie>
gregf, amazing balls yet very headachy to look at
d10n-work has joined #ruby
ndrei has joined #ruby
<jhass>
hanmac: ^ you got a new competitor
towski_ has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
leafybasil has joined #ruby
gomikemike has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
<bradland>
fryguy9: if your regex is simple, that JS visualizer will work, but you gotta be really careful using tools built on non-ruby regex engines.
lmickh has quit [Remote host closed the connection]
<bradland>
man, that sentence doesn't make any sense
<max96at>
the crossword one seems to use some non-ruby one as well
recurrence has quit [Quit: recurrence]
<bradland>
if your regex is simple, it probably overlaps with javascript's regex engine.
<max96at>
afaik ruby uses pcre and /+ would not be allowed in that
TrOuBleStArTeR has joined #ruby
<max96at>
javascript errors on it too
<max96at>
python seems to do fine on it though
<jhass>
ruby uses oniguruma which is close to PCRE but its own thing
<IceDragon>
rubular.com for all your regex ruby needs
duggiefresh has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
gomix has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
msgodf has quit [Remote host closed the connection]
dc_ has joined #ruby
gtrak has quit [Quit: No Ping reply in 180 seconds.]
TrOuBleStArTeR has quit [Client Quit]
Vile` has joined #ruby
<bradland>
Earthnail: interestingly, your problem isn't entirely different than some of the problems i had to solve when doing the cryptopals challengers
davedev2_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
dfinninger has joined #ruby
davedev24_ has joined #ruby
jerius has joined #ruby
sambao21 has joined #ruby
scripore has joined #ruby
pwnz0r has quit [Ping timeout: 264 seconds]
teddyp1c_ has joined #ruby
sina_ has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
rodfersou has quit [Quit: leaving]
mjuszczak has quit []
josephnd1nton has joined #ruby
rpag has joined #ruby
teddyp1cker has quit [Ping timeout: 265 seconds]
RDash has quit [Read error: Connection reset by peer]
rpag has quit [Client Quit]
RDash has joined #ruby
brooks has joined #ruby
gccostabr has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
brooks has quit [Remote host closed the connection]
RDash has quit [Changing host]
RDash has joined #ruby
oleo__ has quit [Quit: Verlassend]
qhartman has quit [Quit: Ex-Chat]
mjuszczak has joined #ruby
josephnd1nton has quit [Ping timeout: 255 seconds]
rpag has joined #ruby
Ankhers` has joined #ruby
lkba has joined #ruby
davidhq has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
kedare has quit [Quit: WeeChat 0.4.4-dev]
sevvie has quit [Ping timeout: 244 seconds]
gaboesquivel has joined #ruby
gfawcettpq1 has joined #ruby
wallerdev has joined #ruby
B1n4r10 has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Ankhers`` has joined #ruby
<aarwine>
I'm having an issue with rbenv, and bundle install --deployment during a native gem compilation. It looks like bundle is correctly installing gems to vendor/bundle but extconf.rb is doing a require on libv8 (installed earlier) and failing because the path being searched (as displayed with puts $:) does not include vendor/bundle. Is this problem documented?
pengin has quit [Remote host closed the connection]
iamjarvo has joined #ruby
gfawcettpq has quit [Ping timeout: 244 seconds]
DeanH has quit [Read error: Connection reset by peer]
pengin has joined #ruby
jenrzzz has joined #ruby
Ankhers` has quit [Ping timeout: 250 seconds]
blackope_ has joined #ruby
Kryptonical has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
oleo has joined #ruby
Kryptonical has joined #ruby
C1V0 has joined #ruby
rpag has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nickjj>
aarwine, might be an issue with rbenv specifically. i'm using bundle install --deployment without issues but ruby wasn't installed with rbenv
<tariqc>
quit
sevvie_ has joined #ruby
klmlfl_ has joined #ruby
tariqc is now known as terminat0r
terminat0r has left #ruby [#ruby]
blackope_ has quit [Client Quit]
spider-mario has joined #ruby
<aarwine>
nickjj: thanks, I'll jump down the rbenv rabbithole
pengin has quit [Ping timeout: 245 seconds]
<nickjj>
aarwine, which gem is it failing on btw?
<havenwood>
aarwine: or jump ship and chruby instead!
Ankhers`` is now known as Ankhers
davedev2_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 244 seconds]
<aarwine>
nickjj: native extension is building therubyracer; therubyracer's extconf.rb is failing on a require on libv8
baweaver has joined #ruby
klmlfl has quit [Ping timeout: 265 seconds]
davedev2_ has quit [Read error: Connection reset by peer]
<nickjj>
aarwine, ditch rubyracer imo and just install nodejs
<bradland>
fucking rubyracer
<bradland>
aarwine: is this on OS X?
econerd4ever has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 265 seconds]
davedev2_ has joined #ruby
michaeldeol has joined #ruby
<aarwine>
bradland: ubuntu; I'm guessing I'm getting mucked because this is happening in a build env, not interactively and i missed some rbenv variable
econerd4ever has joined #ruby
<nickjj>
aarwine, just get rid of rubyracer and apt install nodejs before you run your rails deploy , you'll be in good shape most likely
russt has joined #ruby
<bradland>
k, in my experience, you have to be explicit with rubyracer and v8.
<bradland>
we ended up doing exactly what nickjj suggests
nanoyak has quit [Quit: Computer has gone to sleep.]
<bradland>
we made nodejs an environment dep, and skipped the whole rubyracer mess in production
<aarwine>
nickjj: system nodejs... that has some performance implications?
Kricir has quit [Remote host closed the connection]
<bradland>
the presence of nodejs does not imply that any nodejs services must be running
<nickjj>
aarwine, it's only going to be used to precompile your rails assets, it blows the doors of rubyracer
<nickjj>
*off
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aarwine>
nickjj: hrm, I'm fresh to this project, I'll go play social butterfly for a bit
<aarwine>
thanks :)
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nickjj>
np, the version in the 14.04 repo is more than good enough btw
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland>
nickjj: if you must use rubyracer because it's not your call, you'll need to make sure libv8 installs cleanly before rubyracer
econerd4ever has quit [Ping timeout: 252 seconds]
<bradland>
this sometimes means installing v8 separately and passing —with-system-v8 to the libv8 gem instll
<aarwine>
bradland: seems like the dirty solution if I go down that path is to use rbenv gem shim to install v8 into rbenv system path instead of to vendor/bundle - I think the clean solution is to discover why vendor/bundle isn't in the path of my current compile
<aarwine>
and the tagential solution is to ditch rubyracer
x1337807x has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<nickjj>
ah, good to know in the 0.0001% chance i wouldn't use nodejs
scripore has joined #ruby
<bradland>
woops, sry nickjj. meant to attn aarwine on those
<aarwine>
nickjj: hehe, I'm troubleshooting my fresh automated process, but i'll take a look
<bradland>
we use this because i'm not smart enough to understand chef/puppet, and i built our automation stuff out before ansible was on my radar: https://github.com/sprinkle-tool/sprinkle
<bradland>
it's ruby
B1n4r10 has joined #ruby
commmmodo has joined #ruby
recurrence has quit [Quit: recurrence]
ddd has quit [Quit: leaving]
razieliyo has quit [Quit: Saliendo]
devoldm__ has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
redbaritone has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mgroup1 has joined #ruby
redbaritone has quit [Client Quit]
<mgroup1>
GUIDO VAN ROSSUM braced himself on the bed and pushed his head past the quivering spinchter of LINUS TORVALDS’s gaping asshole. She moaned deeply as she felt the massive intruder fill her ass like it had never been filled before. GUIDO VAN ROSSUM reached down and grabbed the large bottle of lube and squirted a generous amount along the shaft. He pulled out with a loud “pop” and coated the head and LINUS TORVALDS’s ass ...
<mgroup1>
... with the slippery liquid. He quickly pushed back in and felt the going a bit easier with the aide of the lube, but her anal canal was still vice-tight. “Fuck it” he muttered to himself and pushed more of his thick dong inside of her. LINUS TORVALDS could only groan, totally taken by GUIDO VAN ROSSUM’s huge cock filling every crevice of her.
<jhass>
apeiros_: ^
<mgroup1>
“Fuck, I can hardly breath,” LINUS TORVALDS thought as she fought hard to keep her self as relaxed as possible. But that was no easy feat as every nerve ending in the tight canal was on fire, riding the fine line between pain and pleasure as GUIDO VAN ROSSUM continued to stuff his fat sausage inside of her. Joan lifted her head slightly and grabbed LINUS TORVALDS’s large tit and stuffed it into her mouth, causing LINUS ...
<mgroup1>
... TORVALDS to groan harder. She hooked her right leg against the back of LINUS TORVALDS’s leg and pulled her towards her in and effort to spurn LINUS TORVALDS to continue fucking her with the big fake cock. “C’mon, fuck me!” Joan shouted around a mouth full of LINUS TORVALDS’s nipple. She bit down hard on the sensitive nip and caused LINUS TORVALDS to bury the big dong deep inside of her throbbing pussy. “Fuck! ...
gccostabr has quit [Quit: See you later!]
<mgroup1>
... Yes! That’s it!” Joan yelled. The interaction of the women underneath him spurred GUIDO VAN ROSSUM’s own lust and he drove his cock deep into LINUS TORVALDS’s ass, nearly knocking the wind out of her. “Fuck - I’ve never had anything that deep before,” she thought to herself as her head began to swim from the sensations.
<mgroup1>
After a few moments, the trio had established a frenzied rhythm, with GUIDO VAN ROSSUM driving into LINUS TORVALDS as she was on the backstroke of pumping Joan. GUIDO VAN ROSSUM really wanted to slid his cock inside of LINUS TORVALDS’s hot pussy but the brace of the harness was in the way, and he didn’t want to stop her from pounding into Joan. The sounds of moans and groans and bodies smacking against each other filled ...
<mgroup1>
... the room. The harder GUIDO VAN ROSSUM fucked LINUS TORVALDS, the harder she drove into Joan. GUIDO VAN ROSSUM’s big balls swung like a wrecking ball, smashing against both ladies asses with enough force that they left large bruise spots. The sting from each slap was like fuel to a spark plug, further igniting his charge. It took a great deal of effort for him to finally make the move, but after several minutes of hard, ...
<mgroup1>
... jackhammer fucking, GUIDO VAN ROSSUM decided he needed to extract himself before he shot his load deep into LINUS TORVALDS’s bowels.
<mgroup1>
Instead of completely stopping his thrusts, GUIDO VAN ROSSUM slowly and methodically made his thrusts more and more shallow until finally only the fat head remained, the tight spinchter of LINUS TORVALDS’s ass held the neck of his cock like a vice. He gritted his teeth and quickly pulled back, his cock exiting her tight anus with a loud pop. LINUS TORVALDS screamed in relief, her ass hole gaped wide after being released. ...
<mgroup1>
... GUIDO VAN ROSSUM quickly moved into position up on the bed up behind Joan’s head and stuck his big rod between them, letting it rest the the immense cleavage of Joan’s massive tits and his big sack draped over his wife’s face. LINUS TORVALDS attacked his cock instantly, licking and sucking him clean. Joan grabbed his cock and moved her head from underneath GUIDO VAN ROSSUM’s heavy ball sac. “I want to taste that ...
<mgroup1>
... creamy asshole,” she said as she ran her tongue up and down as much as she could of the shaft. GUIDO VAN ROSSUM adjusted his position and moved back and to the side, allowing Joan to stuff as much of GUIDO VAN ROSSUM’s rigid cock in her mouth as she could. LINUS TORVALDS moved her head down the shaft and nuzzled her face into the massive expanse of his scrotum, licking and nibbling on the base of his gigantic tool.
<mgroup1>
“Yehhhhhhhh,” GUIDO VAN ROSSUM moaned as he grabbed a handful of Joan’s hair. “Lick it clean, bitch! Lick all of that nasty ass juice off my cock!” With his other hand, he grabbed LINUS TORVALDS by the back of her head and shoved her face down closer to Joan’s. “Come on, you mother fucker! I’m loving the way you’re lickin my big fuckin balls, but you need to get down there and help her clean my cock!” ...
<mgroup1>
... Hearing the raw, animalistic lust in GUIDO VAN ROSSUM’s voice made LINUS TORVALDS fuck Joan harder as she moved down GUIDO VAN ROSSUM’s shaft. She met Joan at the end of the fat dong and the two battered GUIDO VAN ROSSUM’s deep purple head with their tongues. GUIDO VAN ROSSUM slapped LINUS TORVALDS’s big ass several times, enjoying the way the large flesh shook and wobbled with each strike. “Take off that dick, ...
sambao21 has quit [Quit: Computer has gone to sleep.]
<mgroup1>
... he said gruffly as he pushed her back from Joan. “Let’s see how you like the real thing.”
<mgroup1>
LINUS TORVALDS pulled out of Joan’s sopping pussy and quickly unbuckled the straps from her waist and legs. GUIDO VAN ROSSUM laid down as Joan moved out of the way. He grabbed the base of his cock in his left hand and with his right, he reached over to Joan and pulled her closer. She immediately grabbed the monstrous tower of hot flesh and stroked it hard, pumping it with great force. LINUS TORVALDS looked at the height of ...
<Morrolan>
Well, that's a first.
<jhass>
zenspider: Mon_Ouie any of you awake?
<mgroup1>
... his cock and gasped. “Just how long is that thing? Good fucking grief - there’s now way I can get up on that thing!” GUIDO VAN ROSSUM laughed. "Come on up here," he said, motioning for her to straddle his chest. LINUS TORVALDS got up top of GUIDO VAN ROSSUM as instructed and Joan pushed his cock down towards his chest. LINUS TORVALDS quickly saw what GUIDO VAN ROSSUM was doing and adjusted herself so that she lined ...
<mgroup1>
... up his cock with her dripping pussy. She braced her hands against the headboard and pushed, forcing her body to slide back and onto the big stick.
<aarwine>
problem here is that he didn't replace the gender-specific pronouns so it's obvioulsy just a search / replace rip
<havenwood>
Mon_Ouie: \o/
mgroup1 was banned on #ruby by Mon_Ouie [*!~user@173-228-80-252.dsl.static.fusionbroadband.com]
<bradland>
as much as I enjoy some good hardcore homosexual fan fic, this is a bit ridic
mgroup1 was kicked from #ruby by Mon_Ouie [mgroup1]
sshao_ has joined #ruby
<jhass>
ty
<Morrolan>
aarwine: And here I was wondering why Van Rossum was being treated as a female :P
<bradland>
now we don't know what happens!
sshao has quit [Read error: Connection reset by peer]
<Morrolan>
Oh, no, Linus was.
Kricir has joined #ruby
<diegoviola>
Linus Torvalds is always alpha
recurrence has joined #ruby
baweaver has joined #ruby
<IceDragon>
why the fuq do I always miss the action?
<IceDragon>
I watch the channel, nothing exciting happens, I turn my back and go for a walk, and something interesting takes place
<bradland>
thank god for scrollback, amirite?
<IceDragon>
YEAH
* IceDragon
scrolls and reads
<aarwine>
I'd say you didn't miss much
<IceDragon>
smells like NSFW
<aarwine>
was nothing like that richard stallman vs emacs dev drama happening on the mailing lists
<IceDragon>
hmm, /me greps irc logs for mgroup1 and pastes to a text file to easier reading
aswen has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
look who is over there... it's Fire-Dragon-DoL
* IceDragon
is on alert
<IceDragon>
MY ARCH NEMESIS!
chipotle has joined #ruby
DonOtreply has quit [Client Quit]
DonOtreply has joined #ruby
sambao21 has joined #ruby
<shevy>
now that spam was actually a fun read
DonOtreply has quit [Client Quit]
<shevy>
a love story between two developers
rajeshchawla has quit [Remote host closed the connection]
<shevy>
matz was not mentioned nor was larry
<atmosx>
hey shevy how's life
sk87 has joined #ruby
<shevy>
atmosx dunno... I am a bit demotivated to learn
<atmosx>
shevy: how so?
<IceDragon>
shevy: grab a new language :D
cphrmky has joined #ruby
<IceDragon>
shevy: change of plans, I can't read this...
<shevy>
atmosx lots of boring calculations in technical chemistry. one has to practice to avoid making mistakes, and this is boring
<atmosx>
blah
<atmosx>
chemistry
<IceDragon>
chemistry :O
<shevy>
atmosx besides, I don't know why we can't use a computer...
<atmosx>
shevy: I'll have to study again for 2 months next year and then it's over. I won't remember the difference between a double and triple bond by 2018
nanoyak has joined #ruby
_5kg has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<atmosx>
shevy: that's what I said to my phytochemistry professor: "Why the heck should I know by heart 140 plants with contents and macroscopy while i can have more than 14 millions on my mobile phone at any time?!"
x1337807x has quit [Max SendQ exceeded]
<shevy>
in the commandline I just type mol_mass C16H12N2 and instantly have it; on paper, I have to add it up... which takes longer. usually at least 10 seconds, and I can still make a mistake. the computer makes no mistake and is faster... so hmmmm
<atmosx>
shevy: the answer was "... Can your mobile hold that many?!"
Jackneill has quit [Remote host closed the connection]
<atmosx>
lol
<atmosx>
anyway
chipotle has quit [Client Quit]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<atmosx>
shevy: exactly, once you know formula I see no point...
<atmosx>
anyway
<atmosx>
education is fucked up
<shevy>
atmosx hehe; I think the main incentive for the exams is mostly to just demonstrate that you can apply the knowledge once, afterwards most is forgotten anyway
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
<goleldar>
it can't find the method names i have extracted the code to
maletor has joined #ruby
paulfm has joined #ruby
<goleldar>
fixed the spacing
<Mon_Ouie>
That's because you're calling them before defining, and you're defining them as instance methods, not class methods
jheg has joined #ruby
zarubin has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
<bradland>
goleldar: when you have code outside of a method definition, like lines 2-7, that code is run at the time the class is defined, therefore, you cannot call methods of the class (instance methods or otherwise) until the definition is complete
einarj has joined #ruby
rbennacer has joined #ruby
<goleldar>
the idea to extract into methods was to make testing easier
<goleldar>
.. soo would you recommend putting those 2 methods into a module?
<goleldar>
if i change them to class methods it doesn't work either
<bradland>
in the context of your question, where you put them isn't as important as "when"
<bradland>
think of it like this
Faiqus_ has quit [Remote host closed the connection]
<bradland>
before your code can run, ruby must parse and build all your classes, so on line 1, you open a class definition
<bradland>
at line 2, you enter a loop
<bradland>
at line 4, you call a method
<bradland>
but that method doesn't exist yet
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<goleldar>
ahh ok got it to work
<bradland>
so you need to define both of those create_ methods before you call them
<goleldar>
updated as comment
pdoherty has joined #ruby
<goleldar>
moved them above
ghr has joined #ruby
<goleldar>
and made them class methods
<bradland>
you can update the gist as well
<bradland>
there's a link to Revisions on the right of the gist
<bradland>
so you can always get to/link to previous revisions if you need to
<bradland>
gists are trimmed down git repos
josephnd1nton has joined #ruby
<goleldar>
do you know if there is a way to view the end state of class as a string
<goleldar>
to essentially see the source code after it has been modified with theses extra methods
djbkd has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<aarwine>
bradland: I dunno if you're curious or not, but bundle install --path=vendor/bundle works and bundle install -deployment doesn't. For some reason --deployment doesn't look in vendor/bundle when requireing gems as a result of a build
yfeldblu_ has joined #ruby
djbkd has joined #ruby
phantomtiger has quit [Ping timeout: 255 seconds]
hornairs_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
econerd4ever has quit [Quit: Leaving...]
pdoherty has quit [Remote host closed the connection]
hornairs has quit [Read error: Connection reset by peer]
felipedvorak has joined #ruby
<zenspider>
rajeshchawla: what's up?
shellfu has quit [Remote host closed the connection]
<bradland>
aarwine: yeesh. that doesn't seem right
<rajeshchawla>
i have an issue trying to get racc to compile the sample grammer of calc.y...installation seemed to go properly and a racc script was generated
wolf4ood has joined #ruby
<rajeshchawla>
but the command 'racc -o calc calc.y' fails with the following error
bMalum has quit [Quit: bMalum]
<rajeshchawla>
/Users/rajeshchawla/.rvm/rubies/ruby-2.1.2/bin/racc:301:in `<class:RaccTableFile>': Use RbConfig instead of obsolete and deprecated Config.
<rajeshchawla>
/Users/rajeshchawla/.rvm/rubies/ruby-2.1.2/bin/racc:301:in `<class:RaccTableFile>': Use RbConfig instead of obsolete and deprecated Config.
<rajeshchawla>
/Users/rajeshchawla/.rvm/rubies/ruby-2.1.2/bin/racc:99:in `get_options': undefined method `map' for #<String:0x007fa22290eae0> (NoMethodError)
<rajeshchawla>
from /Users/rajeshchawla/.rvm/rubies/ruby-2.1.2/bin/racc:25:in `racc_main'
<rajeshchawla>
from /Users/rajeshchawla/.rvm/rubies/ruby-2.1.2/bin/racc:527:in `<main>'
<bradland>
rajeshchawla: please use http://pastie.org for stack traces to avoid flooding the channel