<apeiros>
I'd sooo love to participate in something like this
<ddfreyne>
apeiros: The directory in which I develop is even called 'ev', rather than 'spaaace' :D
<apeiros>
but after crashing a couple of kerbals into the mün, I should continue working on my project :-/
<ddfreyne>
heh
<ddfreyne>
Which project?
<apeiros>
currently: jacob, a webframework to obliterate all webframeworks
<apeiros>
well, a web*app*framework
<apeiros>
currently working on getting `jacob new APP` + `jacob server` to work. it mostly does, but is still very rough.
<ddfreyne>
I think I am getting close to the point where I need to implement an AI for NPC ships… I don't really know how to tackle that though.
elia has quit [Quit: Computer has gone to sleep.]
<apeiros>
AI, as in: antagonistic intelligence :o)
<apeiros>
I keep forgetting in what context config.ru is executed… :-S
guns has quit [Quit: guns]
franzip has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
retro|sk has quit [Ping timeout: 250 seconds]
Cakey has joined #ruby-lang
Miphix has joined #ruby-lang
arupsaha has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
retro|cz has joined #ruby-lang
charliesome has quit [Ping timeout: 240 seconds]
<ddfreyne>
apeiros: By the way, EV was what me got into programming in the first place :)
charliesome has joined #ruby-lang
<apeiros>
oh, wow, really? interesting. how did that go? :)
* apeiros
has fond memories of playing with EV's mission and ship designer
robbyoconnor has quit [Ping timeout: 276 seconds]
arupsaha has quit [Remote host closed the connection]
caike has joined #ruby-lang
arupsaha has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
arupsaha has quit [Ping timeout: 264 seconds]
palomer has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Ping timeout: 255 seconds]
arupsaha has joined #ruby-lang
ikrima has joined #ruby-lang
metamaterial has joined #ruby-lang
omegahm has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby-lang
fragamus has joined #ruby-lang
mbj has quit [Quit: leaving]
VTLob has joined #ruby-lang
arupsaha has quit []
mindriot101 has joined #ruby-lang
mindriot101 has quit [Client Quit]
mykoweb has joined #ruby-lang
omegahm has joined #ruby-lang
alex-quiterio has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
iTrojan has quit [Ping timeout: 264 seconds]
mykoweb has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
arefaslani has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<arefaslani>
How can I define a reversible set of actions like a transaction... For example downloading a file then rename it then moving it to a directory and if one fails, reverse all the actions...
rippa has quit [Ping timeout: 258 seconds]
mykoweb has joined #ruby-lang
yfeldblum has joined #ruby-lang
<jhass>
arefaslani: define a class that defines and executes such an action and also the reversal. Then build your task by making an array of those actions, iterate through it and push successfully executed actions to a new array. If you encounter a failure iterate the completed actions and call the undo method on them
<momomomomo>
jhass: arefaslani right, you'll want to carefully manage your arguments to each function so that you can go back and reverse the process exactly
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
faces has quit [Ping timeout: 258 seconds]
face has joined #ruby-lang
<apeiros>
momomomomo: or just remember what artifacts need to be removed/recreated
<momomomomo>
apeiros: depending - sometimes it's not as simple as deleting an artifact if your'e modifying existing files.. arefaslani just posted an example of one transaction
<momomomomo>
could be doing other stuff
<momomomomo>
anyways, long time no see apeiros :p
<apeiros>
momomomomo: hence …/recreated
<apeiros>
momomomomo: I'm almost always here :)
<momomomomo>
:P what are you working on nowadays?
<apeiros>
webapp-framework
<katlogic>
web 3.0
<arefaslani>
thanks you guys jhass, momomomomo, apeiros
<apeiros>
katlogic: na. all the stuff is already there. I just put it in a nice and opinionated package.
<katlogic>
Anything ruby is opinionated.
<momomomomo>
ha
<apeiros>
I disagree. but I'm not willing to start an argument.
<momomomomo>
apeiros: is it OSS?
<apeiros>
will be
<apeiros>
almost all my stuff is BSD/MIT licensed
<momomomomo>
neat, let me know if you want some help with anything apeiros
<momomomomo>
I can always work myself a little faster to death
<apeiros>
momomomomo: I might take you up on that offer :)
<momomomomo>
:) this month is a little hectic, I owe 300 hours, but I can do some light issues, nex tmonth should be a little more open
<apeiros>
I hope to have a very very rough first alpha ready tonight. might add you to the private repo.
bin7me has quit [Remote host closed the connection]
SilkFox has joined #ruby-lang
nathanstitt has joined #ruby-lang
SilkFox has quit [Ping timeout: 252 seconds]
caike has quit [Quit: Leaving.]
simono has joined #ruby-lang
<yorickpeterse>
whitequark: ping
mehlah has joined #ruby-lang
<whitequark>
pong
<yorickpeterse>
Ragel question: is there a way to create a rule that matches everything *except* a specific sequence? Basically something like `any+ 'foo'` where `any+` does *not* include "foo"
<yorickpeterse>
Messing around with :> and such but not quite getting there
<yorickpeterse>
since :> matches on the first character
<whitequark>
any+ - "foo"
<yorickpeterse>
I suppose I can do `any+ foo` and then subtract whatever `foo` hsa
<yorickpeterse>
context:
<yorickpeterse>
Trying to make matching <![CDATA[foo]]> more efficient. Right now I mark start/end positions and use that to calculate the ocntents ("foo" in this case)
<whitequark>
that's fine
<yorickpeterse>
I'm looking for a way to do something like `any+ - "]]>"` and have `any+` *not* include "]]>"
<whitequark>
oh, you want that
<whitequark>
hang on
<yorickpeterse>
e.g. now I have `any* cdata_end` (cdata_end = "]]>") but then I need to chop "]]>" off the value
* whitequark
sighs
|jemc| has joined #ruby-lang
<whitequark>
any* @{ cdata_end_at = p } "]]>"
<yorickpeterse>
hm lets see
<yorickpeterse>
hm, that doesn't quite work. I suppose I can go with value subtraction for the time being
<whitequark>
what?
<whitequark>
how does it not work?
<whitequark>
errrrr
<whitequark>
%{, not @{
<yorickpeterse>
Yeah @{ } gets executed way more than it should be in this case
<whitequark>
yes, @{ is a different thing
Cakey has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 245 seconds]
<|jemc|>
% is when the machine its attached to transitions out of a final state, I believe
<yorickpeterse>
meh, this works for me I suppose: `any* cdata_end => { value = data[ts...(te - 3)] }
<whitequark>
|jemc|: correct
allomov has joined #ruby-lang
<yorickpeterse>
oh neato, getting rid of some of this buffering crap I had made the lexer a tad faster too
palomer has quit [Ping timeout: 240 seconds]
<yorickpeterse>
not webscale just yet though
<|jemc|>
heh
iTrojan has joined #ruby-lang
* |jemc|
needs to resist the urge to work on his toy language today and do the stuff that is related to money coming in
<whitequark>
the spice must flow!
<|jemc|>
but it's not looking good when I wake up and get on IRC and there's talk of ragel going on
<yorickpeterse>
ragel ragel ragel ragel state machines ragel ragel
<yorickpeterse>
colm
<yorickpeterse>
actually curious about Ragel 7
<whitequark>
ask adrian
<yorickpeterse>
I meant that as in, curious to see how it pans out
<yorickpeterse>
I know what's going on with it
franzip has quit [Quit: ...]
enebo has joined #ruby-lang
arefaslani has quit [Ping timeout: 276 seconds]
arefaslani has joined #ruby-lang
caike has joined #ruby-lang
SilkFox has joined #ruby-lang
caike has quit [Ping timeout: 252 seconds]
alex-quiterio has quit [Quit: Leaving.]
alex-quiterio has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
<yorickpeterse>
ok random and perhaps a dumb question: if I copy a string using strndup() and pass it to rb_str_new_cstr(), MRI will take care of freeing the memory of the C string (if needed), right?
<yorickpeterse>
bit of a derp question because my guess is "yes"
michaeldeol has joined #ruby-lang
SilkFox_ has joined #ruby-lang
SilkFox has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby-lang
houhoulis has joined #ruby-lang
SilkFox_ has quit [Read error: Connection reset by peer]
toastynerd has quit []
SilkFox_ has joined #ruby-lang
sdouglas has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 276 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
Cakey has quit [Ping timeout: 245 seconds]
arefaslani has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 264 seconds]
alexju has joined #ruby-lang
x0f_ has joined #ruby-lang
alex-quiterio has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
alexju has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
thmzlt has joined #ruby-lang
nhmood has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
centrx has joined #ruby-lang
arefaslani has joined #ruby-lang
twright has joined #ruby-lang
spuk has joined #ruby-lang
spuk has quit [Changing host]
spuk has joined #ruby-lang
spuk is now known as _spuk
apeiros has joined #ruby-lang
allomov has quit [Ping timeout: 250 seconds]
arefaslani has quit [Ping timeout: 240 seconds]
relix has joined #ruby-lang
arefaslani has joined #ruby-lang
MartynKeigher has joined #ruby-lang
alexju has joined #ruby-lang
alexju has quit [Remote host closed the connection]
caike has joined #ruby-lang
dsp___ has joined #ruby-lang
alexju has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
nathanstitt has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
TvL2386 has joined #ruby-lang
mehlah has joined #ruby-lang
caike has quit [Ping timeout: 265 seconds]
amclain has joined #ruby-lang
arefaslani has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
MartynKeigher has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
Daniel90 has joined #ruby-lang
<Daniel90>
Hi guys, I could use your expertise for a simple question. Is it, or is it not possible to variableize calling a method of another class. For example, class_name.new.method_name
<Daniel90>
Right at the end of a program here and I've Google'd around for a good hour.
<Daniel90>
I did see that page actually, I'm not an experienced developer unfortunately and didn't quite understand what they were getting at.
kalehv has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
<Daniel90>
And I still don't to be honest.
<jhass>
maybe if you gist the code you have, alongside some pseudo code that would do what you want, we can show you the working version and that'll make it clear
<Daniel90>
I see "object.public_send :public_foo" but I don't see a way to variableize the class name itself
arefaslani has quit [Ping timeout: 250 seconds]
<apeiros>
Daniel90: you didn't say anything about class by variable name…
<jhass>
or just pass in the class, def call_stuff klass; klass.new.stuff; end; call_stuff Foo
arefaslani has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
<Daniel90>
Sorry, you're quite right, my origional post was incomplete. Could you give an example, for say, calling a method "dog" of a class "animals"
MartynKeigher has joined #ruby-lang
<apeiros>
Daniel90: I gave you an example of calling new on Array
<jhass>
Daniel90: don't make up analogies, describe your real problem
<apeiros>
note: while both, const_get and public_send prefer a Symbol as argument, they both accept strings just fine too. so no need to manually it if you have the name as a string.
nathanst_ has joined #ruby-lang
nathanstitt has quit [Ping timeout: 255 seconds]
<Daniel90>
Okay, my real problem is that my program needs to run classes and methods defined in a yaml config file. Hence needing both sides to accept variables. Thanks for your help, I'll try that out now.
arefasla_ has joined #ruby-lang
<Daniel90>
So, the way I see it is: Object.const_get("#{class_name}").public_send("#{method_name}")
<Daniel90>
is that correct?
<apeiros>
yes. but the string interpolation is pointless
<apeiros>
with x = "foo"; "#{x}" is an expensive way to say x
<Daniel90>
Very true, thank you.
<apeiros>
but if you want fancy code, you can nest it as many times as you want: "#{"#{"#{"#{class_name}"}"}"}"
<Daniel90>
I'll stick with simplicity thanks haha
<Daniel90>
Hmm, I get the following error with that code, although the class and method names are correct
<Daniel90>
`public_send': undefined method `Perform_apt_get_update' for Apt_get_update:Class (NoMethodError)
mykoweb has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
mykoweb has joined #ruby-lang
arefaslani has quit [Ping timeout: 276 seconds]
elia has joined #ruby-lang
mykoweb has quit [Read error: No route to host]
mykoweb has joined #ruby-lang
<Daniel90>
Perhaps due to the way I'm requiring: require_relative(file_path)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
no
<apeiros>
a file can either be required or raises because it can't be required.
mykoweb has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
<Daniel90>
Okay
mykoweb has joined #ruby-lang
kitak has joined #ruby-lang
<Daniel90>
Then I guess it can only be something wrong with: Object.const_get(class_name).public_send(method_name)
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
mykoweb_ has joined #ruby-lang
<apeiros>
Object.const_get(class_name) gets you the *class*, not an instance of it
<apeiros>
so if you try to call an *instance method*, you first have to create an actual instance.
<apeiros>
you can't do Array.push(1,2,3) either, because you need an actual array, not the class.
tbuehlmann has joined #ruby-lang
timmmaaaayyy has quit [Ping timeout: 252 seconds]
mykoweb has quit [Ping timeout: 240 seconds]
<Daniel90>
Okay I understand. Is there simply a ".new" I need to append to Object.const_get(class_name).public_send(method_name)
<apeiros>
I don't know what your class needs to be instantiated.
<apeiros>
but it's certainly not appended to Object.const_get(class_name).public_send(method_name)
<apeiros>
(you don't do Array.push(1,2,3).new either, right?)
timmmaaaayyy has joined #ruby-lang
sdouglas has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<Daniel90>
My class doesn't take any parameters. It simply needs to execute.
elia has joined #ruby-lang
timmmaaaayyy has quit [Read error: Connection reset by peer]
<whitequark>
harsh
elia has quit [Client Quit]
timmmaaaayyy has joined #ruby-lang
alex-quiterio has joined #ruby-lang
lsegal has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanst_ has quit [Ping timeout: 240 seconds]
<Daniel90>
Nevermind, I'll find help elsewhere, bye.
<jhass>
huh, just because we don't code it for you we don't help you?
<apeiros>
o0
* apeiros
shrugs, whatever
Daniel90 has quit [Ping timeout: 240 seconds]
franzip has joined #ruby-lang
SilkFox_ has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
timmmaaaayyy has quit [Read error: Connection reset by peer]
timmmaaaayyy has joined #ruby-lang
elia has joined #ruby-lang
omosoj has joined #ruby-lang
elia has quit [Client Quit]
caike has joined #ruby-lang
elia has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has quit []
elia has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caike has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
elia has joined #ruby-lang
ikrima has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby-lang
allomov has joined #ruby-lang
SilkFox has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
SilkFox_ has quit [Ping timeout: 252 seconds]
sdouglas has quit [Remote host closed the connection]
D9 has quit [Quit: Leaving]
SilkFox has quit [Ping timeout: 246 seconds]
sdouglas_ has joined #ruby-lang
dsp___ has quit [Remote host closed the connection]
Burgestrand has joined #ruby-lang
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby-lang
twright has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanst_ has joined #ruby-lang
nathanstitt has quit [Ping timeout: 252 seconds]
arupsaha has joined #ruby-lang
utzig has quit [Quit: leaving]
t4nk917 has joined #ruby-lang
ikrima has joined #ruby-lang
<t4nk917>
hi! fairly new to ruby. if I wanted to multiply a variable by a percentage, how can i do that? for example: amount * 2.9%
mistym has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
relix has quit [Read error: Connection reset by peer]
<centrx>
t4nk917, 2.9% = 0.029
relix has joined #ruby-lang
<centrx>
per cent = per hundred
SilkFox has joined #ruby-lang
nathanst_ has quit [Ping timeout: 258 seconds]
nathanstitt has joined #ruby-lang
<t4nk917>
The issue is the rounding. I'm trying to calculate Stripe's fees and since it's 2.9% + 30 cents, what I had was stripe_tax = amount * 0.029 + 30 but if the amount is 1500 ($15 in cents), I only get 1573 and on Stripe's website, it's 1574.
palomer has joined #ruby-lang
<t4nk917>
So on Stripe's dashboard for a charge of $15, the "stripe tax" is 74 cents. I can't seem to write a function that doesn't round.
Coincidental has joined #ruby-lang
<jhass>
t4nk917: just round it afterward: (amount+stripe_tax).round
* apeiros
mutters something about *don't use floats for money*
<jhass>
or stripe_tax.round
<jhass>
well and that
<t4nk917>
Ok so what should I use instead of floats?
thmzlt has quit [Read error: Connection reset by peer]
thmzlt has joined #ruby-lang
alexju has quit [Remote host closed the connection]
marcdel_ has quit []
mehlah has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
sdouglas_ has quit [Remote host closed the connection]
marr has joined #ruby-lang
clauswitt has joined #ruby-lang
danijoo has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Client Quit]
elia has joined #ruby-lang
danijoo has quit [Quit: Leaving...]
thmzlt has quit [Read error: Connection reset by peer]
leandrosnunes has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
<ddfreyne>
apeiros: (regarding your EV question) I never got around to programming anything like it. So this is the firs ttime :)
iTrojan has quit [Ping timeout: 255 seconds]
_ht has quit [Remote host closed the connection]
enkristoffer has quit [Quit: ❤]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
allomov has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
elia has joined #ruby-lang
leandrosnunes has quit [Quit: WeeChat 0.4.3]
Missphoenix has joined #ruby-lang
jcs222 has joined #ruby-lang
Miphix has quit [Ping timeout: 265 seconds]
Nafka has joined #ruby-lang
<Nafka>
Hi guys, I'm looking for a little advice. How would you use "Object.const_get(class_name).public_send(method_name)" to actually execute the given method. I know I'd have to create a new instance of it, but how would you do that?
<toretore>
what are you trying to do?
<Nafka>
I'm basically trying to execute the method of a 'required' class, but I need to pass the class and method names are variables, so this is the only way I've found.
<Nafka>
as*
<toretore>
why do you need the class and method names to be passed in? do you have any code to show?
arrubin has joined #ruby-lang
<Nafka>
Long story short, the classes/methods to run are read in from a YAML config file (they're kind of plugins), hence why I need to be able to execute them by passing their names as variables as they can't be hard coded in to my source. Hope that makes sense.
<eam>
Nafka: every class may have a different way to instantiate itself, so you would need to store instructions about how to instantiate it along with its name
<toretore>
^
<eam>
unless your plugin structure gives you a consistent definition -- in which case, use that
<Nafka>
There will no no parameters, etc, that need to be passed and nothing that needs to be returned. A simple execution of the methods are all I need.
<eam>
Nafka: do your plugin objects instantiate with a call to #new, with no arguments?
<toretore>
you've got the class with `const_get(name)`
mykoweb_ has quit [Remote host closed the connection]
<toretore>
to make an instance from a class, call `new` on it
mykoweb has joined #ruby-lang
<Nafka>
That's where I'm at, I couldn't quite figure out how to go about creating a new instance of Object.const_get(class_name).public_send(method_name)
dsp___ has joined #ruby-lang
<Nafka>
Any example would be appriciated.
<toretore>
Object.const_get(class_name) returns the class
<toretore>
Object.const_get('String') => String
<toretore>
String.new => a new string
<toretore>
same for any other class
<toretore>
String is an object which responds to `new`
<toretore>
Object.const_get('String') returns that object
<toretore>
Object.const_get('String') == String
mykoweb has quit [Ping timeout: 240 seconds]
<Nafka>
Okay, thanks. You've probably figured I'm a little out of my depths on this one. Is there any simpler way to go about this? For example, if I didn't need to use variable class and method names I'd simply use class_name.new.method_name but class_name and method_name unfortunately can't be variables obviously.
<eam>
Nafka: they can be
<Nafka>
Oh? How would you go about that, I've not been able to.
<eam>
x = Object.const_get('String'); a_string = x.new
<apeiros>
Nafka: btw., I'd suggest to pick a nick and stick with it
Burgestrand has joined #ruby-lang
<apeiros>
Nafka: it's not like we'd not notice that you're the same guy as before.
<eam>
toretore: sure it is, a variable is inherently an abstraction. And it's pretty confusion for folks used to languages which disallow this kind of dynamic behavior
<eam>
anyway MINSWAN
<toretore>
well, if you go down that route, everything is an abstraction
<Nafka>
+1
<eam>
toretore: well, yeah
<apeiros>
toretore: now you go totally meta
<eam>
toretore: don't make me quote Baudrillard here
<toretore>
it's like metaprogramming, but for reality
davispuh has joined #ruby-lang
<apeiros>
Nafka: try to actually understand what's going on there.
<apeiros>
it's valuable
<whitequark>
eam: I have heard that Norbert Wiener's work (I unfortunately forgot the particular book) provides a better view of the topic
<Nafka>
Fortunately not everyone looks down at people who're a few years behind them in the language.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
Nafka: everything one year ahead is hard, everything one year behind is trivial and stupid
<eam>
it's like that for one's entire career
fragamus has joined #ruby-lang
<Nafka>
Exactly.
caike has joined #ruby-lang
<apeiros>
Nafka: not everybody who doesn't write your code for you looks down at you.
<eam>
I remember when I was learning to program in grade school and I thought the idea of not using line numbers and GOTO was impossibly abstract
<Nafka>
haha
<whitequark>
eam: oh, it's called "God and Golem" in English. I'm ashamed to say that it's still in my reading list and not in my brain.
<whitequark>
so I've no idea if it's as good as I've been told.
<eam>
whitequark: interesting, adding a note to ye olde reading queue
<whitequark>
(unfortunately, so is Simulacra and Simulation; until recently there was no russian translation and again, until recently I didn't know english well enough...)
<eam>
I admit I've only browsed it
Squarepy has joined #ruby-lang
<whitequark>
(fwiw: in Russian, "God and Golem" is called "The Creator and the Robot", which may or may not mean something)
<eam>
I recently learned that Asimov not only wrote about robotics, he coined the term
caike has quit [Ping timeout: 252 seconds]
<whitequark>
and likely defined the way we will think about it for centuries to come
Burgestrand has quit [Quit: Burgestrand]
<eam>
robot is apparently czech, robota, or "forced labor"
<eam>
interesting to think about when programming a computer :)
<whitequark>
I believe it's just "labor"
<eam>
ah
<eam>
well, that's more pleasant
<Nafka>
Interesting stuff guys, to know the origin of these things.
<whitequark>
eam: well, wiktionary suggests you could interpret it either way depending on context
<whitequark>
i.e. it used to mean "slavery", but now it just means "work"
<whitequark>
I can say that in russian (which is pretty closely related), it just means "work" and nothing else today
<whitequark>
I mean, unless you consider any work slavery :p
<eam>
usually there's *some* kind of incentive
<whitequark>
"not being beaten to death" is one hell of incentive
<toretore>
carrot = work, stick = slavery :P
<eam>
we don't beat anyone to death over here in the USA, we just withold medical care if you don't work
|jemc| has quit [Quit: WeeChat 0.4.1]
<eam>
progress!
<eam>
unless you're in prison I mean, in which case we still do beat people... sigh
Burgestrand has joined #ruby-lang
<eam>
anyway, ruby!
<whitequark>
eam: well, you must admit it's technically progress. just a bit too little
<eam>
oh it is
<Nafka>
In Britain we just let people sit on their asses and do nothing, then live off our tax money and throw a feww NHS at them too :D
<Nafka>
free*
<eam>
I'm ok with that
<Nafka>
Ha, I'm not.
<whitequark>
we're not *quite* in a post-scarcity world
<eam>
Nafka: consider the alternative, we spend the money on military instead
CaptainJet has joined #ruby-lang
<Nafka>
Well, true, but a country of lazy breeding slobs isn't great.
<whitequark>
but ideally, no one should work in order to live
<eam>
I assure you, you'll have that health care or not
<Nafka>
Well, that isn't how goods move unfortinety lol
<centrx>
You are just outsourcing your military defense to America, and then paying higher-prices because of American inflationary policy to handle its debt including paying for the military defense
<whitequark>
that's just boring. I mean, who actually *needs* most of the pointless white-collar paper-shuffling jobs
<Nafka>
Companies who don't develop with the times I guess.
nofxxx has joined #ruby-lang
<whitequark>
well, our society is built on consumption, and to consume you have to earn something. so if they disappear... that's a major problem
<whitequark>
but they will, and soon
ur5us has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
t4nk168 has joined #ruby-lang
fragamus has quit [Ping timeout: 252 seconds]
<t4nk168>
can anyone help me figure out a rails error regarding my secrets.yml file?
Burgestrand has quit [Quit: Burgestrand]
<centrx>
t4nk168, Try #rubyonrails
<t4nk168>
I keep getting a message; cannot send to channel :namespace
ColdBlooder has quit [Remote host closed the connection]
<toretore>
are you registered?
nofxxx has quit [Ping timeout: 258 seconds]
tbuehlmann has quit [Remote host closed the connection]
<t4nk168>
how do I go about registering?
sarkyniin has quit [Quit: Quitte]
<toretore>
something about chanserv, i only did it once 10 years ago
<whitequark>
/msg chanserv help register
TheMoonMaster_ has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 276 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kalehv has quit [Remote host closed the connection]
<t4nk168>
ah, i've got it...thank you
TheMoonMaster_ has quit [Ping timeout: 245 seconds]
t4nk168 has quit [Ping timeout: 240 seconds]
alexju has joined #ruby-lang
dsp___ has quit [Remote host closed the connection]
nofxxx has joined #ruby-lang
alexju has quit [Ping timeout: 258 seconds]
TheMoonMaster has joined #ruby-lang
Nafka has quit [Ping timeout: 240 seconds]
Dim_ has quit [Read error: Connection reset by peer]
Dim_ has joined #ruby-lang
alex-quiterio has joined #ruby-lang
franzip has quit [Quit: ...]
mehlah has quit [Quit: Leaving...]
kyb3r_ has joined #ruby-lang
yeltzooo has quit [Remote host closed the connection]
thmzlt has joined #ruby-lang
yeltzooo has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
caike has joined #ruby-lang
iTrojan has joined #ruby-lang
arrubin has quit []
mehlah has joined #ruby-lang
caike has quit [Ping timeout: 250 seconds]
arrubin has joined #ruby-lang
thmzlt_ has joined #ruby-lang
elia has joined #ruby-lang
thmzlt has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
palomer has joined #ruby-lang
allomov has joined #ruby-lang
miwood has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
makepkgnotwar has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|jemc| has joined #ruby-lang
|jemc| has quit [Client Quit]
Speed has quit [Ping timeout: 245 seconds]
VTLob has quit [Quit: VTLob]
|jemc| has joined #ruby-lang
ap4y has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
makepkgnotwar has quit [Quit: Leaving]
miwood has joined #ruby-lang
havenwood has quit []
fijimunkii has joined #ruby-lang
caike has joined #ruby-lang
SilkFox has quit [Ping timeout: 265 seconds]
miwood has quit [Remote host closed the connection]
caike has quit [Ping timeout: 240 seconds]
palomer has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
caike has joined #ruby-lang
palomer has joined #ruby-lang
kalehv has joined #ruby-lang
dsp___ has joined #ruby-lang
retro|cz has quit [Ping timeout: 240 seconds]
nofxxx has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
deg-_ has joined #ruby-lang
deg- has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
retro|sk has joined #ruby-lang
havenwood has joined #ruby-lang
CaptainJet has quit []
michaeldeol has joined #ruby-lang
dsp___ has quit [Remote host closed the connection]
havenwood has quit []
kalehv has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]