<jhass>
trying to run after the most hyped language is stupid IMO, instead sharpen your skills of adopting things quickly
dn5 has joined #ruby
<jhass>
and the best way to do that is to lurk into as many things as possible, being interested in them making that easier
<Ox0dea>
JavaScript is a different sort of hype, though; the browser *is* immortal.
CloCkWeRX has quit [Quit: Leaving.]
<jhass>
but is JS in the browser, given efforts like web assembly or whatever it was?
<VeryBewitching>
guacjack: Consider this; Ruby has been made very useful. So long as it can suit a need, it's as relevant as any tool that you stack against it.
socialjackie has joined #ruby
towski_ has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
jhass: WASM is essentially a "backend" for JS, so to speak.
simplyianm has quit [Remote host closed the connection]
<jhass>
which can allow new frontends which aren't JS
<Ox0dea>
Fair enough, but the likelihood is vanishingly slim.
<VeryBewitching>
Also, consider that Java/ECMAScript evolved through a relationship with an event-driven DOM.
<jhass>
I think the likelihood for new frontends is quite high, should WASM turn out usable that is
yoongkang has quit [Remote host closed the connection]
<VeryBewitching>
On the back end, yes you can do things with it, but I feel JavaScript is stretched beyond it's purpose.
cashnguns has joined #ruby
<jhass>
JS ever being unsupported is unlikely though, granted
<Ox0dea>
VeryBewitching: Could you elaborate?
<jhass>
but look at the immense efforts people go through to make something "better" on top of JS today
tubuliferous_ has joined #ruby
solocshaw has quit [Remote host closed the connection]
<Ox0dea>
"The Good Parts" would be a much thicker book today.
dn5 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
solocshaw has joined #ruby
<VeryBewitching>
Ox0dea: Moving a front-end, DOM scripting language (I'm going back about 15 years in memory of JavaScript) meant to create interactivity in a client-side scenario into a back-end, full-stack solution where developers want "one language, behind and in front" makes me feel like the other shoe just hasn't dropped yet.
jdawgaz has joined #ruby
<Ox0dea>
VeryBewitching: I stopped reading at your parenthetical.
<VeryBewitching>
Evolution didn't just happen now.
<Ox0dea>
But it did happen.
<VeryBewitching>
Yes; it's what evolved into what I find unnerving.
<VeryBewitching>
Maybe it's the culture of JS that rubs me the wrong way.
towski_ has quit [Remote host closed the connection]
<Ox0dea>
GSD not your cuppa?
rehat_ has quit [Ping timeout: 276 seconds]
<shevy>
VeryBewitching yeah, it is convenient but I am wondering at what point it becomes weird ... say you have a project where you have like 200 of these class methods, memorizing all that for a casual user is quite scary; I only found out about Prawn.debug by chance (not that I was studying the full documentation either)
<shevy>
"This is not a guaranteed performance improvement. If the data being processed by the case condition is normalized in a manner that favors hitting a condition in the splat expansion, it is possible that moving the splat condition to the end will use more memory, and run slightly slower."
yoongkang has quit [Ping timeout: 276 seconds]
<shevy>
_blizzy_ the last time I used it, it was in the range of perhaps 80% auto-corrections but I also found that, the more files and code it works on, the slower it'll get
treaki has quit [Ping timeout: 260 seconds]
asianMike has joined #ruby
<shevy>
I am confused now ... is when *foo,'bar' worse or better than when 'bar',*foo now?
<_blizzy_>
knocked it down to 254 offenses
tulak has joined #ruby
<_blizzy_>
shevy, oh.
<_blizzy_>
Im gonna make my code 100% rubocop approved.
<shevy>
Mine are ... "Surrounding space missing for operator", "Inconsistent indentation detected."... use alias_method rather than alias ... and the much dreaded "Line is too long. [115/80]"
<shevy>
aha you got lazy and did not document it!
<shevy>
add: "Shut up rubocop."
gvaughn has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
<_blizzy_>
lib/commands.rb:121:3: C: Perceived complexity for dice is too high. [9/7]
sdwrage has quit [Quit: This computer has gone to sleep]
<_blizzy_>
hmm, seems like it changed all my _ to _foobar.
tulak has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
leifg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_>
I was going to leaqrn some more java tonight, but I guess my bot may be more important.
<_blizzy_>
*learn
longfeet has joined #ruby
KillerFox has quit [Remote host closed the connection]
KillerFox has joined #ruby
rgtk has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
bruce_lee has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bruno- is now known as Guest58657
asianMike has quit [Remote host closed the connection]
<shevy>
you have too much time, you need to write a game in ruby Ox0dea
Guest76002 has quit [Ping timeout: 240 seconds]
Guest26323 has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
Rickmasta has joined #ruby
<Ox0dea>
I do, don't I?
hololeap has quit [Read error: Connection reset by peer]
<Ox0dea>
There aren't near enough platformer RPGs.
kstuart_ has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
<shevy>
modern games are weird
tkuchiki has joined #ruby
kstuart has quit [Ping timeout: 250 seconds]
<Ox0dea>
I don't like them.
socialjackie has joined #ruby
<jhass>
molay: sounds like something your database should do for you, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP for postges for example
<jhass>
molay: but to answer the question, just :created_at => Time.now should be fine
<shevy>
"The approach taken with Go was to start with C, remove things that were difficult to use correctly, and fill in the gaps until there was nothing left that was sufficiently simple or sufficiently orthogonal to add."
<shevy>
hmmmm
lapidary has quit [Quit: lapidary]
gusrub has quit [Quit: Leaving]
kstuart_ has quit [Ping timeout: 272 seconds]
<Ox0dea>
That Gophers use the empty interface all over the place means that part of the spec is likely "wrong".
vigintas has joined #ruby
peppers has quit [Quit: Leaving]
in0perable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
cdg_ has quit [Remote host closed the connection]
iateadonut has joined #ruby
inoperable has joined #ruby
Oog has joined #ruby
vigintas has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
yoongkang has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pimpin has joined #ruby
JammyHammy has joined #ruby
<shevy>
I hate bugs
simplyianm has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
<Ox0dea>
> Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it.
pimpin has quit [Ping timeout: 250 seconds]
<jhass>
that implies darkness travels, but does it?
Rickmasta has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
SteveC has joined #ruby
sdwrage has joined #ruby
<Ox0dea>
I could try to give you a /r/shittyaskscience answer.
JammyHammy has quit [Read error: Connection reset by peer]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
dorei has quit []
x-light has joined #ruby
benlieb has joined #ruby
tubuliferous_ has joined #ruby
nertzy has joined #ruby
Channel6 has joined #ruby
braincrash has quit [Quit: bye bye]
tubuliferous_ has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
SteveC has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has quit [Remote host closed the connection]
baweaver has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
SCHAAP137 has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
benlieb has quit [Quit: benlieb]
tubuliferous_ has joined #ruby
axsuul has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincra- has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
bruno- is now known as Guest37084
xxneolithicxx has quit [Quit: Leaving.]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
IrishGringo has joined #ruby
Guest37084 has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
nertzy has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
asianMike has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kstuart_ has joined #ruby
diegoaguilar has joined #ruby
terminalrecluse has joined #ruby
terminalrecluse has quit [Max SendQ exceeded]
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terminalrecluse has joined #ruby
kstuart_ has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
eboaz_ has joined #ruby
NET||abuse has quit [Ping timeout: 264 seconds]
vigintas has joined #ruby
terminal_ has joined #ruby
arthurnn has quit [Ping timeout: 264 seconds]
Helheim has quit [Ping timeout: 264 seconds]
phreakocious has quit [Ping timeout: 264 seconds]
null__ has quit [Ping timeout: 264 seconds]
reaVer has quit [Ping timeout: 264 seconds]
bytecrawler has quit [Ping timeout: 264 seconds]
mgorbach has quit [Ping timeout: 264 seconds]
SebastianThorn has quit [Ping timeout: 264 seconds]
ozzloy has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
fluchtreflex has quit [Ping timeout: 264 seconds]
wnd_ has joined #ruby
sdwrage has joined #ruby
terminalrecluse has quit [Ping timeout: 264 seconds]
gusrub has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
skweek has quit [Ping timeout: 264 seconds]
Azure has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
sumark has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 264 seconds]
blue_deref has quit [Ping timeout: 264 seconds]
c0ncealed has quit [Ping timeout: 264 seconds]
Encapsulation has quit [Ping timeout: 264 seconds]
mprelude has quit [Ping timeout: 264 seconds]
knight_ has quit [Ping timeout: 264 seconds]
ahuman has quit [Ping timeout: 264 seconds]
ghormoon has quit [Ping timeout: 264 seconds]
scroff has quit [Ping timeout: 264 seconds]
_ko1 has quit [Ping timeout: 264 seconds]
Shapeshi1ter has quit [Ping timeout: 264 seconds]
mbeasley_ has quit [Ping timeout: 264 seconds]
SirCmpwn has quit [Ping timeout: 264 seconds]
sunya7a has quit [Ping timeout: 264 seconds]
beagles has quit [Ping timeout: 264 seconds]
eboaz has quit [Ping timeout: 264 seconds]
wnd has quit [Ping timeout: 264 seconds]
OmegaA has quit [Ping timeout: 264 seconds]
knight_ has joined #ruby
ahuman has joined #ruby
SebastianThorn has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
reaVer has joined #ruby
sumark has joined #ruby
OmegaA has joined #ruby
sunya7a has joined #ruby
Shapeshifter has joined #ruby
Azure has joined #ruby
northfurr has joined #ruby
PaulCape_ has joined #ruby
vigintas has quit [Ping timeout: 276 seconds]
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
phreakocious has joined #ruby
SirCmpwn has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
b3nt_pin has joined #ruby
ghormoon has joined #ruby
NET||abuse has joined #ruby
_ko1 has joined #ruby
b3nt_pin is now known as Guest51663
mgorbach has joined #ruby
tkuchiki has joined #ruby
dlitvak has joined #ruby
makenoise has joined #ruby
pimpin has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arthurnn has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
wnd_ is now known as wnd
_ko1 has quit [Client Quit]
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
pimpin has quit [Ping timeout: 272 seconds]
gusrub has joined #ruby
_ko1 has joined #ruby
bytecrawler has joined #ruby
dasher00 has joined #ruby
scroff has joined #ruby
c0ncealed has joined #ruby
blue_deref has joined #ruby
mbeasley_ has joined #ruby
northfurr has quit [Quit: northfurr]
arescorpio has quit [Quit: Leaving.]
gix has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
davedev24 has joined #ruby
mprelude has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 240 seconds]
devoldmx has quit [Remote host closed the connection]
gix has joined #ruby
tubuliferous_ has joined #ruby
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
justbleed has quit [Disconnected by services]
cookiez has joined #ruby
UtkarshRay has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
nertzy has joined #ruby
pepperbreath1 has left #ruby [#ruby]
coderhut has joined #ruby
baweaver has joined #ruby
tulak has joined #ruby
makenoise has quit [Remote host closed the connection]
Oli` has quit [Ping timeout: 246 seconds]
Oog has quit []
baweaver has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 240 seconds]
mooe has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rgtk has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
fedexo has joined #ruby
wa_r_ch_i__ld1 has joined #ruby
<wa_r_ch_i__ld1>
Is there a way to generate a key event from a Ruby web app? Right now I have a Rails app calling a Linux program that generates key events, but will it work for an end-user at run time?
molay has quit [Ping timeout: 240 seconds]
makenoise has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
davedev24 has quit []
bruno- is now known as Guest43238
molay has joined #ruby
cdg has quit [Remote host closed the connection]
quazimodo has joined #ruby
Guest43238 has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
gusrub has quit [Quit: Leaving]
fantazo has joined #ruby
Channel6 has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
darkf has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
tkuchiki has joined #ruby
Meow-J has joined #ruby
leafybasil has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 276 seconds]
blue_deref has quit [Quit: bbn]
vigintas has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
fantazo has quit [Ping timeout: 260 seconds]
vigintas has quit [Ping timeout: 246 seconds]
SteveC has joined #ruby
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
Outlastsheep has joined #ruby
<Ox0dea>
wa_r_ch_i__ld1: I thought you said you were doing this insanity on a server?
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
stardiviner has quit [Remote host closed the connection]
baweaver has joined #ruby
stardiviner has joined #ruby
tubuliferous_ has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
fantazo has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
Sam0163141155 has quit [Quit: Leaving]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
<wa_r_ch_i__ld1>
@Ox0dea well thats my question but i think it doesnt work
stardiviner has joined #ruby
<wa_r_ch_i__ld1>
i have a hosted app on a linux server, but i want it to simulate the key presses for the end-user
<wa_r_ch_i__ld1>
if they dont have linux + xdtool will the key presses be generated?
<Ox0dea>
There's gotta be a better way, man.
<Ox0dea>
No, they won't be.
<Ox0dea>
Well, it depends on how you've got everything wired up, I guess.
<Ox0dea>
But why aren't you just using a damned HTTP library to do the authentication or whatever?
stardiviner has quit [Remote host closed the connection]
brushbox has joined #ruby
stardiviner has joined #ruby
tref has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
wa_r_ch_i__ld1 has quit [Ping timeout: 240 seconds]
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
beast has joined #ruby
stardiviner has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
stardiviner has quit [Client Quit]
htmldrum has joined #ruby
skullcrasher has quit [Ping timeout: 240 seconds]
wa_r_ch_i__ld1 has joined #ruby
user1138 has quit [Ping timeout: 260 seconds]
skullcrasher has joined #ruby
Averna has joined #ruby
TomPeed has joined #ruby
<wa_r_ch_i__ld1>
@Ox0dea it is ntlm auth by the way
<wa_r_ch_i__ld1>
right now i just have a controller calling xdtool
TomPeed is now known as justbleed
brushbox has quit [Ping timeout: 264 seconds]
<wa_r_ch_i__ld1>
i actually need to embed the site itself, thats the sticky part. i cant just curl in or w/e
<Ox0dea>
wa_r_ch_i__ld1: Do you solemnly swear that you're up to no good?
<apeiros>
I didn't read through them, so no idea how accurate/good they are
tom_lowndes has joined #ruby
<rapeseed>
thanks :)
axsuul has quit [Ping timeout: 276 seconds]
rapeseed has quit [Quit: Leaving]
<apeiros>
skimmed through the second one. seems to be good.
guacjack has joined #ruby
vigintas has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby
vigintas has quit [Ping timeout: 252 seconds]
<zvive>
this is more of a logic question (rails) .. but say you have users... and you have teachers, students, parents, and children that all are users.. I currently have a self-referential thing setup matching teachers/students, and parents/children - via has_many :through via 2 different models. would it be more 'dry' or make more sense to just create a relationship with maybe a main_id sub_id type (parent, teacher) where the sub would then be a child or student dep
<zvive>
ending on type, then I could just have a method to get relationships based on type..?
mattwildig has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
guacjack has quit [Ping timeout: 272 seconds]
iateadonut has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
guacjack has joined #ruby
duncannz has quit [Remote host closed the connection]
symm- has joined #ruby
axsuul has joined #ruby
antgel has joined #ruby
kerunaru has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
longfeet has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
guacjack has quit [Quit: WeeChat 1.1.1]
last_staff has joined #ruby
leafybasil has joined #ruby
devoldmx has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
Jackneill has joined #ruby
djellemah has quit [Ping timeout: 265 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
htmldrum has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gguggi has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
SCHAAP137 has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
bruno- is now known as Guest88124
karapetyan has quit [Remote host closed the connection]
spider-mario has joined #ruby
last_staff has quit [Quit: last_staff]
Guest88124 has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
mozzarella has quit [Quit: WeeChat 1.2]
lubarch has quit [Client Quit]
karapetyan has joined #ruby
glenn_ has joined #ruby
glenn_ has quit [Client Quit]
roxtrongo has joined #ruby
BaroMeter has joined #ruby
scripore has joined #ruby
lapide_viridi has quit [Quit: Leaving]
skakri` is now known as skakri
fantazo has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
vigintas has joined #ruby
morf has quit [Ping timeout: 240 seconds]
kstuart_ has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
vigintas has quit [Ping timeout: 250 seconds]
antgel has joined #ruby
hkumar has quit [Ping timeout: 240 seconds]
ruby-lang215 has joined #ruby
karapetyan has joined #ruby
kstuart_ has quit [Ping timeout: 240 seconds]
mozzarella has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
trosborn has quit [Quit: trosborn]
DoubleMalt has joined #ruby
Oli` has joined #ruby
<apeiros>
shevy: ping
lenwood has quit [Ping timeout: 252 seconds]
ruby-lang215 has quit [Quit: Page closed]
trosborn has joined #ruby
fantazo has joined #ruby
trosborn has quit [Client Quit]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
ohaibbq has quit [Quit: Leaving...]
lukaszes has joined #ruby
zotherstupidguy has joined #ruby
glenny has quit [Remote host closed the connection]
treaki has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
ruurd has joined #ruby
axsuul has joined #ruby
stamina has joined #ruby
purplexed- has joined #ruby
Averna has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
baweaver has quit [Remote host closed the connection]
<Ox0dea>
It's mildly infuriating that we can refine #method_missing but not #const_missing. It's gotta be a bug, right?
<Ox0dea>
The asymmetry is just... grr.
Xeago has joined #ruby
djellemah has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
fantazo has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
lkba has joined #ruby
skade has joined #ruby
trosborn has joined #ruby
skade has quit [Client Quit]
nertzy has joined #ruby
Xeago has quit [Remote host closed the connection]
trosborn has quit [Client Quit]
kirun has joined #ruby
baweaver has joined #ruby
roshanavand has joined #ruby
lukaszes has joined #ruby
sdothum has joined #ruby
vigintas has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
lubarch has quit [Quit: leaving]
ruurd has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
doddok has quit [Quit: Leaving]
<Papierkorb>
Is there a gem or tool, which lets me save my pry session as .rb file? Like, when I type in a Class, figure it does what I want, and now I want to save it into a file.
Spami has joined #ruby
minimalism has quit [Quit: leaving]
<Ox0dea>
Papierkorb: You'd almost certainly be better off incorporating Pry into your editor.
<Ox0dea>
"REPL-driven development" doesn't mean you've actually got to be *at* the REPL while developing.
k3asd` has quit [Read error: Connection reset by peer]
<pontiki>
edit the class; then you can write it to a file
bruno- has joined #ruby
k3asd` has joined #ruby
bruno- is now known as Guest13864
_blizzy_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rob_ has quit [Quit: rob_]
sabram__ has joined #ruby
sanjayu has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass>
shevy: since ruby doesn't overload on argument count, def +(o); and def +; would be the same method, so you need something to disambiguate a.+(b) (a+b) from a.+() (+a)
skcin7 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
skcin7 has joined #ruby
dome22xl has joined #ruby
dome22xl has quit [Client Quit]
roxtrongo has joined #ruby
lsv has joined #ruby
Rickmasta has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
huzzah_ has quit [Quit: Lost terminal]
lsv_ has quit [Ping timeout: 240 seconds]
yonatankoren has joined #ruby
<shevy>
havenwood is tenderlove speaking already?
ruurd has joined #ruby
<Ox0dea>
I'm serializing a massive nested hash whose keys are all short strings; any sense in using symbols instead?
Xeago has quit [Remote host closed the connection]
dfockler has joined #ruby
mikecmpbll has joined #ruby
Phage has joined #ruby
tref has quit [Quit: tref]
ruid has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
DEac- has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
rehat_ has joined #ruby
<Ox0dea>
shevy: They just went for lunch.
k3asd` has joined #ruby
<Ox0dea>
I'll do that too if I don't get all Strings.
<Ox0dea>
>> [*ObjectSpace.each_object].sample 3
<ruboto>
Ox0dea # => [" end\n", <RubyVM::InstructionSequence:find_full_gem_path@/execpad/interpreters/ruby-2.2.0/lib/rub ...check link for more (https://eval.in/468949)
<Ox0dea>
Yay!
dviola has joined #ruby
<shevy>
Ox0dea damn lunch
<shevy>
they should talk while eating
subscope has quit [Quit: Leaving]
<shevy>
real programmers code all the time, even upon toilet time
dtordable has quit [Remote host closed the connection]
<jhass>
push_data already being a string, "#{push_data}" is entirely redundant, if it weren't a string, .to_s is preferred if there's no concatenation happening
solars has quit [Ping timeout: 276 seconds]
yonatankoren has quit [Quit: ZNC 1.6.1 - http://znc.in]
yonatankoren has joined #ruby
synthroid has quit []
stannard has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
sw has left #ruby [#ruby]
DMRadford__ has joined #ruby
mattwildig has quit [Remote host closed the connection]
tref has quit [Quit: tref]
mattwildig has joined #ruby
DMRadford has joined #ruby
ruby-lang656 has joined #ruby
<ruby-lang656>
test
nertzy has joined #ruby
<jhass>
whatcha testing?
DMRadford_ has quit [Ping timeout: 265 seconds]
DrD has quit [Remote host closed the connection]
Azure has joined #ruby
DMRadford_ has joined #ruby
mattwildig has quit [Ping timeout: 252 seconds]
DMRadford__ has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 264 seconds]
<shevy>
this channel
DMRadford has quit [Ping timeout: 255 seconds]
DrShoggoth has joined #ruby
ruby-lang656 has quit [Ping timeout: 246 seconds]
stannard has quit [Remote host closed the connection]
n_blownapart has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
erbesharat has joined #ruby
ramfjord has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
<yardenbar>
Hi all, I'm trying to install curb 0.8.8 on Ubuntu Wily. it succeeds when I use 'gem install...' but when I try to use 'rvm 2.0.0-p645 do bundle install --path vendor/bundle --deployment --without COUPLE_OF_GROUPS_HERE' it failes with 'Makefile:223: recipe for target 'curb_easy.o' failed'
northfurr has quit [Quit: northfurr]
<yardenbar>
Any one encountered this?
mistermocha has joined #ruby
northfurr has joined #ruby
johnzorn has joined #ruby
mghaig has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
<shevy>
sounds as if you are trying to compile some C code there?
<apeiros>
shevy: yes, I meant literal_parser and your request for adding ranges
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
ah
<shevy>
yeah I needed precisely that to turn "strings" into the corresponding ruby object
<shevy>
I tried to add Ranges, it sorta works but it was hackish
<shevy>
what I did that is :)
<shevy>
I needed it for something such as:
<shevy>
'@foobar = [1,2,3]'
mistermocha has quit [Ping timeout: 240 seconds]
<shevy>
I was a bit surprised that Ranges were not handled but as jhass pointed out, it's probably a very old project altogether
<apeiros>
shevy: it is pretty old. still works fine, though.
x-light has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
<apeiros>
ranges were an oversight, I believe. adding it was quite trivial.
<apeiros>
I think I'm also missing {"foo": value} as valid symbol style in hashes.
tlaxkit has joined #ruby
<jhass>
I think there also was an eval you can get rid of now since const_get handles :: resolution now
Z00t has joined #ruby
<apeiros>
jhass: yes. though I have to dynamically decide upon which to use.
shlomo has joined #ruby
vigintas has joined #ruby
dikaio has quit [Ping timeout: 252 seconds]
<shlomo>
Which key-value pair does Hash#shift remove? Is it guranteed to be oldest one? I can't tell from the documentation
TheNet has joined #ruby
devoldmx has joined #ruby
northfurr has quit [Quit: northfurr]
goodcodeguy has joined #ruby
northfurr has joined #ruby
atmosx has quit [Quit: Lost in trance]
mattwildig has joined #ruby
<shevy>
yardenbar I just compiled curb, it's ruby curl bindings so you have to see that your curl works fine; my curl version is: curl-7.45.0
<jhass>
shlomo: hash is insertion ordered, though I wish it wouldn't have these operations, depending on the order of a hash is shitty
nateberkopec has quit [Quit: Leaving...]
<shlomo>
jhass: ok thanks
tlaxkit has quit [Quit: ¡Hasta luego!]
platzhirsch has joined #ruby
dviola has quit [Quit: WeeChat 1.3]
sanjayu has quit [Ping timeout: 272 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rgtk has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
|ifei5good has joined #ruby
naftilos76 has joined #ruby
daivyk has joined #ruby
nateberkopec has joined #ruby
northfurr has quit [Quit: northfurr]
|ifei5g00d has quit [Ping timeout: 240 seconds]
mghaig has joined #ruby
northfurr has joined #ruby
shiru has joined #ruby
baweaver has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
<yardenbar>
shevy, Will do, thank you
<havenwood>
I like our fancy new Hash#dig and Hash#to_proc methods.
mghaig has quit [Read error: Connection reset by peer]
devoldmx has quit [Remote host closed the connection]
<havenwood>
I also like saying "doubly-circular linked list." Sounds fancy.
<Yzguy>
yeah but basically Time.now, save it to a variable, do your process, do another Time.now, and subtract the start time from the end time
nateberkopec has quit [Quit: Leaving...]
<Ox0dea>
Yzguy: Very insightful. :P
<Yzguy>
I think people get tripped up a little thinking about it, like you're writing code, there is probably a process to follow, but yeah it's that simple haha
<perturbation>
can someone talk me off the ledge with frozen strings? Making all strings immutable by default seems... bad (worse string concatenation, needing a stringbuilder(?), lots of rewriting needed whenever mutate a string in old code, etc.)
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
Yzguy: For what it's worth, I think ibloodlust immediately understood what was going on in the code.
<perturbation>
What are the advantages? Less memory usage / thread safety?
erbesharat has quit [Quit: erbesharat]
mghaig has joined #ruby
<Yzguy>
I think so too. I was just in the same thing the other day. I just overthought it
<Ox0dea>
perturbation: That's about the size of it.
<Ox0dea>
It's just a small step toward embracing immutability.
<Ox0dea>
But I don't think it's in line with the language's other tenets.
<perturbation>
+1 to that
stamina has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
<Ox0dea>
>> require 'fiddle'; class Object; def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8; end end; s = 'foo'.freeze; s.thaw; s.frozen?
<perturbation>
hmm... well I know C but I haven't looked at the Fiddle module before... interesting
bMalum has quit [Quit: bMalum]
tildes has quit [Ping timeout: 276 seconds]
cornerma1 has joined #ruby
NeverDie has joined #ruby
FooMunki has quit [Quit: FooMunki]
Rollabunna has quit [Ping timeout: 272 seconds]
shlomo has quit [Quit: WeeChat 1.3]
mghaig has quit [Read error: Connection reset by peer]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
mistermocha has joined #ruby
<Ox0dea>
perturbation: It's pretty nifty. You can get up to all sorts of nasty tomfoolery.
TheHodge has quit [Quit: Connection closed for inactivity]
<Ox0dea>
For instance, since every Symbol is actually backed by a frozen String, you can walk them, thaw them unconditionally, and append to them, and you'll have modified every Symbol.
<perturbation>
thanks 0x0dea the diagram really helps explain... needed to look up Fixnum#~ to find out one's complement though heheh
<Ox0dea>
*two's complement.
<Ox0dea>
Oh, it is the one's complement.
otherj has joined #ruby
<perturbation>
that's evil but kind of awesome
<Ox0dea>
But yeah, it's the same as C's ~ operator.
tulak has joined #ruby
roxtrongo has quit [Remote host closed the connection]
<Ox0dea>
I mistakenly thought there might be a difference since Ruby's integers can be arbitrarily large, but that's only true of Bignum, not Fixnum.
<Ox0dea>
I think ibloodlust isn't doing anything terribly sensitive just yet.
Rickmasta has joined #ruby
user1138 has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
m3_del has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
m3_del has joined #ruby
rikkipitt has joined #ruby
<shevy>
you are so mean to ibloodlust Ox0dea
<Ox0dea>
You needn't've interpreted my comment so negatively.
<Ox0dea>
What's wrong with supposing somebody just needs a simple sleep loop?
<shevy>
but he doesn't want to do a simple sleep
<shevy>
he wants to do something
dlitvak has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
<Ox0dea>
He wants to do something in a simple sleep loop.
veg_ has quit [Ping timeout: 276 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.3]
sinkensabe has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
Jackneill has quit [Remote host closed the connection]
colegatron has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
k3asd` has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rikkipitt has quit [Quit: Leaving...]
_stu_ has quit [Quit: _stu_]
chipotle has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching>
G'day folks.
karapetyan has quit [Remote host closed the connection]
framlinqp is now known as framling
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
benlieb has joined #ruby
karapetyan has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
tref has quit [Quit: tref]
Darkchaos has joined #ruby
_stu_ has joined #ruby
<Darkchaos>
Hey Guys, I have the following question: I start out with template engines and sinatra. I am curious: Is there something to have multiple "styles" as something between the templates? And/Or is there something prebuilt to have a simple page with login and a sidebar on mobile devices?
sinkensabe has joined #ruby
tref has joined #ruby
perturbation has quit [Quit: Leaving]
_blizzy_ has joined #ruby
<BraddPitt>
has anyone read Ruby Under a Microscope and would you recommend it for learning low level implementation of Ruby, or some other resource (free or paid)
nateberkopec has quit [Quit: Leaving...]
rakm has joined #ruby
adac has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
molay has quit [Quit: Leaving]
mercurius has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
Oog has joined #ruby
Pupp3tm4st3r has joined #ruby
htmldrum has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
Oog has quit []
Pupp3tm4st3r has quit [Remote host closed the connection]
felixr has joined #ruby
lokulin has quit [Changing host]
lokulin has joined #ruby
moeabdol has joined #ruby
SCHAAP137 has joined #ruby
chipotle has joined #ruby
aibot has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
roxtrongo has joined #ruby
quazimodo has joined #ruby
mesamoo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
user1138 has quit [Remote host closed the connection]
mghaig has joined #ruby
TheHodge has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
dn5 has joined #ruby
<ihme-TTilus>
ibloodlust: what do you mean by "defaly between frames"?
<ibloodlust>
like a time delay, to control the animation speed
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ihme-TTilus>
ibloodlust: just draw same image several times
<Ox0dea>
Nah, don't do that.
dbnoch has quit [Read error: Connection reset by peer]
aevitas has joined #ruby
<ihme-TTilus>
or skip drawing?
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<shevy>
ibloodlust loop itself is a keyword by the way, don't use keywords as arguments; same reason such as: def foo(class = 'bar')
<Ox0dea>
ihme-TTilus: A very simple approach would be to incremement a @tick variable in #update, and the only actually do the drawing in #draw if @tick % 60 == 0.
AustinMatherne has quit [Remote host closed the connection]
dn5 has joined #ruby
tref has quit [Quit: tref]
AustinMatherne has joined #ruby
<Ox0dea>
TTilus: I singled out Canada, but there are at least two other syllabaries that use "foo"; is nothing sacred?!
dn5 has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
atomical has quit [Read error: Connection reset by peer]
<leitz>
Using antiquated Ruby (1,8.7), can you insert modules and remove modules as your program runs?
bruno-_ has quit [Ping timeout: 255 seconds]
Success has joined #ruby
d5sx43 has joined #ruby
zotherstupidguy has joined #ruby
PaulCape_ has quit [Quit: .]
northfurr has joined #ruby
fedexo has joined #ruby
ibloodlust has quit [Quit: Page closed]
PaulCapestany has joined #ruby
rehat_ has quit [Ping timeout: 265 seconds]
<Success>
is there a way i can pas --no-check-certificates or something of the sort to ruby (or globally set it)
_stu_ has quit [Quit: _stu_]
d5sx43 has quit []
Xeago has joined #ruby
<jhass>
Success: luckily not
wildlander has quit [Quit: Saliendo]
<shevy>
hehe
<Success>
eh well the thing is I'm trying to "ruby configure" for rubinius and I'm getting lots of "ERROR: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"
<Success>
I already tried the copy cert thing
<TTilus>
leitz: insert modules as in dynamically loading stuff? yes
x-light has quit [Ping timeout: 264 seconds]
nothing_ has joined #ruby
patdohere has joined #ruby
nothing_ has left #ruby [#ruby]
<Ox0dea>
TTilus: I think it's the removal with which leitz is having trouble.
Sam0163141155 has joined #ruby
<TTilus>
thats the tricky part
* leitz
is having lots of trouble. Have been out for a bit.
<leitz>
Lemme post the theory I'm working on.
<havenwood>
Success: It's gem installs that are failing?
Xeago has quit [Remote host closed the connection]
<havenwood>
Ox0dea: ouch...
dlitvak_ has joined #ruby
<Ox0dea>
leitz: Well, why do you think you'll need/want to dynamically remove inclusions?
<Ox0dea>
Also, why are you stuck on 1.8.7 for what appears to be a game?
IrishGringo has joined #ruby
<leitz>
Ox0dea, the names of the attributes for each career module like Marine and Pirate will remain the same. The vaules will change and I want to ensure the old is gone as not all Careers have all attributes.
djbkd has joined #ruby
dn5 has joined #ruby
Oli` has joined #ruby
<leitz>
And my dayjob requires 1.8.7, so I use the game as a fun way to learn ruby.
dlitvak has quit [Ping timeout: 264 seconds]
<Ox0dea>
leitz: Sounds like you might want OpenStruct.
trosborn has joined #ruby
<Ox0dea>
Or else Marine and Pirate could subclass something like MaritimeCareer.
Guest23092 has quit [Ping timeout: 246 seconds]
user1138 has quit [Remote host closed the connection]
<leitz>
Yeah, I was playing with OpenStruct a couple months ago but lost track of where I was. I've been wanting to refactor the game stuff to use more OO since I tend to just use hashes and JSON.