helpa has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
<crome>
understanding the difference between a lambda and a proc helps a lot when it comes to figuring out what blocks do
zachrab has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
sigurding has joined #ruby
jlast has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
sami has quit [Ping timeout: 246 seconds]
sevvie has quit [Ping timeout: 244 seconds]
jlast_ has joined #ruby
sami has joined #ruby
agrinb has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
jlast_ has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 250 seconds]
jimms has quit [Remote host closed the connection]
jimms has joined #ruby
c0m0 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
CrazyM4n has joined #ruby
nolic has joined #ruby
<Qladstone>
if the block is not saved as a lambda or proc, which is it?
<Qladstone>
crome: thanks
Guest123 has joined #ruby
jonr22 has joined #ruby
_Andres has joined #ruby
claw_ has quit [Ping timeout: 252 seconds]
lidaaa has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
<Qladstone>
anyway, that helped me
jonr22 has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
sigurding has quit [Quit: sigurding]
<lxsameer>
Qladstone: what do you mean?
CrazyM4n has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jack_rabbit_ has quit [Ping timeout: 264 seconds]
<crome>
Qladstone: a block that is passed to a method as &something or even if it doesn't expect it or a block you pass to an iterator is always a proc
<Qladstone>
Ixsameer: so I have a method that yields to a block. Is that block a Proc or Lambda? If the block was in the regular { } format without being defined
sevvie has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
<Qladstone>
yup that's what I meant. so the default state for a block is a Proc
tunaCanBruh has joined #ruby
<crome>
I wouldn't call it a default state
<Qladstone>
alright
<Qladstone>
still really fuzzy about blocks and all. learning slowly though
apeiros__ has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
<Qladstone>
thanks anyway
jack_rabbit_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
<crome>
learning ruby is fun!
<crome>
keep it up
toretore has joined #ruby
sent1nel has joined #ruby
amacou has quit [Remote host closed the connection]
RegulationD has joined #ruby
roshanavand has joined #ruby
plutonic has quit [Quit: plutonic]
tunaCanBruh has quit [Ping timeout: 250 seconds]
sameerynho has joined #ruby
Riking has quit [Ping timeout: 246 seconds]
<Qladstone>
Thanks! It's my first language
sent1nel has quit [Ping timeout: 252 seconds]
CrazyM4n has joined #ruby
<diablerie>
Hurrah.
RegulationD has quit [Ping timeout: 255 seconds]
<Qladstone>
It'll be nice if I could use it to do some real stuff though
lxsameer has quit [Ping timeout: 250 seconds]
<Qladstone>
so far it's a lot of practice and solving problems nothing useful yet, except I managed to generate an array of data to export into csv
mistermocha has quit [Remote host closed the connection]
RegulationD has joined #ruby
chinmay_dd has joined #ruby
plutonic has joined #ruby
ghr has joined #ruby
Spami has joined #ruby
<Qladstone>
for use in excel
arup_r has joined #ruby
m8 has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
codecop has joined #ruby
jlast has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
lolmaus has joined #ruby
Spami has quit [Client Quit]
RegulationD has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
dling has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Radar has joined #ruby
Radar is now known as Guest7598
CrazyM4n has quit [Quit: sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa has joined #ruby
Guest7598 is now known as Radar
sevvie has quit [Ping timeout: 245 seconds]
duncannz has quit [Read error: Connection reset by peer]
Spami has joined #ruby
<atmosx>
never gonna give you up
mikecmpbll has joined #ruby
giuseppesolinas has joined #ruby
ptrrr has joined #ruby
<atmosx>
neve gonna let you down
<atmosx>
never run around and desert you
aswen has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
sevvie has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
daed has joined #ruby
plutonic has quit [Quit: plutonic]
agrinb has quit [Ping timeout: 250 seconds]
apeiros__ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
spider-mario has joined #ruby
decoponio has quit [Quit: Leaving...]
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
Deithrian has joined #ruby
lxsameer_ has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c0m0 has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
lemur has quit [Remote host closed the connection]
chipotle_ has joined #ruby
lemur has joined #ruby
<arup_r>
wow
jlast has quit [Ping timeout: 250 seconds]
sameerynho has joined #ruby
lxsameer_ has quit [Ping timeout: 250 seconds]
chipotle has quit [Ping timeout: 256 seconds]
lordkryss has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
neanderslob has quit [Remote host closed the connection]
lxsameer_ has joined #ruby
mistermocha has joined #ruby
nolic has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
sinkensabe has joined #ruby
charliesome has quit [Quit: zzz]
Qladstone has quit [Remote host closed the connection]
<jaygen>
wow
Axy has quit [Read error: Connection reset by peer]
<jaygen>
arup_r: ruby is wow. such wow. wow
lxsameer_ has quit [Ping timeout: 255 seconds]
<daed>
ruby is pretty wow
<daed>
no denying that
sameerynho has quit [Ping timeout: 250 seconds]
<apeiros_>
wow, so much wows.
Guest123 has joined #ruby
roshanavand has joined #ruby
<daed>
"wow".split('').map(&:upcase)
roshanavand1 has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
<jaygen>
'wow'.scan(/\d/).join + 'wow' = ?
n1lo has joined #ruby
Qladstone has joined #ruby
amacou has joined #ruby
Riking has joined #ruby
<atmosx>
and I can't fight this feeling anymoooore
Pharaoh2 has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
iamninja has joined #ruby
nicolastarzia has joined #ruby
bMalum has joined #ruby
triple_b has joined #ruby
RegulationD has joined #ruby
mroach has joined #ruby
jhankins has joined #ruby
mroach has quit [Client Quit]
mroach has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
RegulationD has joined #ruby
ghr has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
lordkryss has quit [Quit: Connection closed for inactivity]
ghostpl_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 246 seconds]
mailo_ has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
ponga has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 246 seconds]
mailo has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
ponga has joined #ruby
tkuchiki has joined #ruby
Megtastique has joined #ruby
leafybasil has joined #ruby
<molavy>
8-),:-D, I found that, Sequel.identifier_input_method = :downcase
einarj has joined #ruby
<molavy>
thanks anyway
jenrzzz has quit [Ping timeout: 256 seconds]
elfuego has joined #ruby
Zai00 has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
wasamasa is now known as vms
vms is now known as wasamasa
molavy has left #ruby [#ruby]
jlast has joined #ruby
juanpablo__ has joined #ruby
nolic has quit [Remote host closed the connection]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
digifiv5e has joined #ruby
digifiv5e is now known as Guest33621
jottr_ has joined #ruby
ptrrr_ has joined #ruby
kllyy has joined #ruby
kllyy has quit [Client Quit]
jonr22 has joined #ruby
lys has quit [Quit: lys]
ptrrr has quit [Ping timeout: 256 seconds]
ptrrr_ is now known as ptrrr
jlast has quit [Ping timeout: 252 seconds]
juanpablo__ has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
jlast has joined #ruby
jack_rabbit_ has quit [Ping timeout: 244 seconds]
xiq has joined #ruby
xiq has quit [Remote host closed the connection]
ikeike443 has quit [Ping timeout: 244 seconds]
willharrison has joined #ruby
riotjones has joined #ruby
jimms has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hcnewsom has joined #ruby
havenwood has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Remote host closed the connection]
jhankins has quit [Ping timeout: 245 seconds]
speakingcode has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
leafybasil has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
leafybasil has joined #ruby
tkuchiki has quit [Remote host closed the connection]
oleo is now known as Guest63006
oleo__ has joined #ruby
arturaz has quit [Remote host closed the connection]
jottr_ has joined #ruby
pu22l3r has joined #ruby
Guest63006 has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
pu22l3r has quit [Remote host closed the connection]
athan has quit [Read error: Connection reset by peer]
vozcelik has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
athan has joined #ruby
_Andres has joined #ruby
ptrrr_ has joined #ruby
fabrice31 has joined #ruby
hamakn has quit [Ping timeout: 250 seconds]
ptrrr has quit [Ping timeout: 264 seconds]
ptrrr_ is now known as ptrrr
tunaCanBruh has joined #ruby
ghr has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
claw_ has joined #ruby
apeiros_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Remote host closed the connection]
despai has joined #ruby
leafybasil has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 252 seconds]
vozcelik has quit [Ping timeout: 245 seconds]
crack has joined #ruby
Sirupsen has joined #ruby
ogalush has joined #ruby
ogalush has left #ruby [#ruby]
ghostpl_ has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
fella6s has quit [Ping timeout: 246 seconds]
athan has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: Computer has gone to sleep.]
athan has joined #ruby
aryaching has joined #ruby
claw_ has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
QualityAddict has quit []
Trynemjoel has quit [Ping timeout: 272 seconds]
Troy^_ has joined #ruby
devoldmx_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
Spami has quit [Quit: This computer has gone to sleep]
Sawbones has joined #ruby
Troy^_ has quit [Client Quit]
jlast has joined #ruby
Trynemjoel has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
bluOxigen has joined #ruby
zachrab has joined #ruby
timonv has joined #ruby
Pharaoh2 has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 265 seconds]
aryaching has quit []
jlast has joined #ruby
rushed has joined #ruby
Channel6 has joined #ruby
timonv has quit [Client Quit]
devoldmx_ has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
zachrab has quit [Ping timeout: 252 seconds]
gkra has quit [Ping timeout: 245 seconds]
Qladstone has joined #ruby
timonv has joined #ruby
agrinb has joined #ruby
hybridark has quit [Ping timeout: 264 seconds]
_2_steph has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
timonv has quit [Client Quit]
doodleha_ has quit [Remote host closed the connection]
timonv has joined #ruby
starless has joined #ruby
hybridark has joined #ruby
dblessing has joined #ruby
centrx has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<shevy>
is there something like markdown
<shevy>
but also allows to create html tags additionally?
mroach has quit [Quit: mroach]
kiely is now known as kiely_elsewhere
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
perturbation has joined #ruby
Vivex has quit [Ping timeout: 246 seconds]
Vivex has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
hs366 has joined #ruby
<ponga>
hey shevy i see some people here have their own hosted blogs, does that cost a lot to maintain
<ponga>
i mean, fee-wise
<shevy>
no idea, never had a blog. I think you can cap the cost to a very low fee
centrx has quit [Remote host closed the connection]
<shevy>
I know of a browsergame that has a total of less than 100 users, but they manage to run 4 servers + a wiki + a forum only based on voluntary donations
mostlybadfly has quit [Quit: Connection closed for inactivity]
<ponga>
k
devoldmx_ has joined #ruby
ozialien has quit [Remote host closed the connection]
<shevy>
why isn't there a failsafe require built in? right now I seem to have to do begin; require 'foo'; rescue LoadError; end
RegulationD has joined #ruby
mitchellhenke has joined #ruby
<jhass>
ponga: depends on how you define "own hosted" really
<ponga>
jhass: my expression was very bad, its not to be own hosted, just rented hosting service with purchashed domain
<ponga>
sorry
<ponga>
i was saying 'own hosted' to differ to blog hosting services like bloggers and wordpress
<jhass>
that should be possible for ~1$/1€/month these days
<mikecmpbll>
is it better to keep your mutex#synchronize blocks small? for instance if i have to update several variables from threads, would it be optimal to wrap each assignment individually?
ghr has quit [Ping timeout: 245 seconds]
<mikecmpbll>
multiple mutexes
gr33n7007h has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
einarj has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
hs366 has quit [Quit: Leaving]
hs366 has joined #ruby
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
_2_steph has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
jottr_ has quit [Ping timeout: 245 seconds]
tus has joined #ruby
QualityAddict has joined #ruby
juanpablo__ has joined #ruby
shellfu has joined #ruby
Qladstone has quit [Remote host closed the connection]
jottr_ has joined #ruby
rkgudboy has joined #ruby
<havenwood>
mikecmpbll: Finer grained locks can be good if it frees up stuff between the lock. If it doesn't, it's just extra overhead and I'd expect it to be slower.
<havenwood>
mikecmpbll: Have an example of the code at hand?
<mikecmpbll>
sure, bear with me
rkgudboy has quit [Max SendQ exceeded]
<havenwood>
Yay, Saturn's day!
rkgudboy has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
juanpablo__ has quit [Ping timeout: 240 seconds]
<havenwood>
Apparently that's bath day for vikings.
jimms has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
<mikecmpbll>
my thinking was that if i used multiple mutexes then different threads could do the different assignments concurrently, but tbh i'm not sure how often it'll be that threads are blocking on that code so i probably won't gain any worthwhile efficiency
blackmesa has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
jlast has joined #ruby
Dopagod has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 265 seconds]
<havenwood>
mikecmpbll: On first glance, it looks like you're sharing mutable data between the Threads outside of your lock.
<mikecmpbll>
which bit
ghr has quit [Ping timeout: 255 seconds]
<havenwood>
mikecmpbll: varient_results, prediction, result, strike_rate, finish_r, and avg
<mikecmpbll>
those are thread locals
<havenwood>
ah, right
Hobogrammer has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<havenwood>
mikecmpbll: Hem. So how about three Mutexes, one for each of the vars you're synchronizing?
qba73 has quit []
<havenwood>
mikecmpbll: Looking more closely. :)
<mikecmpbll>
yeah, i think i'll do that. doubt it'll make much difference in the scheme of things because the threads are quite long-running and i don't envisage much blocking at all
<mikecmpbll>
currently predict that it takes somewhere in the order of 70 days to complete :P should be able to get it down to about 10 when i install jruby ...
<havenwood>
mikecmpbll: JRuby ALL THE THINGS! \o/
<waxjar>
depending on memory usage, you could take the mutex stuff at the end when all threads finished. so they won't step on each other's toes while processing
<waxjar>
*take the mutex stuff and do it at the end
<mikecmpbll>
waxjar: i'd still need to add the result to the array
<mikecmpbll>
with the mutex
<waxjar>
oh right, yeah i see
Takle has joined #ruby
<havenwood>
Could Queue it then dequeue at the end I suppose.
<arup_r>
>> "hello %{dear.empty?}, good morning!" % {true => ' my dear', false => ""}
<waxjar>
i didnt notice there was a loop in the indivudual threads
<mikecmpbll>
waxjar: that's certainly true.
FooMunki_ has quit [Ping timeout: 252 seconds]
<arup_r>
ohh! `dear ` is a local var
<waxjar>
that way they won't ever step on each others toes, you just have to do a little bit of extra processing at the end
devoldmx_ has quit [Remote host closed the connection]
<havenwood>
mikecmpbll: `unless variants_queue.empty?` is a nice way to `loop do; break if variants_queue.empty?` I think
<mikecmpbll>
havenwood: it'll loop forever then though :p
rushed has quit [Quit: rushed]
<havenwood>
mikecmpbll: really? maybe i need more coffee...
<mikecmpbll>
oh, or it won't loop
<mikecmpbll>
i misread what you put
<mikecmpbll>
maybe you mean while?
leat has quit [Remote host closed the connection]
FooMunki_ has joined #ruby
<havenwood>
mikecmpbll: No, you're breaking *if* it's empty.
leat has joined #ruby
<mikecmpbll>
yes.
<waxjar>
wouldn't that be a race condition in itself btw, empty? returns true, context switch, other thread pops an element off, context switch back, queue is now empty
<havenwood>
mikecmpbll: so looping, *unless* it's empty.
<mikecmpbll>
havenwood: where's the looping? (in your proposal)
rushed has joined #ruby
<havenwood>
mikecmpbll: ha, sorry I'm not awake... `until`
<mikecmpbll>
:)
<havenwood>
meant to write: until variants_queue.empty?
<mikecmpbll>
gotcha.
<havenwood>
>.>
* havenwood
goes in search of coffee.
<mikecmpbll>
waxjar: hmm, i do thread like this in some other code that we've had in production for a while, seems to work fine
<mikecmpbll>
maybe it's to do with the Queue class
olivier_bK has joined #ruby
<arup_r>
>> dear = ""; "hello %{#{dear.empty?}}, good morning!" % {true => ' my dear', false => ""}
<jm0>
ponga: just as a side project for you to keep coding, if ruby dies (which i really doubt it ever will), its getting pretty popular for big sites to use, especially after the Rails framework release :)
<blizzy>
C:/Ruby21-x64/lib/ruby/2.1.0/net/http/response.rb:357:in `finish': incorrect hea
<blizzy>
der check (Zlib::DataError)
<blizzy>
I'm using ruby v 2.1.5 on Windows 8 64 bit.
<livingstn>
Why does gem not install compass's dependencies when I use sudo but it does otherwise? if I do gem install compass, I get sass. If I do sudo gem install compass, I don't
<ponga>
thing is i started loving syntactic sugars of ruby so much
* wasamasa
is currently touching python again after a 9 month pause
<wasamasa>
yes, I do miss the lispy feel of ruby
i-blis has joined #ruby
<wasamasa>
but I'm sure I can finish this one project
doodlehaus has joined #ruby
Sawbones has quit [Remote host closed the connection]
djellemah has joined #ruby
<wasamasa>
no matter whether I need to NIH #flatten or not
wallerdev has quit [Quit: wallerdev]
djellemah has quit [Client Quit]
<ponga>
i enjoy these sugars and for other langs i have to code in verbosity
lifenoodles has quit [Ping timeout: 245 seconds]
<ponga>
but i'd definitely try out js v8
<shevy>
ponga loves java
<jm0>
ponga: agreed, that's what made me learn ruby as well. The syntax is simple, and easy to read and write :)
<jm0>
shevy: lol
<ponga>
shevy: no!!!
<ponga>
you big lier
max96at|off is now known as max96at
lifenoodles has joined #ruby
<ponga>
jm0: and im quite happy with the speed too, i built Jruby9000+GraalVM+Truffle few days ago and it was pretty good for me
DadoCe has joined #ruby
<jm0>
wasamasa: That's nice, what project are you working on at the moment??
<wasamasa>
jm0: I started writing a blog engine 9 months ago
einarj has joined #ruby
hollywood has joined #ruby
<wasamasa>
jm0: then I got an internship at a place that's using scheme and ruby
aamador has quit [Ping timeout: 246 seconds]
<ponga>
wasamasa: which you wrote in python and paused? ;p
doodlehaus has quit [Remote host closed the connection]
<wasamasa>
ponga: yup
<wasamasa>
ponga: I was a python fanboy back then
<ponga>
how about now?
<wasamasa>
I neither fanboy python nor ruby these days
<wasamasa>
after all the lisp I wrote
<hollywood>
Programming language fanboys are tiring.
<wasamasa>
it's just hard to justify
<ponga>
i never quite understood what's so wonderful about python anyway
<wasamasa>
when you have a 50 years old language that just does some things better
<ponga>
python has wonderful scientific libraries, but that seems like all of it too
<wasamasa>
ponga: this was my motivation for doing the blog in that, reusing docutils (for the ReST markup format) and pygments for syntax highlighting
<jm0>
uuuuuuiuiuiuiuiuiuiuiuiuiuiuiuiuh
<ponga>
ahhah
RegulationD has joined #ruby
<ponga>
wasamasa: what's this all about 'lisp is THE language to use for ai'
<wasamasa>
ponga: that's a misconception
<ponga>
how can a general perppose programming language be like that
<ponga>
yeah i guessed so
<ponga>
im totally writing a bot in ruby
<wasamasa>
ponga: some people mistook it being used at a place where people tried figuring out AI as an indicator that it's good for that
<ponga>
ok
<wasamasa>
ponga: and to be honest, using symbols for computation was pretty snazzy
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga>
lol
<wasamasa>
ponga: but these days it seems like fat machines and tons of data have won
<ponga>
like python style snazzy?
<wasamasa>
python doesn't even have symbols
<ponga>
it has fancy indentations
einarj has quit [Ping timeout: 250 seconds]
<ponga>
whats it called, whitespace?
<wasamasa>
significant whitespace, yes
hcnewsom has joined #ruby
<ponga>
i could totally understand that's a big thing
<wasamasa>
well, it's a perk
<ponga>
when you have a project with many people
lolmaus has quit [Quit: Konversation terminated!]
<wasamasa>
but I find it annoying that editors trip over it with auto-indent
<ponga>
but i could totally write in ruby if it were my solo project
<wasamasa>
and that you can't clean up existing code because there's no end blocks
<ponga>
but in python, yes
<ponga>
or j
<ponga>
js
lolmaus has joined #ruby
<ponga>
for big team
<wasamasa>
don't worry, I have enough gripes with ruby, too :P
<shevy>
AN UNBELIEVER
olivier_bK has quit [Ping timeout: 252 seconds]
<wasamasa>
like, the fact that its implementation was inspired by the text editor I happen to use
<ponga>
shevy you say so?
<wasamasa>
I mean, what the fuck
<ponga>
you say you go back to C
<ponga>
and dump ruby
<shevy>
ponga wasamasa is
<shevy>
(but(he(likes(lisp(indeed
<ponga>
i still agree i d not want to use ruby for team with 5+ people
* wasamasa
is using ruby with a team of 3
RegulationD has quit [Ping timeout: 246 seconds]
<ponga>
wasamasa: gud, keep it under 5
<wasamasa>
it's ok, but rails keeps me on my toes
Takle has quit [Remote host closed the connection]
RegulationD has joined #ruby
<ponga>
i never used rails
<ponga>
i liked the idea tho
<ponga>
shevy: have you used Jruby/Graal yet
<shevy>
nope
<shevy>
I'd need java for that right?
<ponga>
shevy: not regular JRE, a GraalVM
<ponga>
and set JAVA dir to it
Troy^_ has joined #ruby
<daed>
i work with several people who are trying to dive into rails
<daed>
without knowing ruby
<daed>
not sure why people insist on that
<ineb>
Dir.glob(./"*.txt") gives me an array. i only need one file. the first one. Dir.glob(./"*.txt").first then or is there another way?
<ineb>
"./*.txt"
RegulationD has quit [Ping timeout: 245 seconds]
hcnewsom has quit [Quit: hcnewsom]
elfuego has quit [Quit: elfuego]
nunayerBeezwax has joined #ruby
Sawbones has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<arup_r>
ponga: same here
<ponga>
what arup_r i spoke too many things
shellfu has quit [Ping timeout: 250 seconds]
<arup_r>
Ohh
<ponga>
and please note that shevy is a lier, i never liked java
serivich has quit [Ping timeout: 252 seconds]
* ponga
angry face
<arup_r>
~~>>> if ruby dies, i quite coding
<ponga>
ah ha
<ponga>
i'd try use Javascript or python
<ponga>
i will try
leafybasil has quit [Remote host closed the connection]
<ponga>
but if i don't fancy them, i probably quit
<nunayerBeezwax>
what is the best way to code the english statement "until condition is met twice" as a loop over an array?
<ponga>
nunayerBeezwax: same condition twice or 2 different conditions
<ponga>
ok former
<ponga>
hm
<ponga>
i never thought of that case
<ponga>
when would i want condition met twice
<livingstn>
anyone know why when I use sudo with gem install it doesn't install deps?
hcnewsom has joined #ruby
riotjones has joined #ruby
<havenwood>
livingstn: does it not install them or are their executables just no in PATH?
<havenwood>
not*
<livingstn>
havenwood it doesn't even install them
<livingstn>
I get entirely different output with sudo
Andy__ has joined #ruby
<ponga>
i wonder havenwood is different person to holly*wood
<i-blis>
nunayerBeezwax: using a flag?
<livingstn>
havenwood basically compass is broken when I use sudo
<nunayerBeezwax>
this might all be strange, but my case is a poker table, i'm doing a round of betting... the players are in an array... the action is on players_array.first... so "first_to_act = players_array.first" then "until players_array.first == first_to_act **the second time** player.play" make sense?
<livingstn>
But when I don't it installs to ~/bin and is fine
<nunayerBeezwax>
player.play, and then players_array.rotate!
<nunayerBeezwax>
so that's what i'm going for. i'm calling methods on array.first, then rotating it... and i wanted it in an until loop... but obviously it won't run even once, unless i can say "until we got back where we started" you know?
agrinb has joined #ruby
<havenwood>
livingstn: maybe sudo is discarding env vars that matter for your setup? gist?: sudo gem install compass --verbose
<livingstn>
havenwood I'll try that
blizzy is now known as _blizzy_
<nunayerBeezwax>
i-blis: yeah could just do a flag, but that seemed noob to me. wondered if there was a ruby way
rubytor has quit [Ping timeout: 264 seconds]
sent1nel has joined #ruby
<shevy>
arup_r you don't have to quit, you could keep a language like ruby!
<Cadillactica>
fuhgeddaboudit: yeah thanks, that’s the documentation i was looking at. I should learn C.
elaptics is now known as elaptics_away
sent1nel has joined #ruby
<nick____>
@Cladillactica, I'm curious why your curious about the reverse method.
Xiti has quit [Quit: Xiti]
Musashi007 has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
<Cadillactica>
nick____: i’m using it in one of my controllers - I’m getting all products from the database sort_by type, then reversing it. trying to determine if reverse is an expensive operation and I should simply sort{ |a,b| b.type <=> a.type}
<Cadillactica>
also, is it possible to sort by two attributes?
<Cadillactica>
primarily by one attribute, secondarily by the other?
<riceandbeans>
I still use 1.8.7 at work
<riceandbeans>
not by choice
einarj has quit [Remote host closed the connection]
<riceandbeans>
I've been fighting them to upgrade to 1.9.3
<shevy>
streaxy do you have an axe? it so reminds me of the movie shining
<streaxy>
My fiance and I came to visit her and we got snowed in :/
<jhass>
shevy: your problem is that you don't use UTF-8 for everything yet ;)
<riceandbeans>
I don't know that a fedora 21 rpm will work on centos 5 or centos 6
<daed>
gotta start using utf8 operators too
<shevy>
jhass yeah
<shevy>
jhass but I think, File.readlines() I have a way to specify an encoding at run-time while using that right?
adamjleonard has quit [Quit: Leaving...]
<shevy>
with yaml I seem to be stuck :(
<jhass>
isn't YAML speced to UTF-8 these days? like JSON is?
<shevy>
yeah
<daed>
can you do the comment at the top to specify encoding?
<daed>
i've had to do that with older ruby scripts
<shevy>
daed I think that won't matter, yaml wants utf-8
<daed>
open, re-encode, and save?
<streaxy>
Ruby is my first attempt at actually trying to learn a language. I'm struggling so bad. I've been told by several veteran coders that the first thing I need to do is to "Learn how to learn code"
<daed>
streaxy: don't overthink it
<shevy>
daed hmm I have to think a bit...
<weaksauce>
streaxy good advice
<weaksauce>
learn to think like a computer
<weaksauce>
they are simple beasts at the core of it
<weaksauce>
if you have access to the internet I'd suggest www.codeacademy.com streaxy
<streaxy>
The issue with that is I've no freaking idea how to do that or where to even look. I've spent most of my time recently on Google researching how to learn to learn to code
<daed>
it just all makse sense
<daed>
streaxy: what are you trying to do ultimately
<weaksauce>
they have a free ruby course and it starts out pretty basic
<daed>
like do you have a basic concept of something you want to accomplish
<streaxy>
I've tried code academy
* Nilium
just realized he probably doesn't need to implement a ring buffer in Go because buffered channels already kind of act like ring buffers O_o
<streaxy>
And daed I don't, I've realized that with a "goal" of something to accomplish that I'll have an actual "need" to learn but I just can't find anything that I need that ruby can solve.
<weaksauce>
that learn to program book looks pretty promising.
<Nilium>
Do you have something you want to do or are you just learning to code because code?
kobain has quit [Ping timeout: 255 seconds]
<daed>
streaxy: a small example, i need to convert a bunch of streamed csv data into a distributed database
<streaxy>
Although, I am an aspiring Internet marketer so learning to code my own websites would be a huge advantage
<Nilium>
havenwood: I don't need a ring buffer in Ruby.
<havenwood>
Nilium: Just pointing out how nice and easy it is in *Ruby*. :P
<Nilium>
That looks highly unpleasant.
willharrison has joined #ruby
<havenwood>
Go...
<daed>
i use celluloid in this current project
<weaksauce>
what's unpleasant about it? looks pretty simple to me
<daed>
yeah looks simple from here
nfk has quit [Quit: yawn]
<weaksauce>
it's a little more complicated because of the mutex but really that's not much added complexity
<Nilium>
It's using a mutex and the way it does read/write heads is kind of icky.
<Nilium>
Sync should be on you, not the ring buffer.
adamjleonard has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Nilium>
Maybe it's never going to need parallel access, in which case the mutex is a huge waste.
<weaksauce>
Nilium from the first part of the celluloid docs: Automatic "deadlock-free" synchronization
agrinb has joined #ruby
<Nilium>
I don't use celluloid.
FooMunki_ has quit [Quit: FooMunki_]
<weaksauce>
just saying that there is a reason for it
<Nilium>
Deadlock free does not mean shoving a mutex into everything.
<daed>
meanwhile, everyone is telling me that threading in ruby is pointless
<daed>
what do i say to that?
FooMunki_ has joined #ruby
<Nilium>
"Go away"?
<daed>
haha
<weaksauce>
sure. but it usually requires some form of mutexes or semaphores
<Nilium>
Mutexes are usually semi-specialized semaphores, so eh
Hobogrammer has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce>
yeah. depends on what you need.
<daed>
how do you guys feel about drb?
<Nilium>
You could probably also use atomics for moving the read/write head but it'd depend on buffer throughput and whether it's always at capacity and so on and so forth
<weaksauce>
mutex is the singular semaphore is the many concurrent access possible.
agrinb has quit [Ping timeout: 250 seconds]
<Nilium>
*heads
ghr has joined #ruby
Guest64 has joined #ruby
<Nilium>
Too many things to consider. Generic ringbuffers are kind of a pain in the neck.
ismaelga has joined #ruby
last_staff has quit [Quit: last_staff]
ghr has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
OrbitalKitten has joined #ruby
kobain has quit [Max SendQ exceeded]
ismaelga has quit [Ping timeout: 264 seconds]
Cadillactica has quit [Quit: Cadillactica]
kobain has joined #ruby
tunaCanBruh has joined #ruby
Sawbones has quit [Remote host closed the connection]
pu22l3r has joined #ruby
jimms_ has joined #ruby
hasB4K has quit [Quit: This is not a quit message.]
jimms has quit [Read error: Connection reset by peer]
<streaxy>
The book by Chris Pine is explaining things pretty good so far
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
linoespinoza has joined #ruby
DadoCe has quit [Remote host closed the connection]
<streaxy>
Now if I can just retain the info and combine it to make more complex code
linoespinoza has quit [Max SendQ exceeded]
tunaCanBruh has quit [Ping timeout: 252 seconds]
* Nilium
shrugs.
<Nilium>
I don't remember what learning to code was like, but I also didn't use Ruby to start, so eh.
linoespinoza has joined #ruby
<shevy>
#<Encoding:UTF-8>
<shevy>
#<Encoding:ASCII-8BIT>
<shevy>
hmmmmm
plutonic has joined #ruby
Sawbones has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
monod has quit [Quit: Sto andando via]
<jhass>
shevy: yeah, why's the second one not like the first one?
<shevy>
the first one comes from yaml
<shevy>
the second from the second line of the .rb file
starless has quit [Quit: Leaving]
Sawbones has quit [Remote host closed the connection]
<shevy>
in `encode': "\xFC" on UTF-8
<shevy>
hmm
<shevy>
.encode('ASCII-8BIT') on umlauts fails
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
jack_rabbit_ has joined #ruby
ben_vulpes has joined #ruby
<jhass>
yeah
<jhass>
ASCII-8Bit is basically no encoding at all
<jhass>
it's Ruby's way of saying binary
<jhass>
true ASCII is 7bit
<jhass>
what's your system encoding?
<ben_vulpes>
hey friends - i'm new to ruby's package management story and gem install * is complaining about not having write perms for /Libary/* (yes, on a mac). what do i want to be doing in order to specify gem installation location?
<jhass>
ben_vulpes: try running with the --user-install flag
<shevy>
jhass hmm LANG is en_US
<jhass>
shevy: huh? what's `locale` saying?
Aswebb_ has joined #ruby
<shevy>
yeah, all en_US
<ben_vulpes>
jhass: neat, thanks. how do i force that for, big packages f.ex. the gitlab-development-kit? get into the installation script for that thing and write --user-install everywhere?
<jhass>
just en_US? not en_US.UTF-8 ?
<shevy>
yep
<jhass>
that's odd
leafybasil has joined #ruby
<shevy>
I guess it is time to switch to UTF-8 :(
<jhass>
shevy: what lines are commented in in /etc/locale.gen ?
<shevy>
don't have this file, I am on a very old slackware system. I could switch that too when switching to UTF-8 haha
<jhass>
ben_vulpes: echo "install: --user-install" >> ~/.gemrc *might* do the trick
<ben_vulpes>
.gemrc, eh?
<ben_vulpes>
thanks, jhass.
jimms_ has quit [Read error: Connection reset by peer]
ghostpl_ has joined #ruby
thsig has joined #ruby
Rapier- has joined #ruby
ben_vulpes has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
yxejamir has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
ghostpl_ has quit [Ping timeout: 264 seconds]
vyorkin has joined #ruby
deol has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
zachrab has quit [Ping timeout: 264 seconds]
vyorkin has quit [Client Quit]
ninedragon has quit [Ping timeout: 244 seconds]
jack_rabbit_ has quit [Ping timeout: 252 seconds]
asmodlol has quit [Ping timeout: 256 seconds]
rubytor has quit [Ping timeout: 244 seconds]
bigmac has joined #ruby
adamjleonard has quit [Quit: Leaving...]
ninedragon has joined #ruby
ninedragon has quit [Excess Flood]
oleo has quit [Read error: Connection reset by peer]
tomeara has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
agrinb has joined #ruby
riotjones has joined #ruby
_ixti_ has quit [Quit: WeeChat 1.1.1]
RegulationD has quit [Ping timeout: 245 seconds]
kleesc has joined #ruby
kleesc has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
jimms has joined #ruby
RegulationD has joined #ruby
oleo has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
aswen has joined #ruby
Rapier- has quit [Quit: (null)]
riotjones has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
Rhainur has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
kiely is now known as kiely_elsewhere
unreal_ has joined #ruby
pu22l3r has joined #ruby
RegulationD has joined #ruby
Rhainur has joined #ruby
unreal_ has quit [Read error: Connection reset by peer]
unreal_ has joined #ruby
jimms_ has joined #ruby
wldcordeiro has joined #ruby
ghr has joined #ruby
cjim has quit [Quit: (null)]
unreal has quit [Ping timeout: 245 seconds]
unreal_ is now known as unreal
yfeldblu_ has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
ismaelga has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
ninedragon has joined #ruby
Aswebb_ has quit []
lkba has joined #ruby
nfk has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 264 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ismaelga has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
fabrice31 has joined #ruby
Rhainur1 has joined #ruby
nfk has joined #ruby
jouty has quit [Ping timeout: 252 seconds]
nfk has quit [Client Quit]
jottr_ has quit [Ping timeout: 250 seconds]
freemind has joined #ruby
Rhainur has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
jouty has joined #ruby
ElderFain has quit [Ping timeout: 252 seconds]
freemind has left #ruby [#ruby]
ElderFain has joined #ruby
pkrzywicki has joined #ruby
jimms_ has quit [Ping timeout: 264 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has joined #ruby
nfk has joined #ruby
juanpablo__ has joined #ruby
willharrison has joined #ruby
jimms has joined #ruby
rubytor has joined #ruby
juanpablo__ has quit [Ping timeout: 245 seconds]
Cadillactica has joined #ruby
serivich has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Cadillactica>
i have a long HTML file representing a book. goal: to synthisize that file’s contents in a rails project —> output is a readable (likely paginated), navigatable book. anybody have advice on tools/approaches to use?
nfk has quit [Quit: yawn]
sent1nel has joined #ruby
bMalum has quit [Quit: bMalum]
aswen has quit [Ping timeout: 245 seconds]
hybridark has quit [Quit: Leaving...]
veduardo has joined #ruby
sent1nel_ has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
nfk has joined #ruby
bklane has joined #ruby
<waxjar>
Cadillactica: why don't you use one of the static site generation tools instead? there's hardly anything dynamic about a book :)
<havenwood>
choose your own adventure
<Cadillactica>
waxjar: ideally this tool would then be useable for multiple books. handle html input (book) —> render pretty, readable output
drkush has quit [Ping timeout: 265 seconds]
<workmad3>
Cadillactica: err... why not use something intended for that purpose, like asciidoc?
<waxjar>
Cadillactica: that's what those tools do, you provide them input, a couple of templates maybe and they spit out a nice folder of static html files :)
rubytor has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jenrzzz has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
drkush has joined #ruby
max96at is now known as max96at|off
banister has joined #ruby
banister has quit [Max SendQ exceeded]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
RandyT has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
ferr has joined #ruby
agrinb has joined #ruby
Guest123 has joined #ruby
zachrab has joined #ruby
rubytor has joined #ruby
banister has joined #ruby
daynaskully has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 250 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest71148
codecop has quit [Remote host closed the connection]