<Ox0dea>
It's still not very sensible, but I was happy to finally have that mystery cleared up the other day.
ramfjord has joined #ruby
freerobby has joined #ruby
j4cknewt has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 264 seconds]
avahey has joined #ruby
darkf has joined #ruby
Rickmasta has quit [Ping timeout: 255 seconds]
arthurcolle has quit [Quit: arthurcolle]
finisherr has joined #ruby
cnngimenez has joined #ruby
pengin has quit [Remote host closed the connection]
RegulationD has joined #ruby
lessless has joined #ruby
porglezomp has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
konsolebox has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
swgillespie has joined #ruby
lele has quit [Ping timeout: 272 seconds]
grp066 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 256 seconds]
swgillespie has quit [Max SendQ exceeded]
<cj>
okay, I just changed a bunch of node['ipr_portal']['foo'] to node['default']['ipr_portal']['foo'] and similar. Is there anything wrong with that syntax change?
swgillespie has joined #ruby
bgmarx has joined #ruby
bgmarx has quit [Remote host closed the connection]
lele has joined #ruby
sharpmachine has joined #ruby
bruno- has joined #ruby
freerobby has quit [Quit: Leaving.]
sharpmachine has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
axsuul_ has joined #ruby
dgutierrez1287 has joined #ruby
hakunin has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
arthurcolle has joined #ruby
hakunin has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
<Ox0dea>
cj: %w[default ipr_portal foo].reduce(node, :[]) is another option.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea>
Of course, it's only really useful if the keys and/or access depth are dynamic values.
bogdanteleaga has quit [Ping timeout: 276 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
sdothum has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
bmurt has quit []
zenguy_pc has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
<ramfjord>
does anyone have an idea how to do what I'm trying to do here
<ramfjord>
basically I would like to define class getter/setter methods when a module is included
mike___1234 has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
mike___1234 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
djbkd has joined #ruby
<ramfjord>
really I'd just like to have class X include the module, call `set_var 3` in X's definition, and have var accessible as an instance method on any X
zotherstupidguy has joined #ruby
jack_rabbit has joined #ruby
michael_mbp has joined #ruby
rkazak has joined #ruby
<Ox0dea>
ramfjord: Why an instance method?
zenguy_pc has joined #ruby
bogdanteleaga has joined #ruby
duderonomy has joined #ruby
jamesaxl has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 246 seconds]
<ramfjord>
nm, I'm dumb - I just had the self.included in the ClassMethods module
baweaver has quit [Remote host closed the connection]
<ramfjord>
not necessarily an instance method - it just needs to be available to an instance
<ramfjord>
(instead of in the Test module)
<Ox0dea>
You don't need to specify ClassMethods there; self will suffice.
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramfjord>
well, it should be that when Test is included the class including it also extends ClassMethods
jamesaxl has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
chouhoulis has quit [Remote host closed the connection]
zekriad has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
veduardo has joined #ruby
bb010g has joined #ruby
nikhgupta has quit [Remote host closed the connection]
sdothum has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
drocsid has quit [Changing host]
drocsid has joined #ruby
braincrash has quit [Quit: bye bye]
baweaver has joined #ruby
datanoise has joined #ruby
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura_ has joined #ruby
CalvinnHobbes has joined #ruby
rbowlby has joined #ruby
dented42 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
braincrash has joined #ruby
nikhgupta has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
endash has quit [Quit: endash]
baweaver has joined #ruby
nikhgupta has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
nikhgupta has joined #ruby
iBloodLust has joined #ruby
<iBloodLust>
how does byte manipulation work in ruby?
<iBloodLust>
i want to have a variable that can store up to 2 bytes
yfeldblum has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<Ox0dea>
iBloodLust: That's almost never how things are done in Ruby.
nikhgupta has quit [Ping timeout: 276 seconds]
<Ox0dea>
Ruby's integers are of arbitrary precision and grow and shrink automatically as necessary.
Eiam has joined #ruby
scripore has joined #ruby
Eiam has quit [Client Quit]
eggoez has joined #ruby
jamesaxl has quit [Remote host closed the connection]
Yzguy has joined #ruby
mfranzwa has joined #ruby
<duderonomy>
iBloodLust: Can you break down the essence of the problem or goal with the bytes? Are you seeking bit field for storage?
balazs has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
balazs has joined #ruby
<iBloodLust>
nothing, just that i want to get into emulating. i know its recommended that i do this in c or c++
blue_deref has joined #ruby
<baweaver>
recommended nothing
Eiam has joined #ruby
<baweaver>
ruby is a bad idea for this
Bulat has joined #ruby
<Ox0dea>
Still, you can access an integer's individual bits with Numeric#[] should the need ever truly arise.
<Ox0dea>
What are you, twelve? It was the greatest scoring performance in modern NBA history.
<Aeyrix>
I'm thinking about a lot of things at once, sorry.
GnuYawk has joined #ruby
<Ox0dea>
Apologies for troubling you, then.
<iBloodLust>
wow ruby is pretty slow compared to javascript,were other ruby implementations tested? are the other implementation such as mruby and rubinius even faster than ruby mri?
<Ox0dea>
Warriors in six, though.
<Aeyrix>
Ox0dea: Get out.
<Aeyrix>
Cavs in 6, there's always this year.
<Ox0dea>
> mfw cavs = champs
<cnngimenez>
iBloodLust: really? is that slow? :-/
Cache_Money has joined #ruby
<Aeyrix>
Ox0dea: mfw Irving is busy healing from gettin rekt
<cnngimenez>
iBloodLust: Are you trying the Ruby interpreter from the ruby-lang.org page?
mike___1234 has quit [Ping timeout: 265 seconds]
<iBloodLust>
2.1.2 to be exact
<iBloodLust>
yes
aaeron has quit [Quit: Leaving.]
<cnngimenez>
on GNU/Linux, right?
<Aeyrix>
GNU/Freedom.
<cnngimenez>
better :-)
<Aeyrix>
I'm using GNU/OS X.
<Aeyrix>
Means I can't get viruses.
<Aeyrix>
Ox0dea: Got a home team?
<cnngimenez>
that's odd... JS faster than Ruby... Maybe I can do some tests...
<Aeyrix>
Uh
<Ox0dea>
Aeyrix: Not particularly anymore, but I'd like to see Curry get his.
<Aeyrix>
of course JS is faster.
victomina has joined #ruby
<cnngimenez>
but, I cannot compare against the language itself... I hate programming in JS!
<iBloodLust>
im using gnu/linuxc
<Ox0dea>
cnngimenez: Why?
mike___1234 has joined #ruby
<Aeyrix>
The JS interpreters are worked on incessantly because they're build into web browsers.
jphenow has joined #ruby
<Aeyrix>
They have literally the *top* minds in language VMs working on them.
ramfjord has joined #ruby
<Aeyrix>
Ox0dea: muh cavs
<cnngimenez>
I don't know...
<Aeyrix>
Celtics disappointed me too much.
<cnngimenez>
Ox0dea: I think its syntax and that thing of globals variables everywhere... Ruby implements visibility a bit better :-P
<Ox0dea>
cnngimenez: You are ill-informed.
ferr has quit [Quit: WeeChat 1.2]
bgmarx has joined #ruby
<cnngimenez>
I hope... I have only used JS on Web only
<cnngimenez>
And also CoffeeScript...
Jarboe has joined #ruby
<Ox0dea>
Aeyrix: Looks like your boy won't be pulling an Oscar Robertson this series.
<Ox0dea>
I would've liked to see that, to be honest.
<Aeyrix>
From his hospital bed?
<Ox0dea>
I meant LeBron averaging a triple.
<Aeyrix>
Current score is making me upset.
<Aeyrix>
GSW 100 : 79 CLE
<RickHull>
blackjack!
<Ox0dea>
Spoiler alert: it's 102-81 here.
<Aeyrix>
102 : 80
<Aeyrix>
yeah
<cnngimenez>
have to go! :-) bye! :-)
<Aeyrix>
Today is just not my day, tbh.
bgmarx has quit [Ping timeout: 265 seconds]
<iBloodLust>
why do people use C# over other great languages
<iBloodLust>
delphi is one
<RickHull>
.NET libs
gix has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
<Aeyrix>
>delphi
<Aeyrix>
mods
cnngimenez has quit [Quit: Konversation terminated!]
<iBloodLust>
but .net libs is expensive in a way
rbowlby has quit [Remote host closed the connection]
freerobby has joined #ruby
ledestin has joined #ruby
gix has joined #ruby
oo_ has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
aytch has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
aytch has joined #ruby
Paradox has quit [Ping timeout: 265 seconds]
whoami has joined #ruby
theery has joined #ruby
bin_005 has quit [Remote host closed the connection]
whoami is now known as Guest98386
bin_005 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Paradox has joined #ruby
<bosma>
Anyone get ZeroMQ / Ruby on Windows?
justintv90 has quit [Remote host closed the connection]
WildBamboo-Josh has quit [Ping timeout: 265 seconds]
scottstamp has joined #ruby
WildBamboo-Josh has joined #ruby
<Aeyrix>
Ox0dea: idk what happened to LeBron that game.
<Aeyrix>
20pts.
oo_ has quit [Ping timeout: 256 seconds]
scottstamp has quit [Max SendQ exceeded]
scottstamp has joined #ruby
<RickHull>
did he crack 50% in free throw pctg?
<arthurcolle>
ruby on windows is a real nightmare
<bosma>
yes
Bulat has quit [Quit: Leaving.]
<bosma>
lots of things are
<Ox0dea>
Aeyrix: I wonder if his uncharacteristically scrub-tacular performance had anything to do with him learning that he accidentally whipped his penis out on live television.
<Aeyrix>
Ox0dea: lmao
<Aeyrix>
He was already doing avg though.
iBloodLust has quit [Quit: Page closed]
<bosma>
I'd just like to pass messages from my C# application to my ruby IRC bot.
<bosma>
any ideas?
<Ox0dea>
Either way, the mojo got out and he never recovered it.
oo_ has joined #ruby
<Aeyrix>
Hopefully we get a recovery for next game.
<Aeyrix>
bosma: Unix sockets.
<RickHull>
i blame the leg rub guy
baweaver has quit [Remote host closed the connection]
fedexo has joined #ruby
bantic has joined #ruby
aaeron has joined #ruby
Rickmasta has joined #ruby
houhoulis has joined #ruby
pepperbreath has joined #ruby
gambl0re has joined #ruby
aaeron1 has joined #ruby
nobitanobi has joined #ruby
aaeron has quit [Client Quit]
<RickHull>
if it sounds like I'm gloating, it's because I'm gloating xD
aaeron1 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
pepperbreath1 has quit [Ping timeout: 276 seconds]
<Ox0dea>
ajaiswal: For what it's worth, the Regexp would be as simple as /\w+::\w+::\w+/, and you might consider using it if you're sure you only need the first three components.
<Befine>
Radar: ping
<ajaiswal>
yep. i need only first three block.
<ajaiswal>
Ox0dea: thanks
<Ox0dea>
Sure thing.
simplyianm has joined #ruby
skade has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
chiel_ has quit [Remote host closed the connection]
axsuul_ has quit [Ping timeout: 246 seconds]
valeri_ufo has quit [Quit: ...]
<Aeyrix>
Just overheard "meme" being pronounced as "me me".
<Aeyrix>
Help.
I has joined #ruby
I is now known as Guest3710
finisherr has joined #ruby
<Befine>
Is Ruby/Rails even worth learning now when Elixir/Phoenix is out. If it's not for job but for web development itself.
<shevy>
Aeyrix lol
munen has joined #ruby
<RickHull>
Befine: sure. just for ecosystem
Guest98386 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
gem install ecosystem
M-Technic has joined #ruby
<RickHull>
# this boils the ocean
<Befine>
Ox0dea: There is similar things in Elixir/Phoenix.
<Befine>
are*
Spami has joined #ruby
rbowlby has joined #ruby
<Aeyrix>
*shrugs*S
<Aeyrix>
Elixir isn't the mass migration of Ruby users.
<Ox0dea>
Yet.
<Aeyrix>
I personally can't get over some of the syntax quirks.
<Ox0dea>
It's not like Crystal is gonna take off.
<RickHull>
i like Elixir better than Ruby at this point, but I don't see the Elixir stack taking over anytime soon
yfeldblum has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
Guest3710 has quit [Quit: Leaving]
<Ox0dea>
RickHull: Why?
<Aeyrix>
Convenience of interpreted languages.
<RickHull>
i've drifted away from OOP towards FP
dseitz has joined #ruby
growlove has joined #ruby
<Ox0dea>
Ruby is pretty FP.
<Befine>
Aeyrix: The syntax is very easy lol.
<RickHull>
most of my ruby these days looks more like FP than OOP
<Aeyrix>
Ox0dea: wat
<Aeyrix>
Ruby is the purest OO you can get.
<Aeyrix>
Literally everything is an object.
<Befine>
Aeyrix: You are not a progrmmer, are you?
<Ox0dea>
And yet we #map and #reduce all day.
<Aeyrix>
Befine: No, I'm a security consultant.
<Aeyrix>
Ox0dea: You might.
<RickHull>
Ox0dea: yeah, basically i've drifted towards FP-style approaches in my ruby, and Elixir is the natural continuation, with some nice guarantees that fall out of sticking to FP
<RickHull>
which ruby doesn't offer
rdavila has joined #ruby
<Befine>
Aeyrix: I could figure it out from 3-4 sentence you said.
<flughafen>
i should register it aaand sell it for millions of pennies
revath has joined #ruby
<adaedra>
:D
ndrei has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
lol flughafen
Macaveli has joined #ruby
revath1 has quit [Ping timeout: 252 seconds]
<shevy>
so they aim for 2017
CyborgCygnus has quit [Quit: I hath quit]
<shevy>
how long did it take them like then... a decade?
lkba has quit [Ping timeout: 245 seconds]
<flughafen>
shevy: i have no idea
<shevy>
they would be faster by BUYING another airport and transferring it piece by piece
<flughafen>
ha, yeah
s2013 has joined #ruby
wallerdev has quit [Quit: wallerdev]
vyorkin2 has joined #ruby
SalexW has joined #ruby
ahmetkapikiran has joined #ruby
nhhagen has joined #ruby
jwilson has quit [Read error: Connection reset by peer]
jwilson has joined #ruby
<hefest>
i can't force thinking-sphinx to search in match_mode any. any ideas? i can post the sample query.
MyMind has quit [Excess Flood]
astrobun_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
simplyianm has joined #ruby
astrobun_ has joined #ruby
vyorkin2 has quit [Ping timeout: 258 seconds]
hedgecore has quit [Read error: Connection reset by peer]
hedgecore has joined #ruby
Papierkorb has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
Papierkorb has joined #ruby
lolmaus has joined #ruby
nizmow has quit [Ping timeout: 265 seconds]
terlar has quit [Ping timeout: 244 seconds]
Aria has quit [Ping timeout: 272 seconds]
ByronJohnson has quit [Ping timeout: 264 seconds]
CustosLimen has quit [Ping timeout: 258 seconds]
MyMind has joined #ruby
CalvinnHobbes has quit [Ping timeout: 264 seconds]
mclee has quit [Ping timeout: 264 seconds]
nhhagen has quit [Remote host closed the connection]
mattp__ has quit [Ping timeout: 258 seconds]
doertedev has joined #ruby
jsaak has quit [Ping timeout: 265 seconds]
mattp__ has joined #ruby
ByronJohnson has joined #ruby
benlovell has quit [Ping timeout: 276 seconds]
jsaak has joined #ruby
aep has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 264 seconds]
TheHodge has joined #ruby
aredridel has joined #ruby
workmad3 has joined #ruby
TheBrayn has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Shu has quit [Quit: Page closed]
allomov has joined #ruby
simplyianm has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 272 seconds]
nizmow_ has joined #ruby
SalexW has quit []
rkazak has quit [Ping timeout: 256 seconds]
Evidlo has quit [Ping timeout: 250 seconds]
tchebb has quit [Ping timeout: 245 seconds]
gf3 has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
intinig has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
TheBrayn has joined #ruby
gf3 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
aep has joined #ruby
CalvinnHobbes has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nhhagen has joined #ruby
tchebb has joined #ruby
arthurcolle has quit [Quit: arthurcolle]
CustosLimen has joined #ruby
hdev1 has quit [Remote host closed the connection]
balazs has joined #ruby
elev has joined #ruby
rkazak has joined #ruby
elev is now known as master44
yfeldblum has quit [Ping timeout: 256 seconds]
hdev1 has joined #ruby
starfox_sf has joined #ruby
dfockler has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ziprar is now known as zipace
postmodern has quit [Quit: Leaving]
master44 has quit [Client Quit]
mist has quit [Quit: leaving]
balazs has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
<bosma>
If I have two threads, one is setting a class variable, one occasionally reads it, is that safe to do?
<ljarvis>
no
<bosma>
Mutex?
<ljarvis>
yep
<bosma>
cheers
senayar has joined #ruby
senayar has joined #ruby
<bosma>
what could go wrong?
ta has quit [Remote host closed the connection]
<pontiki>
yolo
<adaedra>
:@
starfox_sf has quit [Ping timeout: 256 seconds]
<Darkwater>
what's unsafe about that
<ljarvis>
actually a mutex won't help you
senayar has quit [Remote host closed the connection]
intinig has joined #ruby
<bosma>
Yeah I'm not seeing what's wrong.
<ljarvis>
well, "safe" is probably the wrong way to describe it
dfockler has quit [Ping timeout: 265 seconds]
<ljarvis>
of course it's safe
<Darkwater>
yeah it doesn't kill me
<Darkwater>
hopefully
<Darkwater>
(depends on where it's used)
<bosma>
is it guaranteed to not result in my program crashing
<bosma>
is really the question
<ljarvis>
i don't know the implementation so who knows
<ljarvis>
probably not
<ljarvis>
but you can't except any guarentees
<apeiros>
bosma: depends on how setting and reading the variable interact
<ljarvis>
expect*
Axy has joined #ruby
<ljarvis>
basically I would store thread local variable
<ljarvis>
but again, depends on the implementation
<ljarvis>
we know nothing right now
mrmist has joined #ruby
<apeiros>
bosma: there aren't really silver bullet solutions with regards to threading. almost all questions whether something is thread-safe are context sensitive.
<bosma>
right
<bosma>
just given my question specifics
<apeiros>
you can protect something with a mutex and create a dead- or a livelock
<apeiros>
i.e. still not be threadsafe
nhhagen has quit [Remote host closed the connection]
<bosma>
I'm separating proper behavior with the programming language not being able to handle it
arup_r has quit [Remote host closed the connection]
<bosma>
can the read result in garbage, or just an old value
AlphaAtom has joined #ruby
<ljarvis>
well, it's guarenteed to be a value... :P
Mia has quit [Ping timeout: 255 seconds]
<apeiros>
bosma: old value. no garbage.
<bosma>
ah good
<apeiros>
in another language, that doesn't necessarily hold true
<bosma>
I understand the problems with concurrency. Right why I asked.
<apeiros>
and actually even in another runtime it doesn't need to
<bosma>
Was thinking maybe the assembly could become garbled
<ljarvis>
no
<apeiros>
but MRI afaik has atomic assignment
chinmay_dd has joined #ruby
ahmetkapikiran has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
intinig has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
jas02 has joined #ruby
rbowlby has quit [Remote host closed the connection]
intinig has joined #ruby
bryanmuus_ has joined #ruby
<baweaver>
Jack had a problem, so Jack decided to use Threads. problems Now two has he.
<bosma>
cinch bot
<adaedra>
Now Jack Yoda is
<bosma>
just subscribing to eurusd ticks, making a trading game.
<shevy>
Jack the beaver
<baweaver>
you rang?
Tamae has joined #ruby
<bosma>
and I want to thread all the things right now
<bosma>
x99-A arrived other day :D
<shevy>
lol
<shevy>
thread all the things
<shevy>
:D
<bosma>
yes what can go wrong
<bryanmuus_>
just started learning ruby
<shevy>
yay bryanmuus_
<shevy>
bryanmuus_ you come from another programming language?
<adaedra>
options are case-insensitive and _ are ignored
hackeron_ has joined #ruby
<adaedra>
setopt N____o____B____e____E____p
MasterPiece has joined #ruby
<dreinull75>
does anybody know how to use rack-ssl with puma? I can bind to ssl and tell puma where my certs are but then I don't need rack-ssl and its convenient http-> https services.
hackeron has quit [Ping timeout: 265 seconds]
<dreinull75>
not a rails question btw :)
<adaedra>
SSL is usually handled by front-facing server (nginx, apache, etc...), no?
AlphaAtom has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<shevy>
wouldn't it be cool if we could generate both text/console-programs and GUIs
<dreinull75>
adaedra sure, I want to use puma only
<shevy>
at the same time
chussenot has quit [Quit: chussenot]
<dreinull75>
shevy it would be.
<dreinull75>
yesterday I looked at the state of ruby and gtk. It's awful. Too complicated.
<adaedra>
shevy: iirc, YaST has both console and gui modes with – approximately – the same GUI
<shevy>
hmm
<shevy>
dreinull75 yeah you are right
<shevy>
I wondered how to make ruby-gnome simpler altogether
<shevy>
when I switched to ruby 1.9.x, I was not writing any ruby-gnome code for several years
symm- has joined #ruby
<dreinull75>
shevy did I see you in the commiters list
<dreinull75>
?
<shevy>
when I tried to resume, I struggled; I could not remember how to use the stuff... how do you make a coloured text buffer for instance; or how do you add new elements to a "table" in ruby-gnome
<shevy>
you have to somehow keep track of something called an iter
<shevy>
dreinull75 don't think so, I know no C :(
<dreinull75>
ok, was probably some other guy
futilegames has joined #ruby
<shevy>
what also annoys me is how the CSS things aren't easily available in ruby-gnome
<shevy>
why can't I just use css consistently to style all widgets
<Darkwater>
adaedra: thanks for the reminder
<Darkwater>
I have no idea why I had setopt beep in my zshrc
dgutierrez1287 has quit [Remote host closed the connection]
sarlalian has quit [Ping timeout: 264 seconds]
triangles has joined #ruby
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axisys has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
nikhgupta has quit [Ping timeout: 264 seconds]
axisys has joined #ruby
afrianska has quit [Ping timeout: 276 seconds]
futilegames has quit [Quit: futilegames]
<maloik>
there are worldwide routing issues
nhhagen has joined #ruby
francoi__ has joined #ruby
<triangles>
I'd like to write to a buffer, and then flush it to STDOUT at specified times. I'm reading the documentation on the IO class now, but I don't really understand the use of 'file descriptors'.
<triangles>
There's an example given but it uses /dev/tty and I want the program to run on Windows also.
<triangles>
What kind of file descriptor do I want?
<Darkwater>
triangles: you'd want $stdout
<atmosx>
hello
<Darkwater>
hi
<atmosx>
:-)
anisha has joined #ruby
intinig has quit [Remote host closed the connection]
camilasann has joined #ruby
<Darkwater>
no irc plays ruby apparently
<triangles>
Darkwater: $stdout as the file descriptor? That's a type error. Or just write to $stdout rather than a new IO object? Because unless there's a way to change it, when you write to $stdout it instantly writes to stdout
<Darkwater>
DO mail servers are dead
<triangles>
I want to build up a buffer and then fluesh it when I'm ready
camilasan has quit [Ping timeout: 264 seconds]
<Darkwater>
triangles: maybe do the buffer separately
<Darkwater>
then write to stdout when you're ready
vyorkin2 has quit [Ping timeout: 265 seconds]
<Darkwater>
(and flush, it might not be instant for everyone)
intinig has joined #ruby
<arup_r>
atmosx: Hi
senayar has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<joneshf-laptop>
I'm looking to play around with design. Say I wanted to describe a mixin with a few different methods: `foo`, `bar`, and `baz`. Let's say `bar` and `baz` depend on `foo`, but are generic enough to be implemented directly in the module. And `foo` is something that should be implemented by the mixer. How should I go about depicting that `foo` needs to be implemented?
thelastinuit has joined #ruby
<apeiros>
joneshf-laptop: that sounds like what Enumerable does. it depends on .each being defined.
hachiya has joined #ruby
<joneshf-laptop>
apeiros, yeah, pretty much like that
<apeiros>
joneshf-laptop: IMO state it in the documentation of your module that the including party is expected to define `foo`
<apeiros>
you could also implement it in your module and raise
<apeiros>
but that'd prohibit designs where `foo` is defined in an ancestor, but the descendant includes your module.
zz_Outlastsheep is now known as Outlastsheep
<shevy>
did you guys know that black cats means good luck in japan?
nonparfumee has joined #ruby
hdev1 has quit [Ping timeout: 265 seconds]
sandstrom has joined #ruby
Darkwater has joined #ruby
<joneshf-laptop>
apeiros, so in the first approach I don't even write the method in the module?
starfox_sf has quit [Ping timeout: 264 seconds]
vyorkin2 has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
<apeiros>
joneshf-laptop: correct
<joneshf-laptop>
okay
tomphp has joined #ruby
<apeiros>
given that e.g. Enumerable and Comparable set a precedent for that, it's IMO ok
robustus has quit [Ping timeout: 255 seconds]
<joneshf-laptop>
Is it common to have that other scenario you mentioned, where the descendant includes something that depends on an ancestor's methods?
hanmac1 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
hanmac1 has left #ruby [#ruby]
robustus has joined #ruby
djbkd has joined #ruby
afrianska has quit [Ping timeout: 265 seconds]
justintv90 has quit [Remote host closed the connection]
rodfersou has joined #ruby
p8952 has joined #ruby
balazs has joined #ruby
intinig has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
ylla has joined #ruby
bruno- has joined #ruby
djellemah_ has joined #ruby
intinig has quit [Remote host closed the connection]
apofis has joined #ruby
intinig has joined #ruby
ndrei has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
balazs has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jmhmccr has quit [Quit: Connection closed for inactivity]
djellemah has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
tomphp has joined #ruby
arup_r has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
chinmay_dd has quit [Ping timeout: 258 seconds]
pepperbreath1 has joined #ruby
pepperbreath1 has left #ruby [#ruby]
hololeap has quit [Quit: Leaving]
tomphp has quit [Client Quit]
bruno- has joined #ruby
axl_ is now known as blaaaa
ki0 has quit []
Siyfion has joined #ruby
arup_r has joined #ruby
pepperbreath has quit [Ping timeout: 276 seconds]
hdev1 has joined #ruby
ahmetkapikiran has joined #ruby
rodferso1 has joined #ruby
dangerousdave has joined #ruby
<dangerousdave>
#test
mengu has quit [Ping timeout: 272 seconds]
<dangerousdave>
#textual
pandaant has joined #ruby
<jhass>
dangerousdave: #fail
<jhass>
#not #twitter :P
Scroff has quit [Ping timeout: 245 seconds]
rodfersou has quit [Ping timeout: 264 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<dangerousdave>
jhass: my irc client can't connect, so am using a browser client I don't understand
barkerd427 is now known as zz_barkerd427
<Siyfion>
Right so I have some code blocks, that need to access instance variables inside the block, my linter is throwing warnings about all of them, but it *does* work currently.
<atmosx>
why not?
<atmosx>
dangerousdave: what's the prob?
bruno- is now known as Guest65680
<Siyfion>
How the hell do I get around accessing instance vars inside a block?
jds has joined #ruby
mrsolo has quit [Quit: Connection closed for inactivity]
<atmosx>
Siyfion: can you show the code?
<atmosx>
Siyfion: the entire class possibly, where the instance vars are defined and how are you accessing them inside your block?
<Siyfion>
atmosx: okay
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Siyfion>
line 42 it's complaining about both instance variables... along with lines 48, 50, etc.
mengu has joined #ruby
<dangerousdave>
atmosx: no idea really, my irc client works fine on home connection, however at work I get: [12:13:46] Connecting to [chat.freenode.net] on port 6667 [12:14:16] Attempt to connect to host timed out [12:14:16] Disconnected
dhjondoh has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
<dangerousdave>
jhass: atmosx: [12:24:06] Connecting to [holmes.freenode.net] on port 6667 [12:24:36] Attempt to connect to host timed out [12:24:36] Disconnected
<jhass>
Siyfion: mmh, there's a bigger issue here first, ll 10-13 do nothing. @foo inside and outside an instance method definition are two different variables
rodferso1 has quit [Quit: leaving]
chinmay_dd has quit [Remote host closed the connection]
rodfersou has joined #ruby
<jhass>
Siyfion: but from the code you've shown I'm not sure why you use instance variables in the first place
scripore has joined #ruby
AlphaAtom has joined #ruby
<jhass>
there seems to be no reason for a single one
<Siyfion>
Ah yeah, bad example
<atmosx>
Siyfion: you don't initialize the 10-13 variables
<jhass>
dangerousdave: no matter which you pick? maybe work started blocking IRC?
<atmosx>
Siyfion: but as jhass said you don't have to use instance vars anyway.
<atmosx>
dangerousdave: try nc holmes.freenode.net 6667 see if it comes up with some txt
<jhass>
Siyfion: in fact given it's a singleton, they needlessly prevent concurrent invocations of your method currently
tomphp has joined #ruby
<Siyfion>
jhass: I'm sorry, complete newb to Ruby
<jhass>
no worries, just pointing out ;)
<Siyfion>
jhass: Just trying to get my head around it ;)
<dangerousdave>
jhass: its a new job, so I have never seen it working, so I think you are right
<dangerousdave>
atmosx: nc?
chinmay_dd has quit [Remote host closed the connection]
<jhass>
dangerousdave: try SSL
tomphp has quit [Client Quit]
dorei has joined #ruby
lavros has quit [Client Quit]
<dangerousdave>
jhass: atmosx: with SSL, [12:32:35] Connecting to [holmes.freenode.net] on port 6697 [12:32:36] Connection to host at [83.170.73.249] established [12:32:59] Transport Layer Security (TLS) Error: Connection was closed as a result of an error (-9806) [12:32:59] Disconnected
ndrei has quit [Ping timeout: 255 seconds]
<jhass>
wut
<Siyfion>
jhass & atmosx: Here's a more complex example, I'm really just trying to use instance variable to save passing shit loads of data into all the functions.. https://gist.github.com/Siyfion/d92dc707a7f359edff70
tkuchiki has quit [Ping timeout: 250 seconds]
francoi__ has joined #ruby
<jhass>
dangerousdave: again no matter which host you try?
tomphp has joined #ruby
<jhass>
Siyfion: could you edit it and activate syntax highlighting?
<Siyfion>
done, my bad
jenrzzz has joined #ruby
dgutierrez1287 has joined #ruby
<jhass>
well, still the same issue with ll. 9-13 most likely not doing what you think they do
tvw has quit []
chthon has joined #ruby
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<jhass>
if you don't make it a singleton it should even turn thread safe (given whatever library you use there is thread safe), so I'd probably have the linter stfu
<Siyfion>
Like I said, it's just to stop having to pass variables all over the place
<jhass>
sure
sandstro_ has joined #ruby
<Siyfion>
= lazy
<jhass>
not at all
<Siyfion>
But if it doesn't work.. or isn't as simple as that
<jhass>
also good programmers are lazy
caseypat_ has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.2]
<dangerousdave>
jhass, yep, tried a few, all the same
<jhass>
Siyfion: well, what's the exact complaint of your linter?
terlar has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
yoongkang has quit [Remote host closed the connection]
<Siyfion>
jhass: "Cannot find declaration for field '@width'"
<jhass>
wat
sandstrom has quit [Ping timeout: 252 seconds]
<jhass>
Siyfion: one thing I would change however is to only make those instance variables that actually are shared, from a quick look that seems to be only @pdf and @data_points
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MasterPiece has quit [Quit: Leaving]
rippa has joined #ruby
<jhass>
Siyfion: but yeah, I think you just got your linter confused there :P
<Siyfion>
Silly RubyMine :P
millerti has joined #ruby
chipotle has joined #ruby
livathinos has quit [Ping timeout: 252 seconds]
bin_005_c has quit [Ping timeout: 246 seconds]
vyorkin2 has joined #ruby
diegoviola has joined #ruby
<Siyfion>
It's also complaining mightily about the line "box.instance_eval { @font_size }" saying that @font_size is undefined... but then I guess that's just because it has no idea I'm using 'instance_eval'
lolmaus has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
lolmaus has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
Hounddog has quit [Remote host closed the connection]
sarkyniin has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
francoi__ has quit [Remote host closed the connection]
withnale__ has quit [Remote host closed the connection]
<veleno>
using Sequel, how do i translate an SQL statement in which the WHERE clause uses an OR ? WHERE status='AVAILABLE' or status='PREAVAILABLE’ This does not work: where(:status=>'AVAILABLE' or :status=>'PREAVAILABLE')
havenwood has joined #ruby
ndrei has joined #ruby
<jhass>
Siyfion: uh, I didn't notice the instance_eval
tomphp has joined #ruby
<jhass>
Siyfion: well, instance_eval does change the lookup scope for instance variables
<adaedra>
veleno: try the block construct
sgambino has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
<Siyfion>
Yeah, I think that's the linter just not having a clue about the underlying data structure of that (a bounding-box)
<adaedra>
where { status == 'AVAILABLE' || status == 'PREAVTHING' } # veleno
<jhass>
veleno: .where(status: %w(AVAILABLE PREAVAILABLE)) should work too
ahmetkapikiran has joined #ruby
jcaho has joined #ruby
munen has quit [Quit: munen]
chinmay_dd has joined #ruby
RegulationD has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
withnale__ has joined #ruby
francoi__ has joined #ruby
senayar has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
withnale__ has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby
<jhass>
Siyfion: still hacky but I'd use box.instance_variable_get(:@font_size)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bhaak>
jhass: isn't that technically AR? IIRC Sequel's own construct would be using in, e.g. .where{status.in %w{A, B}}
francoi__ has quit [Read error: Connection reset by peer]
franco___ has joined #ruby
Macaveli_ has joined #ruby
<Siyfion>
jhass: Oh okay, I'll give that a go
<jhass>
uh, might be that I just assumed sequel would support that too
Macaveli has quit [Read error: Connection reset by peer]
Guest65680 has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
senayar has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
msnyon has joined #ruby
withnale__ has joined #ruby
tomphp has joined #ruby
<bhaak>
or maybe I just mixed up Squeel and Sequel
tomphp has quit [Client Quit]
<Outlastsheep>
'Squeel'? did you mean 'Squeal'?
j4cknewt has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
withnale__ has quit [Remote host closed the connection]
<shevy>
Sheep
<bhaak>
if there is another ORM out there named 'Squeal', I'm gonna buy a gun and shoot everybody who thinks project need cute names
<jhass>
so much for puppy linux then
<Outlastsheep>
shevy: yes?
<shevy>
lol
<shevy>
no I meant Sheep really
<Outlastsheep>
"Project Hamster-fur"
<shevy>
as in similar to Squeal
<Outlastsheep>
"GNU/Kitten" Oh god I think I see the light.
ndrei has quit [Ping timeout: 276 seconds]
ndrei_ has joined #ruby
hanmac1 has left #ruby [#ruby]
chinmay_dd has joined #ruby
keernel has joined #ruby
livathinos has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has joined #ruby
apofis has joined #ruby
nhhagen has quit [Remote host closed the connection]
baweaver has joined #ruby
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby
ahmadsoe has quit [Quit: Connection closed for inactivity]
ndrei_ has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
Zai00 has joined #ruby
ylla has quit [Ping timeout: 246 seconds]
commondream has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 244 seconds]
sarlalian has joined #ruby
AlphaAtom has joined #ruby
banister has joined #ruby
chinmay_dd has quit []
AlphaAtom has quit [Client Quit]
Outlastsheep is now known as zz_Outlastsheep
CloCkWeRX has quit [Ping timeout: 252 seconds]
vyorkin2 has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Macaveli_ has quit [Read error: Connection reset by peer]
zz_barkerd427 is now known as barkerd427
baweaver has quit [Remote host closed the connection]
<master44>
Look at the 5 last lines why doesnt it break?
<krisquigley>
theres no condition for the elsif
<master44>
what you mean
endorphine_ has joined #ruby
stoogenmeyer has joined #ruby
<krisquigley>
whats the last elsif checking for?
michael_mbp has joined #ruby
<master44>
if it doesnt put anything between a and z
<master44>
it will put "Du er digg" and exit
<krisquigley>
should just be else then
<master44>
oh ok
futilegames has quit [Client Quit]
arup_r has joined #ruby
<master44>
It worked
<master44>
why else not elsif?
<krisquigley>
elsif is just another if
<krisquigley>
it needs a conditional, something to compare, to see if it is true
<master44>
and else is?
nonparfumee has joined #ruby
ldnunes has joined #ruby
<krisquigley>
elsif is ruby for else if
coderhs has joined #ruby
hdev1 has joined #ruby
livathinos has joined #ruby
<master44>
yes
<master44>
and the else meeans?
hdev1 has quit [Client Quit]
<krisquigley>
If none of the `if`'s match, then else will run
<master44>
like onyl else
<master44>
ah
<master44>
ok
<master44>
thanks man! :D
francoi__ has quit [Remote host closed the connection]
<krisquigley>
np
<master44>
You are very nice guy :) Thanks, bye
<krisquigley>
lol
<krisquigley>
I might have to fork that project
<master44>
but is it possible to break when its if
<master44>
like if user_input == "yes" break
<krisquigley>
yeah
Macaveli has quit [Read error: No route to host]
<master44>
so elsif
<master44>
could be the same code
<master44>
as if
Macaveli has joined #ruby
<krisquigley>
yes
<master44>
just I had to end it all the time?
francoi__ has joined #ruby
<master44>
so its like a shortcut?
<krisquigley>
if you want it to break after any key press, then you don't need a while loop
<master44>
yes I know
Scrofff has quit [Remote host closed the connection]
<master44>
I want it to run every time you press a-z
mengu__ has quit []
<master44>
but something else like sadjj or 2 it will say: du er digg, and break
<krisquigley>
ok
<master44>
and that works now :)
<master44>
cya
<krisquigley>
o/
francoi__ has quit [Remote host closed the connection]
JoshL has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
ferfoster has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<dangerousdave>
who would win in a fight between shevy and bhaak?
<shevy>
dunno
<shevy>
is he my weight class
<Darkwater>
depends
<Darkwater>
casually? shevy
<Darkwater>
to the death? bhaak
<shevy>
and at which temperature will we fight
<krisquigley>
haha, I like how you are go quiet when that guy came in...
<shevy>
I am good in the cold but useless during heat
<krisquigley>
all*
Scroff has joined #ruby
s2013 has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
foucist has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
francoi__ has joined #ruby
bmurt has joined #ruby
balazs has joined #ruby
mdz_ has joined #ruby
sdothum has joined #ruby
_joes__ has quit [Ping timeout: 252 seconds]
andikr has quit [Ping timeout: 272 seconds]
<master44>
a constant its not constant? wtf why
<master44>
thats bullshit
<apeiros>
master44: watch your language
<shevy>
master44 yeah the name is strange
baweaver has quit [Remote host closed the connection]
<shevy>
apeiros also wondered about the name :-)
<apeiros>
I wondered more about the current implementation
<shevy>
master44 the general philosophy in ruby is that, if you want to do something, you can do it
<apeiros>
a constant (should) constantly reference the same object. it does not guarantee that this object is immutable.
lkba_ has joined #ruby
adac has joined #ruby
<shevy>
you can change constants in ruby
<adac>
does someone know how to transform a hex color into rgba?
<apeiros>
the part which can be strange is that even the "constantly references the same object" is not guaranteed. reassigning only gives a warning. and remove_const allows reassignment even without warning.
<Darkwater>
what's so special about constants in ruby then
<apeiros>
as for the why: only matz knows.
<Darkwater>
nothing?
atomical has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
Darkwater: the speciality of constants is the scope
<shevy>
yeah, .const_set triggers no warning. I found that weird too, does not seem consistent
<apeiros>
globally visible with a kind of search path
<shevy>
Darkwater every class and module name is a constant
<apeiros>
shevy: gives a warning here
JDiPierro has joined #ruby
<shevy>
oh
<apeiros>
that is, if the constant exists already
lkba has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
<master44>
Is it a way to make a variable that is constant
balazs has quit [Ping timeout: 276 seconds]
<master44>
that you really cant change?
<shevy>
you are right... strange
<apeiros>
master44: there's almost nothing in ruby which you really can't change
<shevy>
I thought it triggered no warning
<shevy>
master44 everything can be changed; perhaps not objects that were .freeze frozen
<apeiros>
you can freeze the class/module which contains the constant
arup_r has quit [Remote host closed the connection]
<apeiros>
>> class Foo; Bar = 1; end; Foo.freeze; class Foo; Bar = 2; end
<ruboto>
apeiros # => can't modify frozen #<Class:Foo> (RuntimeError) ...check link for more (https://eval.in/380533)
<shevy>
class Hell; end; hell = Hell.new; hell.freeze
withnale_ has quit [Remote host closed the connection]
<mistnim>
well to explain, let's say I just want to send the temperature value of my cpu and I can read it from my phone everywhere
flori has quit [Ping timeout: 264 seconds]
uri_ has joined #ruby
justintv90 has joined #ruby
<Darkwater>
write a small sinatra app
RegulationD has quit [Ping timeout: 276 seconds]
flori has joined #ruby
aryaching has joined #ruby
justintv90 has quit [Max SendQ exceeded]
withnale_ has joined #ruby
<Darkwater>
get '/temperature' do File.read('/sys/whatever/temperature') end
zipace has quit [Ping timeout: 244 seconds]
justintv90 has joined #ruby
terabytest has joined #ruby
<Darkwater>
ooh ooh ooh
withnale_ has quit [Remote host closed the connection]
<Darkwater>
maybe I'll write an app for stuff like this
justintv90 has quit [Max SendQ exceeded]
<mistnim>
I don't know sinatra, I know just basic ruby for now
<Darkwater>
like, add a text widget that loads text from http://something/blah every minute
<Darkwater>
hmm
justintv90 has joined #ruby
<Darkwater>
mistnim: sinatra is very easy
withnale_ has joined #ruby
griffindy has joined #ruby
<proteusx>
sinatra is pretty easy to use due to it being a microframework
ZeD- has joined #ruby
<Darkwater>
you literally require 'sinatra' and write what I just wrote
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
get '/foo' { 'bar' }
<Darkwater>
then run it
<mistnim>
Darkwater: does it work as an http server too?
<Darkwater>
and going to localhost/foo will return bar
<Darkwater>
yes
<mistnim>
ok I try thanks
withnale_ has quit [Remote host closed the connection]
justintv90 has joined #ruby
aganov has quit [Remote host closed the connection]
<Darkwater>
well not as an actual server, but you can use it like you want to
jcoe has joined #ruby
justintv90 has quit [Max SendQ exceeded]
withnale_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Darkwater>
gem install sinatra; echo -e 'require "sinatra" \n get "/foo" do \n "foobar!" \n end' > server.rb; ruby server.rb
<Darkwater>
should work
justintv90 has joined #ruby
<mistnim>
cool
<jhass>
mistnim: see and if you initially asked "how can I write a small web application to read my PCs temperature" you had gotten that answer promptly ;)
justintv90 has quit [Max SendQ exceeded]
withnale_ has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
<Darkwater>
yeah, it's cool to think about what you really need, but when asking for help it's better to ask a question with a lot of context
<ZeD->
trying to encode a value in base64, but the value consists of a string and a variable - something along the lines of - var_encoded = Base64.encode64("string":var), obviously in this syntax it does not work, any suggestions ?
mrmargolis has joined #ruby
<jhass>
ZeD-: "string #{interpolation}"
<ZeD->
er, the ":" is part of the string
justintv90 has joined #ruby
<ZeD->
hm, lemme try that
withnale_ has joined #ruby
<Darkwater>
"string: #{var}"
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
alternatively "string: " + var
Scrofff has joined #ruby
withnale_ has quit [Remote host closed the connection]
<jhass>
no that's not a good alternative ever :P
<ljarvis>
which isn't the same thing
justintv90 has joined #ruby
kobain has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
bantic has joined #ruby
<mistnim>
jhass yes I just made that simple context to get an answer, what I need is actually a bit more complicated, but longer to explain
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
if it's a string it is
<Darkwater>
jhass: str1 + str2
paulcsmith has joined #ruby
<Darkwater>
I'd rather write that than "#{str1}#{str2}"
<jhass>
I know the devil, I mean string concatenation
<ljarvis>
who said it's a string
<Darkwater>
that's true
justintv90 has joined #ruby
mister_solo has joined #ruby
withnale_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
<Darkwater>
actualy would it really matter
justintv90 has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 252 seconds]
withnale_ has quit [Remote host closed the connection]
<ZeD->
shweet! that worked, thanks!
<Darkwater>
when would "foo #{bar}" be different from "foo " + bar?
davedev24_ has joined #ruby
<jhass>
everytime
<ljarvis>
>> "foo " + 1
<ruboto>
ljarvis # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/380549)
justintv90 has joined #ruby
DoubleMalt has joined #ruby
<jhass>
"foo #{bar}" is ("foo " << bar.to_s)
<ljarvis>
"foo #{bar}" is the same as "foo " << bar.to_s
<ljarvis>
heh
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
oh alright
Scroff has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
mrmist is now known as mist
<ljarvis>
so yeah, that's generally why I avoid + (interpolation implicitly calls #to_s which is nice)
justintv90 has quit [Max SendQ exceeded]
mister_s_ has joined #ruby
JDiPierro has joined #ruby
justintv90 has joined #ruby
ndrei has joined #ruby
<mistnim>
Darkwater: it works! but i need it on port 80
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
then add -p 80
justintv90 has joined #ruby
<Darkwater>
though you'll have to run it as root then
justintv90 has quit [Max SendQ exceeded]
<Darkwater>
which could be dangerous
<Darkwater>
so think about it for a sec
<mistnim>
Darkwater: add -p 80 where?
codecop has joined #ruby
<ljarvis>
mistnim: is this for a production app?
<Darkwater>
ruby server.rb -p 80
<mistnim>
ljarvis: no
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
livathinos is now known as livathinos|away
<al2o3-cr>
ZeD-: you can also encode using pack/unpack :P
<jhass>
mistnim: why do you need it on port 80?
mister_solo has quit [Ping timeout: 250 seconds]
justintv90 has joined #ruby
jphenow has joined #ruby
<mistnim>
jhass: connect from my phone
justintv90 has quit [Max SendQ exceeded]
banister has joined #ruby
<adaedra>
you can connect to a different port using :port in the URI
<jhass>
mistnim: I see no reason why that would require that
<adaedra>
i.e. example.org:1337
<mistnim>
ops, I actually the server has only some open ports
tagrudev has quit [Remote host closed the connection]
<jhass>
open another one then?
<ljarvis>
i have pliers
simplyianm has joined #ruby
<jhass>
if we're talking about network internal port forwarding also note that the external and internal port can differ
momomomomo has joined #ruby
<ljarvis>
this is screaming for a reverse proxy but im scared to suggest it
<jhass>
boxcars <3
<Darkwater>
ljarvis: it's probably just a small project that's not worth overengineering
<mistnim>
not my server, I can't change open ports
<jhass>
but you can run stuff as root? oO
<mistnim>
jhass yes, it's, how do you call it? Virtual server
revath1 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
you're in a container/VM/jail?
<mistnim>
yes
<ljarvis>
jhass: that looks pretty nice
aapole has joined #ruby
coderhs has joined #ruby
<jhass>
yeah, use it as dev proxy
<jhass>
I should write a wrapper so I can do bxctl add foo.dev 1337
<ljarvis>
I use pow locally heh
<jhass>
I let my DNS respond with 127.0.0.1 for *.dev
revath has quit [Ping timeout: 276 seconds]
<jhass>
-> magic free pow on linux :P
ndrei has quit [Ping timeout: 265 seconds]
<ljarvis>
yeah i use that and nginx on linux
<ljarvis>
bit overboard but i love nginx
startupality has joined #ruby
slawrence00 has joined #ruby
casadei has joined #ruby
freerobby has quit [Quit: Leaving.]
BlueProtoman has joined #ruby
ndrei has joined #ruby
francoi__ has quit [Remote host closed the connection]
<BlueProtoman>
I'm trying to install jekyll in Ubuntu 14.04, but I get this error when compiling native extensions. http://pastebin.com/YXxE1DA0 Any thoughts?
<ruboto>
BlueProtoman, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<dgarstang>
bootstrappm: would be less rough if I could use python instead of ruby
adac has quit [Ping timeout: 276 seconds]
<bootstrappm>
uff now you're just trying to annoy people
pontiki has joined #ruby
<dgarstang>
ruby makes my eyes bleed. 16 years in tech and nothing grates my skull like ruby does. Thanks bootstrappm but I need an ec2 example. None of the examples out there work, so I pretty much just have to copy and paste
* dudedudeman
raises hand for being at work at 8am... :/
startupality has joined #ruby
pontiki has quit [Client Quit]
<ljarvis>
dgarstang: or do the research and implement it properly
mary5030 has joined #ruby
<bootstrappm>
dgarstang, I know, we're using it as a starting point
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<dgarstang>
ljarvis: I am trying. i need examples.
<ljarvis>
bootstrappm has offered you help, insulting Ruby isn't going to help you
mary5030 has quit [Remote host closed the connection]
<bootstrappm>
all you _need_ to do is read the documentation ;), one sec and i'll send it to you
<bootstrappm>
and yes please don't insult ruby, its near and dear to my heart
<dgarstang>
bootstrappm: i dont use it by choice
baweaver has joined #ruby
<bootstrappm>
it helped me get into an ivy league school at one point
mary5030 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
<dgarstang>
for some reason googling "aws-sdk v2 describe_instances" just gets me API references.
<dudedudeman>
dgarstang: what's your language of choice?
<dgarstang>
ljarvis: that doc has ec2.instances() with no contextual information aboout how ec2 was derived.
<ljarvis>
there's a "filters" hash key
<ljarvis>
dgarstang: you don't need to care about ec2, you already have that part working
<bootstrappm>
correct, filters hash key
<dgarstang>
ljarvis: not until bootstrappm told me I needed Resource instead of Client. I don't know how you'd determine that from the API reference
<bootstrappm>
so ec2.instances({filters: {name: 'blah'}})
<dgarstang>
bootstrappm: k, thanks for your help
jhooker has quit [Ping timeout: 256 seconds]
<bootstrappm>
then you do an each on it to get every instance
bruno-_ has quit [Ping timeout: 244 seconds]
jhooker has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bootstrappm>
now there's A BUNCH of possible filter parameters, you'll have to choose the ones that make sense for your use case from ljarvis's link
<dgarstang>
bootstrappm: ah, each. for each {}!<{}[{{] of whatever it is
<imperator>
looking at forwarding/delegation again for the first time in a while
<bootstrappm>
correct. to get all instances: ec2.instances.each {|instance| instance.do_something }
<imperator>
how do I delegate all the things to an object, instead of listing methods individually?
riotjones has joined #ruby
<ljarvis>
imperator: Delegator?
<bootstrappm>
also all of this won't work if you don't have your credentials setup in environment variables
<dgarstang>
bootstrappm: no matter how many times I read stuff like that in ruby it makes no sense. might as well be russian. python ... for var in thing.. ruby for var in some horrible list of symbols and squiggles
<bootstrappm>
ah, you might want to learn Perl or Smalltalk then dgarstang
<ljarvis>
imperator: SimpleDelegator will "just work(tm)"
<bootstrappm>
or just take the time to understand how Ruby woks
<dgarstang>
bootstrappm: i started with perl in 1992
<bootstrappm>
works*
* imperator
looks
<dgarstang>
bootstrappm: i've been trying for several years.
<bootstrappm>
have you used map dgarstang?
<bootstrappm>
that takes a block as a parameter in perl
k3asd` has quit [Remote host closed the connection]
<dgarstang>
bootstrappm: sure, and that's one of many reasons I moved beyond perl. perl, and ruby, same thing.
casadei has joined #ruby
bantic has quit [Read error: Connection reset by peer]
Kosuzu is now known as MuffinPimp
<bootstrappm>
you moved beyond perl because you didn't like their closure syntax + use of iterators ... to another language with the same syntax and constructs?
<dgarstang>
bootstrappm: because it's totally unreadable
bantic has joined #ruby
zacstewart has quit [Remote host closed the connection]
<imperator>
ljarvis, hm, not getting it, looks like i need two classes?
<bootstrappm>
well see, the thing with reading is ... everything is totally unreadable until you learn to read
ixti has quit [Ping timeout: 264 seconds]
<bootstrappm>
i think there's a substantial community over here that would beg to differ with you
<ljarvis>
imperator: do you want customer behaviour as well?
<bootstrappm>
but hey, to each his own, let me know if you need any more help with that AWS thing
umgrosscol has joined #ruby
<dgarstang>
bootstrappm: i generally read left to right, so var.each is very unintuitive
adimircolen has quit [Remote host closed the connection]
<dgarstang>
bootstrappm: whereas FOR var IN something is very intuitive
<bootstrappm>
that's because that's how you've learned to read, time to learn a different way to read ;)
riotjones has quit [Ping timeout: 245 seconds]
<bootstrappm>
read like a computer, they read right to left! :P
dANO_ has quit []
wildroman2 has joined #ruby
<dgarstang>
bootstrappm: english generally reads left ro right. anyway thanks again
k3asd` has joined #ruby
<bootstrappm>
no prob, gluck!
dstarh has joined #ruby
<dgarstang>
i guess ruby lets me do for var in something. ... but finding an example is tough
<havenwood>
dgarstang: Your gauge of a language seems to be how easy it is to copy/paste.
<bootstrappm>
and then folks in the language can self-organize and create country ones
<dfockler>
are there going to be ruby channels for other countries?
daveg__ has quit [Ping timeout: 245 seconds]
<ljarvis>
dgarstang: there already are
<ljarvis>
dfockler: ^
simplyianm has joined #ruby
<dfockler>
ahh ok
<dgarstang>
ljarvis: my issue is with creds tho
<ljarvis>
dgarstang: oh, that's not the gist you showed
<dgarstang>
ljarvis: yes it is... it says "`missing_credentials?'"
ramfjord has joined #ruby
ebbflowgo has joined #ruby
anisha has quit [Ping timeout: 244 seconds]
<ljarvis>
dgarstang: did you try with the example I linked to? and if so, you're still having the same issue?
cndiv has joined #ruby
<dgarstang>
ljarvis: no, because it says missing credentials...
Soda has joined #ruby
<ljarvis>
that's just the same of the method
JDiPierro has quit [Remote host closed the connection]
<dgarstang>
ljarvis: seriously?
<ljarvis>
the error is "undefined method `set?' for #<Hash:0x007f8219240a48>"
<ljarvis>
yes
Dingus has joined #ruby
<dgarstang>
om
<dgarstang>
... g
Dingus has quit [Client Quit]
<apeiros>
#ruby-COUNTRY: 3, #ruby.COUNTRY: 0
<apeiros>
any other votes? :)
<dgarstang>
ruby... i dont understand you at all. one error message apparently means something else in ruby
<dgarstang>
it's gonna be an uphill battle
<bootstrappm>
hahah you'll live dgarstang
tsou has quit [Quit: off]
ItSANgo has quit [Quit: Leaving...]
strixd has quit [Quit: 500]
* jhass
votes #ruby-LANGUAGE
<dgarstang>
https://github.com/aws/aws-sdk-ruby/issues/635 ... "If you are using the resource interface, you can use the #filter method:" ... yet now I get " `method_missing': undefined method `filter' fo"
<bootstrappm>
I don't think that's your prob though dgarstang. Try this:
startupality has quit [Ping timeout: 256 seconds]
<jhass>
(which is not the same as country)
dfinninger has quit [Remote host closed the connection]
<bootstrappm>
ohhh dgarstang, can you double check what aws sdk version you're using?
simplyianm has quit [Ping timeout: 264 seconds]
<adaedra>
jhass: what about the existing?
<dgarstang>
bootstrappm: v2
<ljarvis>
yes I agree it should be language
<bootstrappm>
well, no its the Aws namespace, its def v2
<bootstrappm>
language +1!
<dgarstang>
boto ain't this hard. :-\
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<jhass>
adaedra: like?
stoogenmeyer has quit [Ping timeout: 264 seconds]
<adaedra>
apeiros: what about the existing?*
<bootstrappm>
anyways dgarstang take the credentials off of line 10
<adaedra>
jhass: #ruby.fr
<bootstrappm>
just set it on the cnofig
<jhass>
ah
<jhass>
well, fr is the language code too
towski_ has joined #ruby
<adaedra>
(which is not really alive, but there are people in it)
<adaedra>
no, but - vs .
<dgarstang>
cbootstrappm: sorry, how?
mistermocha has quit [Remote host closed the connection]
<dgarstang>
bootstrappm: so you think it IS a credentials issue?
<apeiros>
adaedra: nothing. we might contact their founders and suggest them to use the "standard". but totally up to them what they'll do.
fuzzyhorns has quit [Remote host closed the connection]
<adaedra>
'k
shakes has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
<adaedra>
apeiros: anyway, - > .
<bootstrappm>
no its def an error on a Hash ... its just at first it seemed to be the filters hash but i actually think its the credentials hash
ebbflowgo has quit [Ping timeout: 250 seconds]
<bootstrappm>
missing_credentials is the name of the method where this error happens, not an error message, no doubt
__butch__ has joined #ruby
<dgarstang>
if I could just find a complete example of listing ec2 instances with ruby, it would help, but I'm yet to find that still.
<dgarstang>
bootstrappm: then why can't the stack trace tell me that?
<bootstrappm>
it is, well its telling me that
allomov has joined #ruby
<apeiros>
adaedra: you already voted! don't cheat! ;-p
<bootstrappm>
my theory dgarstang is that you passed the credentials hash to the Resource constructor on line 10 instead of an Aws::Credentials object like the documentation told you to
<adaedra>
apeiros: I did?
<bootstrappm>
so its calling set? (a method that exists on Aws::Credentials) on a Hash and throwing an error because it doesn't have that method
<xcesariox>
is there any one there can help me with my error? " Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/shaunstanislaus/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/binding_of_caller-0.7.2" after bundling install.
zotherstupidguy has quit [Ping timeout: 276 seconds]
bgmarx has joined #ruby
platzhirsch has left #ruby [#ruby]
<jhass>
bundle install as which user?
ascarter has quit [Max SendQ exceeded]
<dgarstang>
screw it. I just put the creds into environment variables
pandaant has quit [Remote host closed the connection]
<bootstrappm>
dgarstang: if you pass filters in with the instances method its a hash, if you use the method .filters then its name, value as first and second argument
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 276 seconds]
simplyianm has joined #ruby
adac has joined #ruby
blackmes1 has joined #ruby
sandelius has joined #ruby
keernel has quit [Quit: Leaving.]
pengin has quit [Remote host closed the connection]
AhabsBeard has quit []
baweaver has quit [Remote host closed the connection]
blackmes2 has joined #ruby
lordkryss has joined #ruby
<sandelius>
PHP reads the whole codebase on each request it seems. How in the name of (whoever you want) can that scale on large codebases?
blackmesa has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
freerobby has joined #ruby
<livcd>
offtopic: what code editor do you prefer guys ?
baweaver has joined #ruby
krisquigley has joined #ruby
<sandelius>
livcd sublime text / vim
simplyianm has quit [Remote host closed the connection]
arup_r has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
boverall has joined #ruby
<bootstrappm>
vim
RegulationD has joined #ruby
<arup_r>
hey guys I am using openSUSE 13.1 and Rvm .. I did rvm get stable and then rvm list known ... but Ruby 2.2.2 is not coming in the list.. any hints how to grab that ?
qwertme has joined #ruby
mc_fail has quit [Ping timeout: 264 seconds]
Scroff has quit [Ping timeout: 245 seconds]
casadei has quit [Remote host closed the connection]
mrmargolis has joined #ruby
endash has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 244 seconds]
peteykun has quit [Quit: Leaving]
mrmargol_ has quit [Ping timeout: 246 seconds]
<havenwood>
arup_r: rvm get head
<arup_r>
ok
<havenwood>
arup_r: or even though it isn't listed: rvm install ruby-2.2.2
<arup_r>
ahh! is it? I didn't know that..
Yiota has joined #ruby
<arup_r>
no I get it now.. havenwood after doing rvm get head
<arup_r>
thanls
ramfjord has joined #ruby
<arup_r>
let me install and do some real work with it
krisquigley has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
wallerdev has joined #ruby
JDiPierro has joined #ruby
francoi__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Lucky__ has joined #ruby
fuzzyhorns has joined #ruby
bantic has quit [Quit: bantic]
bricker has joined #ruby
imperator has quit [Quit: Leaving]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 265 seconds]
arup_r has quit [Ping timeout: 244 seconds]
adac has quit [Ping timeout: 244 seconds]
<heftig>
does anyone know of a good implementation of a tree for finding neighbors in a metric space with a custom distance function?
jds has quit [Quit: Connection closed for inactivity]
postmodern has joined #ruby
horsecowdog has joined #ruby
<heftig>
trying to deduplicate images. found a hasher that produces integers that can be compared via hamming distance; now i just need a way of indexing them efficiently
mcclurmc has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
NeverDie has joined #ruby
autrilla_ has quit [Quit: Connection closed for inactivity]
zotherstupidguy has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
zotherstupidguy has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
ReK2 has quit [Remote host closed the connection]
<bruceleez>
I'm trying to find a solution to a problem from a book. Only a few lines of code is required but I'm struggling - is there anyone here who can help?
x1337807x has joined #ruby
<heftig>
bruceleez: don't ask to ask, just ask
x1337807x has quit [Max SendQ exceeded]
DexterLB has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bruceleez>
the relevant chapter looks at arrays and iterators and the problem is at the bottom of this page. I'll copy/paste
<bruceleez>
basically i want to write a program which asks us to type in as many words as we want (one word per line, continuing until we just press Enter on an empty line), and which then repeats the words back to us in alphabetical order. OK? I cannot use the sort method though
<apeiros>
heftig: kd-tree? but what kind of algorithm uses a tree with neighbors in metric space to find duplicate images? o0
weaksauce has joined #ruby
<apeiros>
or is it a "similar images" algorithm?
<heftig>
apeiros: exactly
<heftig>
i need something like a bk-tree, vp-tree or m-tree
<apeiros>
I think somebody wrote an implementation of a proximity hash for that already. phash or so…
<jhass>
bruceleez: in future copy the URL in your addressbar, not the clone URL ;)
<apeiros>
ruboto feature? (relink and explain)
<bruceleez>
the solution is easy if I use the sort method with an array, but without it it is proving tricky
aaeron has joined #ruby
<apeiros>
(and YES, I'm aware I'm the bottleneck :(
<apeiros>
)
blaaaa has quit [Quit: Leaving]
iBloodLust has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bgmarx has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
<jhass>
bruceleez: how about inserting the new word at the right place in the array? so after the user entered a word, find the right place to insert the word
<bruceleez>
what it all comes down to is, how does the sort method work? what is the code behind it?
<iBloodLust>
am i cool yet
<apeiros>
iBloodLust: dunno. use a thermometer?
<jhass>
bruceleez: if you do want to implement a sort algorithm, the most simple one is called bubble sort
scripore has joined #ruby
<apeiros>
bruceleez: there's a ton of different sorting algorithms. wikipedia probably lists most of them.
rbowlby_ has joined #ruby
drew has joined #ruby
<jhass>
ruby's sort uses quicksort, but you don't want to implement that just yet I think ;)
<iBloodLust>
question
<bruceleez>
my attempt at writing a sort algorith starts on line 12 in the github link i shared.....using too many loops i suspect
whoami has joined #ruby
<iBloodLust>
get ready
<iBloodLust>
is mruby just got c and c++
<apeiros>
actually it uses qsort, which likely (but not necessarily) uses quicksort (despite its name) :)
<iBloodLust>
can i pair it with a language like, lets say, D?
<apeiros>
(totally relevant)
AlphaAtom has joined #ruby
whoami is now known as Guest22661
momomomomo has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
Guest22661 has quit [Max SendQ exceeded]
vyorkin2 has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
<bootstrappm>
is iBloodLust the same dude that shows up as the KKK?
momomomomo has joined #ruby
<iBloodLust>
but im black irl
<iBloodLust>
so what does that make me
sarkyniin has quit [Read error: Connection reset by peer]
<iBloodLust>
black panther?
<jhass>
?ot iBloodLust
<ruboto>
iBloodLust, this seems to be off-topic. please move your discussion to #ruby-offtopic, to keep this channel free for ruby related problems. Thanks!
phutchins has joined #ruby
<iBloodLust>
sry
<bootstrappm>
...and is also fond of irony
whoami_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_seanc_ has quit [Quit: _seanc_]
aapole has joined #ruby
symbol has joined #ruby
nikhgupta has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
Scroff has joined #ruby
tomphp has joined #ruby
bgmarx has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has joined #ruby
marr has joined #ruby
nikhgupta has joined #ruby
tvw has quit [Read error: Connection reset by peer]
bgmarx has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
lavros has joined #ruby
jsaak has quit [Ping timeout: 255 seconds]
leafybasil has joined #ruby
tvw has joined #ruby
agarie has quit [Remote host closed the connection]
Kruppe has quit [Ping timeout: 255 seconds]
<bruceleez>
jhass, with respect to your comment regarding finding the "right place in the array", could you please explain that bit more. I'm bashing my head here
bgmarx has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
<jhass>
bruceleez: if you keep order, inserting while keeping order is just a matter of finding the place of the element bigger than the element you want to insert and inserting before that
jsaak has joined #ruby
leafybas_ has quit [Ping timeout: 256 seconds]
<bruceleez>
? - You lost me there
leafybasil has quit [Ping timeout: 258 seconds]
yqt has quit [Ping timeout: 252 seconds]
<jhass>
bruceleez: [] insert "b" -> ["b"] insert "d" -> run to end, ["b", "d"] insert "c", "d" > "c", insert at 1 -> ["b", "c", "d"] insert "a", "b" > "a" insert at 0 -> ["a", "b", "c", "d"]
mdz_ has quit [Remote host closed the connection]
mdz_ has joined #ruby
vickleton has joined #ruby
qwertme has joined #ruby
rubie has joined #ruby
<apeiros>
bruceleez: essentially - when the user inserts "d", and you have (sorted already) ["a","b","c","e","f","g"] - where do you insert the "d" so the array remains sorted?
fuzzyhorns has left #ruby ["later nerds"]
<apeiros>
figure out how you find out. once you know how you find out, express that in code. done :)
ebbflowgo has quit [Read error: Connection reset by peer]
<jhass>
bruceleez: which is actually basically your sort algorithm but doing it on insertion will actually work
ebbflowgo has joined #ruby
JamesDH has joined #ruby
hoov has quit [Quit: Leaving]
<apeiros>
insertion-sort can be implemented as O(n) optimal case and O(nlogn) worst case. it's actually a pretty nice algorithm.
_seanc_ has joined #ruby
freerobby has quit [Quit: Leaving.]
commondream has joined #ruby
djellemah__ has quit [Remote host closed the connection]
bgmarx has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox0dea has joined #ruby
alexherbo2 has joined #ruby
<Ox0dea>
apeiros: Every sorting algorithm is O(n) in the optimal case, no?
bgmarx has joined #ruby
mcclurmc has quit [Remote host closed the connection]
<weaksauce>
apeiros worst and average case seems to be O(n^2) for insertion sort according to wikipedia.
<apeiros>
Ox0dea: nope
iBloodLust has quit [Quit: am i cool yet?(thank you havenwood)]
<apeiros>
weaksauce: o0
aapole has quit [Ping timeout: 245 seconds]
bgmarx has quit [Read error: Connection reset by peer]
agarie has joined #ruby
<apeiros>
weaksauce: that's only if you use linear search…
<bruceleez>
sorry im really new to Ruby and a lot of what's being written is going past my head. Can someone point to specifically which line in my code I should change?
whoami_ has quit [Read error: Connection reset by peer]
bgmarx has joined #ruby
<apeiros>
searching the right place using binary search is logn
<Ox0dea>
Insertion sort is great if you're wanting to keep a stream of data in order.
<apeiros>
and searching n times the right spot is n*logn
troulouliou_dev has quit [Quit: Leaving]
veinofstars has joined #ruby
finisherr has joined #ruby
<weaksauce>
what about moving the elements in the array?
commondream has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
skade has joined #ruby
<apeiros>
usually memcpy and not considered as its overhead is low
x1337807x has quit [Max SendQ exceeded]
<weaksauce>
worst case would be reverse order sorted
sandelius has joined #ruby
<apeiros>
comparison is the expensive part
mdz_ has quit [Ping timeout: 252 seconds]
nikhgupta` has joined #ruby
<apeiros>
worst case depends on your search algorithm
atomical has quit [Ping timeout: 248 seconds]
<apeiros>
but with linear search - yes, reversed
<weaksauce>
I was talking about insertion sort
x1337807x has joined #ruby
<apeiros>
yes, me too
<apeiros>
you may remember that insertion sort needs a search ;-)
x1337807x has quit [Max SendQ exceeded]
JakFrist has joined #ruby
<apeiros>
and you can search linearly, binary or by any other means
<apeiros>
(though, I guess linear and binary are the most common ways to search a sorted structure)
x1337807x has joined #ruby
<Ox0dea>
You guess?
x1337807x has quit [Max SendQ exceeded]
<apeiros>
I don't have data on it, therefore I guess :-p
<apeiros>
all the other search algorithms I know are rather involved.
x1337807x has joined #ruby
<apeiros>
and unless you have a very specific case, they don't offer a real benefit over binary
<Ox0dea>
Anecdata is best data.
casadei has joined #ruby
<apeiros>
o0
AhabsBeard has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
barkerd427 is now known as zz_barkerd427
<adaedra>
No data is best data.
* jhass
adjusts apeiros irony detector
gheegh has joined #ruby
<adaedra>
Instant to sort, instant to search in.
robbyoconnor has joined #ruby
<apeiros>
jhass: I hope you can find it
<adaedra>
No risk of data corruption, always backup'd.
ruv has quit [Ping timeout: 276 seconds]
<jhass>
"adjust" means "give it a big kick" of course
jaycee has joined #ruby
<apeiros>
good luck hitting it. and don't you dare missing it and kicking me instead!
xxneolithicxx has joined #ruby
<adaedra>
technically, your irony detector should be part of you
boverall has quit []
<jhass>
uh, what do you think I kick, gotta be in there somewhere
<adaedra>
so kicking it would kick you
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros>
what? no. I outsourced my irony detection.
<Ox0dea>
>> '%c' % 'ab'
<ruboto>
Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/380785)
wildroman2 has quit [Remote host closed the connection]
<Ox0dea>
Should this be considered a vestigial leftover from the time when Ruby had characters?
<weaksauce>
apeiros just dusted off my old textbook and insertion sort got its running time from not the search but the insertion
<weaksauce>
I think putting the onus onto memcpy as a way around that doesn't really work that well with large datasets
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<apeiros>
weaksauce: was that textbook written when they still used punch cards?
<weaksauce>
heh
<weaksauce>
did you just call me old :P
<apeiros>
no, I gently asked whether you're old :-D
codenihal has joined #ruby
<codenihal>
ls
<weaksauce>
not punch card old :)
<jhass>
. .. #ruby
mdz_ has joined #ruby
<Ox0dea>
ls -al
keslerm has joined #ruby
jacaballero has joined #ruby
<apeiros>
weaksauce: yeah, sure. depending on datasets and architectures, specific offsets may change.
zz_barkerd427 is now known as barkerd427
<apeiros>
and I don't have enough experience with such low level implementations to know where those boundaries are
jhooker has quit [Read error: Connection timed out]
codenihal has quit [Client Quit]
<Ox0dea>
Must be getting used to his window manager.
blackmes2 has quit [Ping timeout: 264 seconds]
<weaksauce>
that said. who writes sorting algorithms unless you need something really specific?
bricker has quit [Read error: Connection reset by peer]
<Ox0dea>
Interviewees.
NeverDie has joined #ruby
<apeiros>
in cases where insertion (and hence moving) is the bottleneck - I wonder whether it could be improved by changing how the structure is being filled. especially if you're not sorting a stream (i.e. when you know the number of elements, and can find minmax in O(n))
tvw has quit [Ping timeout: 272 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
<alanjf>
Does anyone know why this is happening? http://pastebin.com/GLd6yTCw (This is under 32-bit linux, most things build from source tarball on this systemm like openssl-1.0.2c.)
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros>
weaksauce: the only time I did was when I worked on a statistics engine and indeed had specific needs. and even then it was mostly for funsies and figuring limits :)
<apeiros>
oh, and of course university
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce>
exactly
momomomomo has quit [Quit: momomomomo]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
that's when I experimented with search algorithms as well btw. ;-)
ruv has joined #ruby
timonv has joined #ruby
<alanjf>
ruboto: Sorry about that, I thought I was using pastbin.org, not .com
<apeiros>
?ruboto alanjf
<ruboto>
alanjf, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
<alanjf>
Right
<apeiros>
no need to apologize to a bot ;-)
<Ox0dea>
alanjf: You have a /pkg directory at the root of your filesystem?
<alanjf>
So does anyone have any idea what could be causing this problem? Google indicates a lot of people have had this problem but I can't find any solutions.
<alanjf>
Ox0dea: On this system, yes.
<Ox0dea>
Why?
casadei has quit [Remote host closed the connection]
<alanjf>
IT was something that started before me, it's where everythign built from source lives.
simplyianm has joined #ruby
<Ox0dea>
Well, I suspect your standards-flouting shenanigans are the cause of your troubles.
horsecowdog has quit [Remote host closed the connection]
<alanjf>
(seems when the channel bot reposted my paste to gist it turned on ruby highlighting and turned everything orange :|)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
akkad has quit [Excess Flood]
bantic has joined #ruby
<apeiros>
jhass: ruby -c the paste and gist as .rb when syntax is ok, as .txt when not?
<alanjf>
Ox0dea: I'm nto so sure, as everything builds nad works as expected on this system. For example, NET::SSLeay for Perl built against the same openssl lib works flawlessly, as does everything else on the system that depends on it.
<jhass>
apeiros: if you can be bothered
<jhass>
:P
<apeiros>
hehehe
<apeiros>
ok
<apeiros>
much to do tonight. sadly the rest of the week-end is already occupied by other stuff :(
<apeiros>
but at the very least I'll release the current PRs
rippa has joined #ruby
<alanjf>
Does the strace there show anything useful? It shows that it finds libssl and libcryoto
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
dgarstang has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<alanjf>
strings '/pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' | grep 'rb_Digest_SHA' shows that it IS defined there, so I'm really not sure what ruby's problem is here?!
dgarstang has joined #ruby
finisherr has quit [Quit: finisherr]
jhooker has joined #ruby
skade has quit [Read error: Connection reset by peer]
niemcu has joined #ruby
<jhass>
looks like many people solved it by straight recompiling ruby
<adaedra>
recompile ALL THE THINGS
<alanjf>
jhass: Thanks but I tried that 4 times already with no change.
<adaedra>
So hot outside -_-"
<alanjf>
I also build openssl-1.0.2c
<jhass>
are you on gcc 5.1 already?
<jhass>
might cause issues too
Scroff has quit [Remote host closed the connection]
jwilson has quit [Read error: Connection reset by peer]
<alanjf>
jhass: gcc-4.6.1
jwilson has joined #ruby
<jhass>
mmh
Miphix has quit [Quit: Leaving]
pengin has quit [Remote host closed the connection]
MVPhelp has quit [Remote host closed the connection]
Vitor has joined #ruby
MVPhelp has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
<alanjf>
jhass: Before this, I never had any trouble what so ever with anything that it successfully compiled before.
<alanjf>
And pretty much every source package I've thrown at it since 2011 has compiled without trouble (baring problems with the source code itself of course.)
intinig has quit [Remote host closed the connection]
finisherr has joined #ruby
baweaver has joined #ruby
AhabsBeard has quit []
intinig has joined #ruby
Channel6 has quit [Quit: Leaving]
blue_deref has joined #ruby
<alanjf>
jhass: I do have C_INCLUDE_PATH and CPLUS_INCLUDE_PATH defined, though just a couple entries that ruby wouldn't need most like, such as /usr/X11R7/include
Guest100 has joined #ruby
commondream has joined #ruby
<alanjf>
I'll rebuild ruby with them unset.
nobitanobi has quit [Remote host closed the connection]
<jhass>
maybe some header files conflicts, maybe it's some similar thing like LD_LIBRARY_PATH pointing to strange things whatever, interesting as in that it could be caused by such things
sinkensabe has joined #ruby
<Ox0dea>
alanjf: If you're gonna rebuild, why not try trunk?
Channel6 has joined #ruby
<alanjf>
jhass: Well that post seems to indicate that the problem arose from the leading ":" chatacter in C_INCLUDE_PATH, as it compiled and worked fine without it there. I also had the leading ":" in mine.
<Ox0dea>
Hash#fetch_values is pretty nice.
leafybasil has joined #ruby
<alanjf>
Ox0dea: Because it's too hot and cramped in there. IT's over 100F outside. :p
nobitanobi has joined #ruby
intinig has quit [Ping timeout: 276 seconds]
<alanjf>
It's compiling. I'll be surprised if nuking my C_INCLUDE_PATH and CPLUS_INCLUDE_PATH vars will solve this. Those vars have been set like they are for at least 10 years. If it works I'll also try the latest git trunk.
revath has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
lavros has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mcclurmc has joined #ruby
m8 has joined #ruby
kirun has joined #ruby
allcentury has joined #ruby
hakunin has joined #ruby
pengin has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alem0lars has quit [Ping timeout: 252 seconds]
bl4ckdu5t has quit [Ping timeout: 252 seconds]
bl4ckdu5t has joined #ruby
Yiota has joined #ruby
horsecowdog has joined #ruby
someword has joined #ruby
bl4ckdu5t is now known as Guest80523
lucianosousa has joined #ruby
a346 has joined #ruby
alem0lars has joined #ruby
Vasa has joined #ruby
djbkd has quit [Remote host closed the connection]
nikhgupta has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
yqt has joined #ruby
<dgarstang>
how on earth do I use the filters with the aws ruby sdk? filters = [{ name: "tag-key", values: ["enironment"] }] ?
caseypatrickdris has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<alanjf>
jhass, Ox0dea: Still getting the same error.
<jhass>
meh, worth a shot
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renier has joined #ruby
miah has quit [Ping timeout: 276 seconds]
nikhgupta` has quit [Ping timeout: 264 seconds]
nym has joined #ruby
<alanjf>
jhass: Indeed.
<dgarstang>
everything in ruby is so hard, not the least of which there are so few code examples available
simplyianm has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
<jhass>
dgarstang: s/ruby/aws-sdk/
<jhass>
the docs of that suck indeed
<dgarstang>
^ maybe
edwinvdgraaf has joined #ruby
<dgarstang>
i mean... there's just NO examples
<dgarstang>
I'd get more matches on google for 'toothpaste aliens' than "tag-key" "tag-value" aws ruby
<dgarstang>
i woudn't have to use it all if I wasn't forced to by ohai
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<jhass>
maybe try github code search?
dopie has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
krisquigley has joined #ruby
miah has joined #ruby
tomeara has joined #ruby
timonv has joined #ruby
nertzy has joined #ruby
<alanjf>
jhass, Ox0dea: Looks like I figured out a fix on my own. I was looking in src/ruby/2.2.2/ext/digest/sha1 and I noticed that there was no sha1.o, just sha1init.o and sha1ssl.o
simplyianm has quit [Remote host closed the connection]
dionysus69 has joined #ruby
lavros has quit [Quit: leaving]
dstarh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<alanjf>
jhass, Ox0dea: So I looked in my make logs (good thing I enabled VERBOSE) and ran the same gcc command that built sha1init.o and sha1ssl.o adjusted to use -o sha1.o -c sha1.c instead
francoi__ has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<jhass>
odd
<Ox0dea>
alanjf: You should build outside the source tree.
<jhass>
anyway, might save a few poor souls by adding that to one of the stack overflow posts
<alanjf>
Ten I copied the gcc line that produced sha1.so and added sha1.o to it, copied it to /pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so, and now `ruby -rdigest/sha1 -e '1'` runs without errors.
<alanjf>
Seems this is a problem with the Makefile for sha1 (and sha2 and md5)
rdavila has joined #ruby
horsecowdog has joined #ruby
bruceleez has quit [Read error: Connection reset by peer]
<alanjf>
Ox0dea: I know, but I was mimiking what the build process had done.
Pupeno has quit [Remote host closed the connection]
<Ox0dea>
alanjf: Not what I meant; I meant that you should have invoked the initial build process from elsewhere.
<Ox0dea>
It's standard practice to avoid cluttering up the source tree with compilation output.
francoi__ has quit [Ping timeout: 258 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<joneshf-laptop>
So I went through poodr, and noticed something very interesting. Metz talks about using hooks as a good design practice. This does seem like a good idea (at least as presented), is this used often in practice?
Andriamanitra has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
sinkensabe has joined #ruby
ddfreyne has quit [Ping timeout: 272 seconds]
Mekkis has joined #ruby
ElderFain has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 264 seconds]
Jarboe has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
dbussink has joined #ruby
ElderFain has joined #ruby
mathie has joined #ruby
<alanjf>
Ox0dea: back; yeah I know what you mean, nad yes that is better practice and it is what I tend to do and probably what I should have done with ruby here.
marr has quit [Ping timeout: 256 seconds]
ddfreyne has joined #ruby
<Ox0dea>
Using them as the core of a design is probably ill-advised, but hooks are good for sprinkling in a bit of dynamic behavior where mere inheritance won't do the trick.
momomomomo has joined #ruby
knikolov has joined #ruby
Andriamanitra has joined #ruby
revath has joined #ruby
<alanjf>
shevy: Thanks for the link, I'll post a comment as you suggested.
<joneshf-laptop>
Ox0dea, thanks for the link, and makes sense
<shevy>
alanjf \o/
<shevy>
for the good of the other people
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
AlphaAtom has joined #ruby
paulcsmith has joined #ruby
pen has joined #ruby
konsolebox has quit [Remote host closed the connection]
paulcsmith has quit [Client Quit]
Vitor has quit [Remote host closed the connection]
AlphaAtom has quit [Client Quit]
mrmargol_ has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
yqt has joined #ruby
sharpmachine has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 252 seconds]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
mrmargolis has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
revath has quit [Ping timeout: 272 seconds]
bin_005_p has joined #ruby
sinkensabe has joined #ruby
sharpmachine has joined #ruby
sinkensabe has quit [Remote host closed the connection]
stoogenmeyer has joined #ruby
revath has joined #ruby
Pupeno has quit [Remote host closed the connection]
bin_005 has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
avelldiroll has quit [Ping timeout: 245 seconds]
endorphine_ has quit []
momomomomo_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<shevy>
and the good of the ruby
sharpmachine has quit [Remote host closed the connection]
toretore has joined #ruby
k3asd` has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
endorphine_ has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
dopie has joined #ruby
voxxit has joined #ruby
jbomo has quit []
jacaballero has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
tomphp has joined #ruby
blackmes2 has quit [Ping timeout: 244 seconds]
jacaballero has joined #ruby
jenrzzz has joined #ruby
casadei has joined #ruby
nertzy has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
anisha has quit [Quit: Leaving]
anisha has joined #ruby
finisherr has quit [Quit: finisherr]
djbkd has joined #ruby
joaomdmoura_ has joined #ruby
stoogenmeyer has quit [Ping timeout: 264 seconds]
commondream has joined #ruby
joaomdmoura has quit [Ping timeout: 276 seconds]
finisherr has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
rbowlby_ has quit [Remote host closed the connection]
mistnim has joined #ruby
<mistnim>
is it normal that pry takes a lot to load? Like 2 seconds for me?
<Ox0dea>
mistnim: Nah, that's about right. It does a lot.
qwertme has joined #ruby
veleno has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
nertzy has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
nobitanobi has joined #ruby
msnyon has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
joaomdmoura_ has quit [Max SendQ exceeded]
djbkd_ has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
suffice has joined #ruby
<diegoviola>
my coworker: "Do you write code with Vim?", me: "Yes"
<shevy>
yeah diegoviola - nobody is perfect
Guest100 has quit [Ping timeout: 252 seconds]
<RickHull>
mistnim: i had require times go from 30s for one gem down to 1/2 sec after `gem clean`
<diegoviola>
shevy: what do you use?
workmad3 has quit [Ping timeout: 258 seconds]
allomov has quit [Remote host closed the connection]
genpaku has quit [Ping timeout: 276 seconds]
<diegoviola>
shevy: I never said I was perfect, don't ad hominem me :)
<jgt3>
anyone know how to make validate_presence_of work with strict validations?
genpaku has joined #ruby
<jgt3>
it’s a method from the Shoulda gem
<shevy>
diegoviola nono that is not what I meant with perfect
<diegoviola>
shevy: oh, sorry, I misunderstood :)
<shevy>
diegoviola I meant that you use non-perfect software, hence you aren't perfect ;P
<diegoviola>
lol
<shevy>
I use a slightly modified bluefish 1.x variant; it's also far from perfect
<diegoviola>
Vim is perfect
hinbody has quit [Quit: leaving]
<shevy>
that vim extension thing is so ugly
djbkd_ has quit [Ping timeout: 276 seconds]
<diegoviola>
vim source code is definitely ugly
<shevy>
endif
<shevy>
if &filetype
<diegoviola>
but I thought the goal of neovim was to make vim's code not ugly
<shevy>
if a:Forward
<shevy>
endfunction
<diegoviola>
one of its goals
<shevy>
echohl
<jgt3>
diegoviola: No, the goal of neovim is mostly to work around Bram being a stick in the mud
frem has joined #ruby
<jgt3>
(iirc)
<shevy>
did you want to use the word "mud"
<shevy>
or another 3-character word :)
ledestin has joined #ruby
<jgt3>
shevy: I’m not sure what you do with sticks in your free time
<shevy>
hahaha
<mistnim>
rubysts use emacs?
<diegoviola>
jgt3: I'm not sure why Bram is so hard to deal with
<shevy>
mistnim matz is an emacs user
<jgt3>
diegoviola: I think I get it. He’s older and battle-weary
dfockler has quit [Remote host closed the connection]
francoi__ has joined #ruby
<shevy>
people become generally less fun the older they get
<jgt3>
and in many respects, tech should move slower than it currently is
chussenot has joined #ruby
<diegoviola>
jgt3: so is Linus and I don't see people complaining too much about him
munen has quit [Quit: munen]
<jgt3>
look at the current JS ecosystem
tomeara has quit [Quit: (null)]
jordanm has quit [Quit: Konversation terminated!]
<jgt3>
everything is broken
blackmes2 has joined #ruby
<jgt3>
but nobody cares
<jgt3>
because it’s “cool”
bgmarx has joined #ruby
<dorei>
jgt3: it's backward compatible broken :D
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola>
lots of people complains about Linus because he can use strong language, but I don't see a problem about patches being submitted in the linux kernel
NeverDie has quit [Read error: Connection reset by peer]
<jgt3>
people complaining about Linus’ strong language should grow a pair
<miah>
my first job was all about netware ad foxpro
<alanjf>
Both were far better than VB at any rate.
<alanjf>
miah: I know your pain far too well.
<miah>
s/ad/and
jackjackdripper1 has quit [Quit: Leaving.]
<miah>
im thankful i dont have to install the netware client on windows95 anymore
<alanjf>
Frightening.
mandarinkin has joined #ruby
<alanjf>
Like a B horror film fro mthe 70s/80s but far more terrifying
<miah>
was always a 50/50 chance the netware client would render the system unbootable
<alanjf>
yeah
<miah>
all the bizarre windows errors and then... uninstalling it.. IMPOSSIBLE
stoogenmeyer has quit [Ping timeout: 256 seconds]
<alanjf>
I remember using netware client on 3.11/WFW still.
<miah>
yes
<miah>
we did a ton of boot off floppy netware clients
<alanjf>
yep
<miah>
most of our clients were small businesses like collections agencies or nursery
<miah>
learned TONS. thankful its history
<alanjf>
Back then I remember using it in schools a lot, like high school near me then.
AlphaAtom has joined #ruby
<alanjf>
And the local community college.
<atmosx>
miah: what was the netware client about?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alanjf>
And a couple small offices.
* atmosx
didn't have a computer in 1995, suddenly it feels like "young"
AlphaAtom has quit [Max SendQ exceeded]
<alanjf>
atmosx: At the time, having a network login system
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
alanjf: ah, like ldap?
<miah>
netware was a file/print/network thing in the days of 10base2 and dos
* apeiros
had a computer back in 1987, fond memories
<atmosx>
a centralize login scheme?
<alanjf>
Sorta useful for systems loike 3.x and 9x that didn't have a good login system with their own.
<miah>
yup
<alanjf>
miah: Yeah exactly
havenwood has joined #ruby
AlphaAtom has joined #ruby
<atmosx>
apeiros: how old where you, you're 1 year younger than IIRC.
<miah>
you could do ldapish kinda stuff, and scripts to run during login
<miah>
mount remote disk paths and printers
<apeiros>
atmosx: 5
<apeiros>
it wasn't *my* computer, mind you
<yorickpeterse>
ah, some sweet home
pengin has quit [Remote host closed the connection]
<atmosx>
I had a couple of friends who had some computers in lates 80s, ATARI, Commodore 64 and an Armstrad (or something).
<atmosx>
apeiros: oh it figures.
<apeiros>
I remember my tries to understand wtf was going on with that device :D
<Sou|cutter>
apeiros: thank goodness for parents who were early computer adopters eh?
<alanjf>
heh
<miah>
i didnt have a computer until my teens, but i had lots of exposure to them outside of the home
<apeiros>
Sou|cutter: yupp. father worked in dtp, so it was even a mac.
<miah>
nice
<atmosx>
apeiros: my parents were basically keeping me away from anything digital because I was kinda attracted to these things, whiel they hated them and believed that they would harm me.
workmad3 has joined #ruby
<atmosx>
hence my first computer came in 1999 when I was 17, 1st year in univ.
<yorickpeterse>
amazing how cat milk, some treats and combing can turn a very grumpy cat into a very content cat
gianlucadv has quit [Ping timeout: 264 seconds]
<apeiros>
heh, my parents only limited the time we could use those things. and in retrospect, I think that was a good choice.
<yorickpeterse>
"Oh you're back? Well, you have 3 weeks of attention to catch up on"
StephenOTT has joined #ruby
<atmosx>
apeiros: you were using them just to play game right? Or did you start programming at a younger age?
<Sou|cutter>
yorickpeterse: where do you get cat milk? are you milking cats?
<apeiros>
atmosx: I started using hypercard very early. also did my first steps with C. but C having only english manuals, and no internet back then, ended rather quickly.
<Sou|cutter>
atmosx: I was programming LogoWriter at age 6 :)
<atmosx>
Sou|cutter: and what do you program now, age...?
<yorickpeterse>
Sou|cutter: at the grocery store
<yorickpeterse>
it's milk for cats
<atmosx>
apeiros: cool
<jhass>
it sounds like you people all want to fill #ruby-offtopic with some life ;P
<yorickpeterse>
not milk _from_ cats
<miah>
logo was fun
<Sou|cutter>
atmosx: Still LogoWriter, and I'm 7 now
<apeiros>
jhass: aaahaha, yes, totally :D
<miah>
jhass: lol ya it was quiet in here
<atmosx>
jhass: anther # ...jesus we're not *that* many.
<Sou|cutter>
j/k. I'm in my early thirties
<atmosx>
Sou|cutter: programmer?
nobitanobi has quit []
<Sou|cutter>
I'm in #ruby right? :) (sorry for the OT btw)
nobitanobi has joined #ruby
<atmosx>
Sou|cutter: I knew you were a Haskell programmer.
krisquigley has joined #ruby
Vasa has quit [Quit: ChatZilla 0.9.91.1 [Pale Moon 25.5.0/20150607220353]]
baweaver has quit []
rhllor has joined #ruby
claw_ has joined #ruby
claw has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
momomomomo has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 252 seconds]
bootstrappm has joined #ruby
<shevy>
he gave his soul away to monads
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
A124 has joined #ruby
momomomomo has quit [Client Quit]
failshell has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
sdwrage has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
learath has left #ruby [#ruby]
allomov has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
munen has quit [Quit: munen]
jackjackdripper has joined #ruby
aryaching has quit []
wildroman2 has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 252 seconds]
munen has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes2 has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
blackmes2 has joined #ruby
bronson has joined #ruby
griffindy has quit [Client Quit]
mdz_ has quit [Remote host closed the connection]
munen has quit [Ping timeout: 264 seconds]
horsecowdog has quit [Remote host closed the connection]
bmurt has quit []
ascarter has joined #ruby
jerius has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
<diegoviola>
"You use Linux? You use Vim to write code?" -- Why do I always get these type of questions from coworkers
bgmarx has quit [Remote host closed the connection]
casadei has joined #ruby
dfockler has joined #ruby
swgillespie has joined #ruby
<apeiros>
diegoviola: because those questions allow you to spread insight and knowledge
Musashi007 has joined #ruby
sepp2k has quit [Quit: Leaving.]
bin_005_p has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
hedgecore has joined #ruby
<Ox0dea>
diegoviola: What's in your @a?
diegoviola has quit [Quit: WeeChat 1.2]
sandstrom has joined #ruby
balazs has joined #ruby
<Ox0dea>
A macro to quit WeeChat? That doesn't seem very useful.
casadei has quit [Ping timeout: 276 seconds]
endorphine_ has quit []
blue_deref has quit [Quit: bbn]
<atmosx>
lol
rodfersou has quit [Quit: leaving]
_ht has quit [Quit: Konversation terminated!]
<atmosx>
What might have been is an abstraction, Remaining a perpetual possibility, Only in a world of speculation.
ndrei has quit [Ping timeout: 264 seconds]
<mozzarella>
what's your uptime, bruh?
sandstrom has quit [Client Quit]
<atmosx>
who's uptime?
<mozzarella>
you mean whose?
<atmosx>
yes, sorry
bgmarx has joined #ruby
pen has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lavros has quit [Read error: Connection reset by peer]
<cj>
I'm uptime!
dopie has quit [Quit: Leaving]
balazs has quit [Ping timeout: 255 seconds]
<mozzarella>
I found your guy
banister has joined #ruby
lavros has joined #ruby
<dfockler>
What's up time?
<dfockler>
What's the best way to share a db connection between multiple files in a library?
<cj>
chillin' smokin' a bud
<dfockler>
cj: that is one way to do it I guess
sandstrom has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jphenow has joined #ruby
<RickHull>
don't bogart that db handle
<cj>
what kind of files are these? .rb files that have a libmysqlclient-type interface to the db?
ldnunes has quit [Quit: Leaving]
<dfockler>
.arbys files
<dfockler>
using the Sequel gem
<apeiros>
dfockler: pass it around
<apeiros>
whatever uses your library being responsible
<cj>
I'm not a ruby guy, but let me think... do these .arbys files share the same process execution scope?
[H]unt3r has quit []
rippa has quit [Ping timeout: 276 seconds]
<dfockler>
apeiros: as a constant, or a method call? does it matter?
Marsupermammal has joined #ruby
endorphine_ has joined #ruby
<apeiros>
dfockler: as an argument to the constructor
<cj>
constants are not good for db connections. use the instance of the db access object to issue queries.
<apeiros>
dfockler: but given that you talk about "files in a library" instead of "classes in a library", I'd assume you're just starting to code ruby?
paulcsmith has quit [Quit: Be back later ...]
<dfockler>
in a sense
<atmosx>
dfockler: you create an instead of a ConnectToDatabase class and you pass it around. See Sequel as already mentioned.
preyalone has quit [Quit: Connection closed for inactivity]
mistnim has quit [Remote host closed the connection]
<atmosx>
dfockler: okay, so you create the connection, require that file and you have access to that object.. you just pass the object around and that's about it.
x1337807x has joined #ruby
crdpink2 has quit [Quit: q term]
arturmartins has joined #ruby
<toretore>
gotta inverse that control tho
x1337807x has quit [Client Quit]
<apeiros>
the library user should control the connection
<dfockler>
atmosx: right now I have it as a class constant so like MyClass::DB, and then require the myclass.rb file
code1o6 has joined #ruby
vyorkin2 has quit [Quit: WeeChat 1.1.1]
duggiefresh has quit [Remote host closed the connection]
nertzy has joined #ruby
idafyaid has quit [Ping timeout: 256 seconds]
crdpink has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull>
havenwood: postmodern: i'm having some issues with gems that I think is related to chruby
Deele has quit [Ping timeout: 256 seconds]
<RickHull>
require times are super high for some combinations of gems and files. profiling, I see a lot of Gem::Specification#conflicts
<RickHull>
my setup is a little quirky, so i'm probably doing something "wrong"
Pupeno has joined #ruby
<RickHull>
my main user is using rubies installed to /opt/rubies, and this user does a lot of development, and likes to be able to install gems locally to homedir
skade has joined #ruby
<RickHull>
this machine also supports other users that aren't doing development, but want to use the "app" i'm running. so that's why i'm even using chruby at system level
xxneolithicxx has joined #ruby
<RickHull>
as such, my user has a GEM_HOME pointing to homedir, but GEM_PATH has one entry corresponding to GEM_HOME, and also another corresponding to /opt/rubies
tubuliferous_ has joined #ruby
A205B064 has joined #ruby
<RickHull>
I think the two GEM_PATH entries are related to the Specification#conflicts
sdothum has joined #ruby
<RickHull>
If I login as root, just using system ruby and gems, none of this manifests
grzywacz has joined #ruby
<RickHull>
ah, found #chruby
shum has quit [Ping timeout: 276 seconds]
jphenow has quit [Quit: Be back later ...]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aaeron has quit [Quit: Leaving.]
aaeron has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
munen has joined #ruby
gusrub has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby
varunwachaspati has quit [Ping timeout: 264 seconds]
bgmarx_ has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
krisquigley has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
kodnin has joined #ruby
munen has quit [Client Quit]
failshell has joined #ruby
casadei has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
lolmaus has quit [Ping timeout: 256 seconds]
<Ox0dea>
adaedra: Come on, guy.
Pupeno has quit [Remote host closed the connection]
<adaedra>
:3
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
pragmatism has joined #ruby
Soda has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
<pragmatism>
When the hell did the #rubylang channel become private?
x1337807x has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
idafyaid has quit [Remote host closed the connection]
<RickHull>
about 2 weeks ago when #ruby-lang was merged into here
<RickHull>
assuming you mean #ruby-lang
idafyaid has joined #ruby
arooni-mobile has joined #ruby
munen has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
<Ox0dea>
pragmatism: "Grant me the serenity to accept the things I cannot change."
<pragmatism>
Ox0dea What?
<pragmatism>
RickHull Thanks.
casadei has quit [Ping timeout: 272 seconds]
<pragmatism>
Glad the channels finally merged.
scripore has joined #ruby
JakFrist has joined #ruby
<Ox0dea>
pragmatism: Then why has #ruby-lang's becoming private perturbed you so?
Cache_Money has quit [Quit: Cache_Money]
jacaballero has joined #ruby
kodnin has quit [Quit: leaving]
vdamewood has joined #ruby
Spami_ has joined #ruby
a346 has quit [Quit: a346]
rippa has joined #ruby
rubie_ has joined #ruby
bantic has quit [Quit: bantic]
wookiehangover has quit [Ping timeout: 246 seconds]
mcclurmc_ has joined #ruby
commondream has joined #ruby
JakFrist has quit [Client Quit]
Spami has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby
j4cknewt has quit [Ping timeout: 256 seconds]
DLSteve has quit [Ping timeout: 246 seconds]
rubie has quit [Read error: Connection reset by peer]
<RickHull>
Ox0dea: If i had to guess, the perturbation became serenity upon learning of the merge
Asher has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
Filete has joined #ruby
mistermo_ has joined #ruby
<shevy>
pragmatism Ox0dea is the channel philosopher
wookiehangover has joined #ruby
<shevy>
pragmatism the initial proposal to unify the two has happened by jhass here
<lucianosousa>
I can imagine that happens some strange problem about it
M-Technic has joined #ruby
<lucianosousa>
conflict with ruby in your system and rvm
<lucianosousa>
are you using linux, right?
jgt3 has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby
<lucianosousa>
can you check if you have a system ruby pack installed?
ruurd has joined #ruby
<lucianosousa>
in your root it works fine because u do not have rvm there
<lucianosousa>
or chruby
<RickHull>
using linux and chruby
kirun has quit [Quit: Client exiting]
<RickHull>
and root is using chruby's ruby
pocketprotector has joined #ruby
francois_ has joined #ruby
<ruurd>
why? why oh why?
<RickHull>
on debian, no ruby packages installed
sandstrom has quit [Quit: My computer has gone to sleep.]
<ruurd>
if it does not work on a regular user it's almost always a rights problem
bruno- has joined #ruby
<lucianosousa>
it means, two chruby installations?
<jhass>
RickHull: btw you should tell where you crosspost and keep all sides updated about made suggestions
<RickHull>
chruby is installed once, to a system location. /usr/local/share or something
<RickHull>
ruby-install to install multiple rubies to system location
ruurd has quit [Client Quit]
<lucianosousa>
but you have another ruby installation in your user path
<shevy>
my brain is currently not working. if I have a file that could be called "foo.png" but also "foo.jpg", and I want to obtain only "foo", what to use?
gusrub has quit [Ping timeout: 245 seconds]
<lucianosousa>
- /home/rwh/.gem/ruby/2.1.3/bin
hightower4 has joined #ruby
<RickHull>
lucianosousa: that's just for gems i believe? i did have a ruby installed to homedir
<RickHull>
but removed it
CloCkWeRX has left #ruby [#ruby]
<jhass>
shevy: nested File.basename?
<adaedra>
shevy: a brain
<lucianosousa>
for gems I think is the gem path
<lucianosousa>
gems, sorry
<RickHull>
jhass: thx, will do
francois_ has quit [Ping timeout: 256 seconds]
rdavila has quit [Quit: rdavila]
skade has quit [Quit: Computer has gone to sleep.]
<havenwood>
When there are more gems available it takes longer to do conflict resolution. Especially in RubyGems 2.2.2 since it doesn't have the 2.3.0 cache resolution speed fix: https://github.com/rubygems/rubygems/pull/842
mistergibson has quit [Quit: Leaving]
JDiPierro has joined #ruby
<hightower4>
Hey btw, we're a Ruby/Perl/Python shop and are looking for a couple Ruby (not Rails) developers to join the team. If interested, please msg me in private.
<shevy>
jhass aaah that was it indeed, thanks
<havenwood>
As mentioned in #chruby, update RubyGems to the latest version for security fixes as well as bug fixes.
<RickHull>
havenwood: yes, thanks, i will try the newer rubygems
<RickHull>
i'm still not convinced there isn't something wrong with my setup though
<lucianosousa>
you guys like chruby?
<havenwood>
lucianosousa: yup
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lucianosousa>
I never had a chance to it :)
ruurd has joined #ruby
<lucianosousa>
always with rvm
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babykosh has quit [Quit: babykosh]
<ruurd>
RickHull: don't run things as root if you do not absolutely need to.
sandstrom has joined #ruby
<RickHull>
ruurd: thanks for the tip :) but when installing things at the system level, you need to
<havenwood>
lucianosousa: RVM actually does support using chruby for switching Rubies.
crdpink has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
crdpink has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink has quit [Client Quit]
crdpink has joined #ruby
<RickHull>
havenwood: ok, by only using a single GEM_PATH, I get expected behavior
jenrzzz has joined #ruby
<ruurd>
installing is a different thing, yes, some dependencies can need root rights but that is really different from running some application you made in ruby or whatever as root which is a bad plan
<RickHull>
ruurd: thanks, i'm not running my app as root
<ruurd>
Good.
baweaver has joined #ruby
<havenwood>
RickHull: The more gems the more it slows down. Check the benchmark on the PR I linked.
JDiPierro has quit [Remote host closed the connection]
<ruurd>
What happens if you move things around in de GEM_PATH?
<RickHull>
havenwood: i suspect it's not just gem count
<RickHull>
but literally having multiple GEM_PATH entries
baweaver has quit [Remote host closed the connection]
<RickHull>
that generates all the conflicts
nobitanobi has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<havenwood>
RickHull: Try some empty GEM_PATHS, I doubt you can reproduce.
someword has joined #ruby
<ruurd>
Rick do you have a log or backtrace or console message I can look ar?
<ruurd>
r>t?
<havenwood>
RickHull: Though installing latest RubyGems is the best way to confirm. ;)
mistermo_ has quit [Remote host closed the connection]
<RickHull>
havenwood: what i'm getting at is, it might better to avoid the conflicts rather than resolve them
qwertme has joined #ruby
balazs has joined #ruby
<RickHull>
i think having to scan multiple paths, where the same gem (and various versions) are installed to both, generates the vast bulk of conflicts
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull>
that multiple GEM_PATH entries is a feature that comes with a cost, the cost of which is reduced in 2.2.2
rbowlby has quit [Remote host closed the connection]
<shevy>
there we go: 2.4.8 is now installed here \o/
jpfuentes2 has joined #ruby
<centrx>
I knew you could do it!
<shevy>
yeah
nofxx has quit [Remote host closed the connection]
<shevy>
I just do "urla rubygems" and it opens the link to rubygems
<shevy>
then I fetch the URL, and do "ue rubygems" and it updates with said link
senayar has joined #ruby
<centrx>
hmm, so much magic it sounds like rails
<Ox0dea>
Does main not being a Module make it impossible to "globally refine" const_missing?
<shevy>
then "ecompile rubygems" and it installs it
<shevy>
centrx oh it's almost perfect! that I have to manually fetch the URL is bad, I have to write something that checks for updates in a reliable way
jhooker has quit [Ping timeout: 252 seconds]
jhooker has joined #ruby
ruurd has quit [Quit: Zzzzz z zz ...]
<Ox0dea>
method_missing can be refined on Object to do one's black magic in a box, but what about const_missing?