<crome>
happytux: Im quite sure puppet has become a lot better since I last used it, also, there are probably alternatives
<Poultra>
moi on ma casé le dos
mikepack has joined #ruby
<Poultra>
ok !
<crome>
I just dont have to deal with that sort of things anymore
<happytux>
pcfreak30 / crome: There is an excellent dissertation out there about convergence and SCM and such. I just can't recall the URL or name. But it was short and fine.
<Poultra>
et toi ?
<Poultra>
t'aimes
<happytux>
Poultra: Tu parles francais?
<dorei>
crome: u sound relieved ;-)
<Poultra>
oui
<Poultra>
j'aimes la france
<Poultra>
je suis le chef
<happytux>
Poultra: Canadien?
<crome>
dorei: as much as I loved being a sysadmin back then, I hated configuration management
<Poultra>
des dj
<Poultra>
et toi tu parles francais?
<Poultra>
hahah
jottr has joined #ruby
<Poultra>
et toi tu parles francais
pontiki has joined #ruby
zigomir has quit [Remote host closed the connection]
<pcfreak30>
happytux: Um what? Smaller terms please?
Takle has joined #ruby
<Poultra>
me
cocotton has quit [Remote host closed the connection]
<happytux>
pcfreak30: There is a nice article (scientific paper) about convergence and software configuration management, also investigating the effectiveness of different SCMs in long term.
omosoj has joined #ruby
<happytux>
Poultra: filou
<Poultra>
havenwood meee
<Poultra>
noo
<Poultra>
i am a sciertifique
<omosoj>
Hey guys I'm setting up models for existing tables. How do I make the classes sync up to the tables, which have weird names?
<csmrfx>
omosoj: first you need to ask questions that people can answer
Tricon has joined #ruby
mostlybadfly has joined #ruby
jpinnix_____ has joined #ruby
genta has quit [Ping timeout: 245 seconds]
ukd1 has quit [Quit: Leaving...]
<Poultra>
you love my musik!
jeregrine has joined #ruby
<shevy>
what is the answer to everything
bricker`work has quit [Quit: leaving]
<Poultra>
you love my musik!
<Poultra>
ahhaa
Takle has quit [Ping timeout: 255 seconds]
<Poultra>
2 gays
<Poultra>
talking
<csmrfx>
I love ignore
byonic has joined #ruby
<shevy>
csmrfx ok i will translate to you
<Poultra>
2 gays talking !!
<shevy>
csmrfx he talks about some gay music
<shevy>
in france
genta has joined #ruby
<shevy>
poor people there
<Poultra>
I am DJ
<shevy>
he is on an ecstasy trip
<Poultra>
we love techno
<happytux>
lol
<Poultra>
you loved me
<Poultra>
yes
<happytux>
Poultra: Tu aimes Hollande, oui?
<Poultra>
football ?
<happytux>
non
<happytux>
soccer
<happytux>
ball de foot
<Poultra>
non jaime pas
<Poultra>
dsl
<omosoj>
csmrfx, there is an pre-existing mysql database filled with tables. I'm trying to connect to the table with active record to query it. the names of the tables aren't simple plural words so i'm not sure how to make sure the classes i create connect to them.
<csmrfx>
ok
<happytux>
Poultra: pour deployment j'utilise capi de strano
<Poultra>
happytux tu aimes la mussiques?
<csmrfx>
omosoj: and migrations?
zybi1 has quit [Remote host closed the connection]
<happytux>
Poultra: non, je suis une personne triste
<omosoj>
csmrfx, didn't know that they're necessary
<csmrfx>
omosoj: do you know what a schema is?
toastynerd has quit [Remote host closed the connection]
<Poultra>
ah ok
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
csmrfx, yeah. the basic outline of a table, right?
<happytux>
Poultra: je suis une entité digitale dans cette chaîne IRC pour l'éternité.
<csmrfx>
with SQL you gotta dive deep to get simple stuff done
<shevy>
hehe
x1337807x has joined #ruby
<Poultra>
hapy moi aussi
<happytux>
Poultra: ah
<csmrfx>
omosoj: you will need to look into a schema-scheme, and afaics "migrate"
<happytux>
Poultra: Hollande est bon, oui?
kireevco has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
danijoo has joined #ruby
<Poultra>
me
<Poultra>
je pense a valerie
monkegjinni has quit [Ping timeout: 255 seconds]
cassioscabral has joined #ruby
chrstphrhrt has left #ruby [#ruby]
alexju has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<RxDx>
Please, how can I replace the first :beer_id with 'beer : { id: ? }'?? <%= f.select :beer_id, options_from_collection_for_select(Beer.all, "id", "name", @cheap_beer.beer.try(:id)) %>..
<csmrfx>
- so you could just see if the returned value is nil (assuming no nil is stored
zwer has joined #ruby
<csmrfx>
Trilient: you have ri?
<Trilient>
ri?
<csmrfx>
with $ ri Hash you can see the documentation for Hash
<csmrfx>
use ri
<csmrfx>
or, in irb, use >> help Hash
<csmrfx>
and then you can >> help Hash.has_key?
zoraj has joined #ruby
fukt has joined #ruby
<fukt>
hello
dawkirst has joined #ruby
<csmrfx>
oh, actually, you cannot lookup help for methods in irb, only ri (at least here it only works with ri)
<fukt>
why not?
<csmrfx>
fukt: does "help Hash.key" return docs for you in irb?
comma8 has quit [Ping timeout: 252 seconds]
<fukt>
Dude tries to land a happy ending at the local Korean massage parlor but has difficulty getting past the language barrier. Even a hilarious visual demonstration fails to get his point across. "Happy Ending Fail" - http://efukt.com/20751_Happy_Ending_Fail.html
<csmrfx>
ok, now you have me looking for a kick-button
nanoyak has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgberlin has joined #ruby
<fukt>
going by the time it is taking you you must be watching the clip first
absk007 has joined #ruby
tdk2fe has quit [Remote host closed the connection]
<csmrfx>
nope, I'm not clicking
<fukt>
pussy
<csmrfx>
your mom? keep her out of this, spammer
dawkirst has quit [Ping timeout: 245 seconds]
dc has joined #ruby
<absk007>
csmrfx, i've installed ruby 2.1 using rvm. It shows error when i try 2 update
ghr has joined #ruby
<csmrfx>
I know
SCommette has quit [Quit: SCommette]
<absk007>
csmrfx, error is ERROR: Loading command: update (LoadError)
<absk007>
cannot load such file -- zlib
<absk007>
undefined method `invoke_with_build_args' for nil:NilClass
<absk007>
ERROR: While executing gem ... (NoMethodError)
<csmrfx>
and that was for gem update?
andrewjanssen has quit [Quit: Leaving...]
<absk007>
yeah! sudo gem update --system
<csmrfx>
ok so google that error with "gem update"
simoz111116 has quit [Ping timeout: 255 seconds]
dc has quit [Remote host closed the connection]
mgberlin_ has joined #ruby
<csmrfx>
buuut, perhaps very first update the whole OS
<csmrfx>
(sudo apt-get update && sudo apt get upgrade)
fukt has quit [Quit: IRCGate CGI:IRC User (EOF)]
DrFukt has joined #ruby
<DrFukt>
When an Azn teenager is reluctant to finish getting ass fucked, it's this guy's cue to utilize a pro-wrestling style submission maneuver and ride it home. Featuring acting so good Kirk Cameron would shed a single tear.. "The Anal Full Nelson" - aalmenar http://efukt.com/21122_The_Anal_Full_Nelson.html
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
<csmrfx>
nice, a spambot, fukt?
ghr has quit [Ping timeout: 240 seconds]
<csmrfx>
You do realize spamming gets you freenode wide ban, fukt?
<DrFukt>
yes
mgberlin has quit [Ping timeout: 240 seconds]
<DrFukt>
yes
<csmrfx>
I give you 20 seconds to take it out of #ruby
<csmrfx>
starts now!
<DrFukt>
but I am sharing nice clips with my ruby brethren, why would anyone report me
virtualize has joined #ruby
<csmrfx>
time is up
<csmrfx>
was nice chatting with you
micah`_ has quit [Ping timeout: 240 seconds]
<DrFukt>
thank you
computerex has quit [Ping timeout: 264 seconds]
micah` has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgberlin_ has quit [Remote host closed the connection]
<dinoex>
eg graphviz with ruby enabled
<csmrfx>
which ruby
kireevco has quit [Quit: Leaving.]
<csmrfx>
ahem, bsd
<dinoex>
sorry FreeBSD, wrong channel :)
<DrFukt>
Dude tries to land a happy ending at the local Korean massage parlor but has difficulty getting past the language barrier. Even a hilarious visual demonstration fails to get his point across. "Happy Ending Fail" - http://efukt.com/20751_Happy_Ending_Fail.html
sputnik13 has joined #ruby
<DrFukt>
sorry
<DrFukt>
I posted that already
<csmrfx>
dinoex: np
<absk007>
csmrfx, when i use "rvm reinstall 2.1". Does it use up my bandwidth?
<csmrfx>
hmm, I dont know
<csmrfx>
I use stock debian rubies
<absk007>
stock debian rubies doesn't include v2.1
<csmrfx>
my last rvm ruby is on 2.0 or something
<absk007>
csmrfx, i need that version 2 run devdocs.io offline
<csmrfx>
testing or unstable might include 2.0
DrFukt has quit [Quit: IRCGate CGI:IRC User (EOF)]
DrFukt has joined #ruby
ta has quit [Ping timeout: 240 seconds]
combusean has quit [Quit: Leaving.]
gondalier has joined #ruby
<csmrfx>
absk007: debian testing has 2.1
<DrFukt>
If there's a book out there on what NOT to do during intercourse, I'd say this dude just paved the way for a fucking trilogy. Nevermind his Rosie O'Donnell-like figure, or his unsettling fetish for floppy disks. The real prize is at the 2.48 mark. Ladies and gentleman, this motherfucker just single-handedly brought back Planking. "The Creepiest Motherfucker in Porn" - http://efukt.com/21065_The_Creepiest_Motherfucker_in_Porn.html
<csmrfx>
!ops DrFukt porn spam
<absk007>
csmrfx, whc repo 2 add?
<DrFukt>
spam?
<csmrfx>
absk007: it is called jessie
<absk007>
!ops DrFukt porn spam
<csmrfx>
absk007: I would $ sudo synaptic & <enter> Settings > Repositories and select jessie / testing from there
<csmrfx>
but then, there may be problems
combusean has joined #ruby
<absk007>
csmrfx, wat probs?
<csmrfx>
dependencies
alem0lars has joined #ruby
<csmrfx>
may not exist yet, may be old, may be broken
<csmrfx>
hence "testing"
<absk007>
csmrfx, btw, i'm using UbuntuStudent
claymore has joined #ruby
<csmrfx>
yeah its a different animal
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
rvm is fine
<csmrfx>
(as long as you read the instructions)
<absk007>
hmm...
yosafbridge has quit [Ping timeout: 240 seconds]
<absk007>
reinstalling 2.1 after the fix. Will take smtime. Lemme c if it works...
DrFukt has left #ruby [#ruby]
monkegjinni has joined #ruby
yosafbridge has joined #ruby
monkegjinni has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
sputnik13 has quit [Ping timeout: 245 seconds]
ta has joined #ruby
decoponio has joined #ruby
DrFukt has joined #ruby
DrFukt has quit [Client Quit]
absk007 has quit [Quit: Good Bye. I Quit...]
paolooo has quit [Ping timeout: 246 seconds]
joelteon has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
nfk has joined #ruby
dc has joined #ruby
maletor_ has joined #ruby
maletor has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
axisys has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
senayar has joined #ruby
danijoo has joined #ruby
pu22l3r has joined #ruby
Doppp has joined #ruby
sputnik13 has joined #ruby
DrFukt has joined #ruby
<DrFukt>
This girl is ridiculously cute. I want to hold her hand. I want to smell her hair. I want a 3x5 inch cut-out of the computer chair fabric that was blessed with her vaginal discharge. Until then though, check out her. "85 Pound Nerd Masturbates @ Work" - http://efukt.com/21057_85_Pound_Nerd_Masturbates_@_Work.html
dawkirst has joined #ruby
maletor has quit [Ping timeout: 255 seconds]
sputnik13 has quit [Client Quit]
maletor has joined #ruby
<Doppp>
...
<DrFukt>
what do those dribbles represent?
senayar has quit [Ping timeout: 255 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
datafirm has joined #ruby
jacks_spleen has joined #ruby
dawkirst has quit [Ping timeout: 244 seconds]
sputnik13 has joined #ruby
<DrFukt>
This is perverse. More perverse than that happy-go-lucky bastard that ejaculates while donating to the homeless. It contains elder abuse, incestuous undertones and a talking parrot that'll channel your every thought. "Mom Fascinated By Daughter's Sextape" - http://efukt.com/21053_Mom_Fascinated_By_Daughter%27s_Sextape.html
<DrFukt>
This is legendary pipe layer Big Red, most notable for his 7 inch penis and it's not-so-cervix-friendly curvature. The end result tends to involve women screaming louder than Warwick Davis after the release of box office figures on Leprechaun 4: In Space. "78 Percent Of His Sexual Partners Quit" - http://efukt.com/9/
nateberkopec has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
datafirm has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
toastynerd has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
claymore has quit [Quit: Leaving]
zoraj has quit [Remote host closed the connection]
KTMBoi88 has quit [Read error: Connection reset by peer]
KTMBoi88 has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
eguim has quit [Ping timeout: 244 seconds]
gondalier has quit []
ayaz has joined #ruby
relix has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
Takle has joined #ruby
dawkirst has joined #ruby
DrFukt has quit [Quit: IRCGate CGI:IRC User (EOF)]
bradhe has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
weems has quit [Read error: Connection reset by peer]
ptierno has quit [Quit: leaving]
ptierno has joined #ruby
eguim has joined #ruby
KTMBoi88 has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 244 seconds]
dawkirst has quit [Quit: Leaving...]
Vivekananda has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
LadyRainicorn has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
DrFukts irc spam bot has gotta be the hugest waste of coding skills since windows millenium
garndt has quit [Quit: Connection closed for inactivity]
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
alvaro_o has quit [Ping timeout: 252 seconds]
etqqkoiflwhb has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jprovazn has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
benlieb has joined #ruby
mikecmpbll has joined #ruby
j_mcnally has joined #ruby
jacks_spleen has quit [Quit: Leaving]
ninegrid has quit [Quit: leaving]
ninegrid_ has quit [Quit: leaving]
ninegrid has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
absolutezeroff has quit [Ping timeout: 272 seconds]
Trilient has quit []
toastynerd has quit [Remote host closed the connection]
weems has joined #ruby
sputnik13 has joined #ruby
sevenseacat has joined #ruby
jprovazn has quit [Quit: Odcházím]
alexju has joined #ruby
sarkis has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
Morkel has joined #ruby
wallerdev has quit [Quit: wallerdev]
charliesome has quit [Ping timeout: 245 seconds]
aagdbl has joined #ruby
ghr has joined #ruby
charliesome has joined #ruby
klaut has joined #ruby
nateberkopec has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 255 seconds]
mahlon has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
sylver has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
senayar has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
kilk_ has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
mahlon has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zwer has quit [Remote host closed the connection]
gnephiak has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
TheKruex has joined #ruby
Nameo0 has joined #ruby
Channel6 has quit [Quit: Leaving]
sarkis has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
zwer has joined #ruby
sputnik13 has joined #ruby
anaeem1_ has joined #ruby
<Nameo0>
Hello, I am working on a program that organizes images (wallpapers) by resolution. I am using FastImage to obtain the resolution, but I was wondering if there is a way to catch an error from the FastImage.size() code and tell the code jsut to move onto the next file?
<Nameo0>
My main question is how to tell ruby to continue running after the error happens.
<Nameo0>
?
charliesome has joined #ruby
combusean has quit [Quit: Leaving.]
<sevenseacat>
catch the error?
<sevenseacat>
and continue?
monkegjinni has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
yosafbridge has quit [Ping timeout: 240 seconds]
<Nameo0>
Idk if this is even possible, but when a I put a file that is not an image into FastIamge.size(file_name), Rubyu gives me an error.
Arkaniad has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
toastynerd has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
monkegjinni has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
sylver has quit [Ping timeout: 252 seconds]
chipotle has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Client Quit]
chipotle has joined #ruby
chipotle has quit [Client Quit]
benlieb has quit [Quit: benlieb]
moritzschaefer has joined #ruby
moritzs has joined #ruby
Takle has quit [Remote host closed the connection]
sinkensabe has joined #ruby
gattuso has joined #ruby
jamto11 has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
MrDoctor_ has joined #ruby
zoraj_ has joined #ruby
yacks has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
djr has quit [Ping timeout: 264 seconds]
MrDoctor has quit [Ping timeout: 252 seconds]
zoraj has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
bradhe has joined #ruby
dodgepong has quit [Quit: Leaving]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
etqqkoiflwhb has joined #ruby
MrDoctor_ has quit [Remote host closed the connection]
shredding has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 255 seconds]
ta has joined #ruby
etqqkoiflwhb_ has joined #ruby
etqqkoiflwhb has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
sylver has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
gnephiak has joined #ruby
timonv has joined #ruby
maximski has joined #ruby
Zebroid has joined #ruby
hy2guru has quit [Remote host closed the connection]
ikaros has joined #ruby
sylver has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Ch0c0late has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
treehug88 has joined #ruby
sski has quit [Remote host closed the connection]
treehug88 has quit [Client Quit]
timonv has joined #ruby
pu22l3r has joined #ruby
sarkis has joined #ruby
<Ch0c0late>
Hi. I've come up with a problem known as Modular Arithmetic. I wanna code an app which sums numbers between 1 to n but with a bit difference. If I wanna add up n numbers I can get n(n + 1)/2 formula which calculate the sum in O(1) time but I wanna add up n numbers in this way i=1 to n -> sum(i%m) and here m is a constant number like 6. The time complexity of this problem using a simple loop is O(n^2). n <= 10 ^ 9. Now the question is that how to
<Ch0c0late>
reduce time complexity to n or log n and also how to describe this algorithm in terms of DP or Greedy or relevant algorithms that help me to solve this problem. I do not want solution. The only thing that I need is a piece of advice. Any suggestion?
elaptics is now known as elaptics`away
<apeiros>
Ch0c0late: with i%m, summand groups repeat
<apeiros>
you can probably exploit that
<apeiros>
IMO it should be implementable in O(1) too
pu22l3r has quit [Ping timeout: 240 seconds]
<Ch0c0late>
What's the method? DP, Greedy, D&C, BT, B&B, etc.
<apeiros>
I don't know those names
<apeiros>
also not sure why you think naive implementation was O(n^2)
<apeiros>
seems to me like it was O(n)
sarkis has quit [Ping timeout: 240 seconds]
<apeiros>
(assuming addition and modulus being O(1))
<Ch0c0late>
Because of n(n+1)/2 -> O((n^2 + n)/2 ) -> Based on asymptotic notation we can get the greater value which is O(n^2)
aagdbl has quit [Quit: This computer has gone to sleep]
<apeiros>
eh?
<apeiros>
either you're confusing things or I completely misunderstand what you're asking.
<Ch0c0late>
I can see that I repeat a sequence like this: 1 % 6 + 2 % 6 + 3 % 6 + ...
ta_ has joined #ruby
<apeiros>
using a formula like n(n+1)/2 is O(1) (as you stated yourself). not O(n^2). not sure how you make that leap.
<apeiros>
and sum(i%m) for i := 1->n can be expressed in a formula too. making it calculatable in O(1) too
ta has quit [Ping timeout: 240 seconds]
<Ch0c0late>
Could you clear it a bit more?
<apeiros>
no
<Ch0c0late>
Okay.
<apeiros>
if you have a specific question, maybe.
nffff has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
<pvb>
O(1) for one number. and O(n) for n numbers. (If I understand the problem.)
krz has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<apeiros>
pvb: no. unless he mislabels his variables.
<jheg>
csmrfx: have you slept? :)
ta_ has quit [Read error: Connection reset by peer]
<jheg>
ah my bad it just loaded my previous chat :L
<apeiros>
this would be using "n" once for "sum for numbers 1 to n" and once for "with n different values for n"
<apeiros>
you can't use the same variable for different dimensions/aspects :)
ta has joined #ruby
Takle has joined #ruby
mehlah has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
<apeiros>
finding the sum of the numbers 1->n with a naive implementation like (1..n).inject(:+) is O(n) because you perform an operation (sum + i) n times.
<pvb>
Yes, sure
<apeiros>
in his modular arithmetic world, the naive implementation only changes minimally: (1..n).inject(0) { |sum, i| i % m }. this is O(n) too because you perform an operation (sum + i % m) n times.
<pvb>
Yes
<pvb>
But if you use n(n+1)/2 is O(1)
<pvb>
for only one number
<apeiros>
yes. and it will only be O(n) for n numbers unless your n numbers have some systematic to it.
<apeiros>
so *even* if he meant "for n inputs" it still makes no sense.
klaut has quit [Remote host closed the connection]
etqqkoiflwhb_ has joined #ruby
<apeiros>
s/only/always/
<apeiros>
(why did I write "only"?)
<isomorphismes>
koan asks: "If we redefine method_missing, what happens?" Unless I'm missing something...
<isomorphismes>
>> class T; def method_missing; :poo; end; end; t = T.new; t.method_missing
<yxhuvud>
FWIW, (n + m) % k == n % k + m % k, assuming a % that never gives negative numbers.
<yxhuvud>
(which it won't if all numbers are positive)
<apeiros>
isomorphismes ^ is the secret of method_missing
Takle has quit [Ping timeout: 245 seconds]
<apeiros>
yxhuvud: dude, he said he didn't want a solution! pffft :)
bradhe has joined #ruby
<apeiros>
ah
robbyoconnor has joined #ruby
<apeiros>
not a solution. just a way to simplify the problem even more
<isomorphismes>
apeiros: you mean this is essentially what the native (inherited to every object you make) #method_missing essentially does?
<isomorphismes>
oh oh I see what you meant
<apeiros>
isomorphismes: method_missing is a catch-all
ta has quit [Ping timeout: 244 seconds]
<shevy>
people often don't want solutions!
<isomorphismes>
apeiros: and what the language writers did was stuff into that catch-all, a NoMethodError that returns useful information about like what class (so a call to self?)
kirun has joined #ruby
ta has joined #ruby
scx_ has quit [Ping timeout: 264 seconds]
<apeiros>
isomorphismes: I think the NoMethodError is even more low level. but I think you can consider that an implementation detail.
<isomorphismes>
I love the n*(n+1)/2 story. Great story of a child outsmarting an adult, *and* a good argument for pen-and-paper maths visavis coding simulations or bigass Monte Carlo's, what have you
<yxhuvud>
uh, or well, (n+m) % k == (n % k + n % k) % k, rather.
<isomorphismes>
cool. thank you apeiros
bradhe has quit [Ping timeout: 240 seconds]
<apeiros>
yxhuvud: heh, yes. but he said "modular arithmetics". now I wonder … in true modular arithmetics, there wouldn't be any n >= m anyway, no?
scx has joined #ruby
<isomorphismes>
Ch0c0late: hey if you want advice - check out finite fields
samphippen has joined #ruby
<isomorphismes>
Ch0c0late: if you are doing mod a prime number it will be different than mod a composite number
<apeiros>
but well, I actually lost interest in this question. it seems poorly formulated and the op seems to have gone awol anyway
<isomorphismes>
Ch0c0late: I've never thought through this myself, but if you know the story of how it was derived (add 1+2+...+100, but then "loop the end to the beginning" and go in pairs) -- you might be able to work out how this works in modulo X
jottr has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb_ has joined #ruby
nateberkopec has joined #ruby
<isomorphismes>
Ch0c0late: with your example of mod 6, notice for example 7%6 == 1%6 == 13%6, and also 2+4==6==0, also 1+5==6==0. So only the 3's matter and every other of those disappear (3..0..3..0..3..0).
<isomorphismes>
Ch0c0late: Just sort of spitballing on the fly here but maybe think about it in some way like that.
ta has quit [Ping timeout: 272 seconds]
etqqkoiflwhb__ has joined #ruby
etqqkoiflwhb__ has quit [Remote host closed the connection]
etqqkoiflwhb__ has joined #ruby
CorpusCallosum has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
LadyR has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
ta has joined #ruby
axl_ has joined #ruby
<isomorphismes>
Somebody earlier said "The power of ruby 1.9" (I'm not sure if this was in resopnse to one of my questions or not)
<isomorphismes>
Did some features get lost in ruby 2.0? Or is ruby 2 somehow less powerful than 1.9?
<apeiros>
I remember our elementary school teacher asking that question too. I didn't quite have the idea of using n*(n+1)/2, but at least I only summed up 1..9 and 1..10. i.e., I solved it with 10 additions and 2 multiplications
<apeiros>
isomorphismes: I'm not aware of lost features in 2.0
<isomorphismes>
apeiros: what do you mean 10 add and 2 mult?
axl_ has quit [Client Quit]
<isomorphismes>
apeiros: oh - you mean the tens digits and units digits. that's nice
<apeiros>
sum up 1 to 9 (8 additions), sum up 1 to 10 (1 addition since I already have 1 to 9), multiply sum(1..9) by 100, multiply sum(1..10) by 10, sum those two
<apeiros>
i.e., 100*sum(1..9) + 10*sum(1..10)
<apeiros>
but I think I was too unsure about my own cleverness back then and actually did the full summing before handing back the solution :)
LadyR has quit [Ping timeout: 240 seconds]
<isomorphismes>
haha
senayar has quit [Ping timeout: 244 seconds]
<isomorphismes>
well gauss even found an invariant*
<isomorphismes>
so his was extremely nice
<apeiros>
yeah. I was jealous when I heard about that solution :D
<isomorphismes>
not necc a bad idea to check ones cleverness even on sum(1..20) or whatev
<pvb>
I have no idea what is "Modular Arithmetic". But n(n+1)/2 is the winner's way.
<isomorphismes>
i think yours is also good
<isomorphismes>
you still looked at it "differently" than it was set to you
<isomorphismes>
you looked "vertically" gauss "looped around to the begining" (and pairs). shapewise
gnephiak has quit [Ping timeout: 255 seconds]
<apeiros>
I was already a good programmer back then - lazy to no end :D
sylver has joined #ruby
<isomorphismes>
pvb: it's clock arithmetic
sinkensabe has quit [Remote host closed the connection]
<isomorphismes>
pvb: what time is it 7 hours after 9 o'clock?
Ch0c0late has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gil has joined #ruby
sinkensabe has joined #ruby
<pvb>
hmmm, 4 ?
<isomorphismes>
pvb: how did you get that
klaut has joined #ruby
<pvb>
goof question
<isomorphismes>
pvb: you're right
Gil has quit [Remote host closed the connection]
<isomorphismes>
pvb: what time is it 17 hours after 9 o'clock?
<apeiros>
nice way to explain it
<isomorphismes>
tks
jheg has quit [Quit: jheg]
<isomorphismes>
by the way pvb once you get this you then know an example of a Monoid (func prog jargon)
<pvb>
2 ?
<isomorphismes>
pvb: how did you get 2
ta has quit [Read error: Connection reset by peer]
<certainty>
apeiros: it's just the others working too fast
<isomorphismes>
apeiros: because you're on irc the whole time? ;)
<apeiros>
certainty: no others around
<pvb>
how can be useful modular arithmetica?
<apeiros>
isomorphismes: if it wasn't irc, it was dreamhack…
<apeiros>
pvb: you've just seen an example - clocks :)
<isomorphismes>
pvb: anything that repeats.
<certainty>
apeiros: well then it's saturday. It's ok to work slower
<apeiros>
certainty: nowaayy!
<isomorphismes>
pvb: seasons .. loop conditions that needt o happen every 193rd time..
<apeiros>
I want this thing done :)
<apeiros>
I switch between projects all the time, *sob*
<apeiros>
and now I'm working on a game again
sarkis has joined #ruby
<certainty>
well then pull yourself together and speed up!
<apeiros>
will probably last another two or three days :D
<pvb>
hmm, not alot
<pvb>
i prefer usual arithmetica
ta_ has joined #ruby
<certainty>
pvb: clocks are one thing. It's also frequently used in cryptography
<pvb>
much useful
<isomorphismes>
pvb: two very basic shapes are the line and the circle (topologically). so Z (-infty,...,-1,0,1,2,3,...,infty) be the line and Z mod p be a circle
<isomorphismes>
pvb: every year is % 365
<apeiros>
lots of knowledge is only rarely useful. but since you don't know which knowledge will be useful when… better to have it and recognize it when it is useful.
<apeiros>
isomorphismes: noooooo!
<apeiros>
leap years
<certainty>
pvb: serial number arithmetic is done mod number of bits
<isomorphismes>
i know i was thinking that
<isomorphismes>
but you know, sort of spoils the point
<apeiros>
date always spoils all points :(
<isomorphismes>
hahaha
<isomorphismes>
too true
<certainty>
julian date is just days no? (i'm ignorant about time/date stuff mostly)
monkegjinni has joined #ruby
<apeiros>
julian date has leap year too
<certainty>
damn
<isomorphismes>
>> for (i in 1..99); if (i % 3); p "fizz"; end; if (i % 5); p "buzz"; end; end
<pvb>
Okay, it seems that is not entirely useless stuff.
gattuso has quit [Ping timeout: 260 seconds]
<apeiros>
julian has every 4 years. gregorian added the 100 and 400 year rules
<apeiros>
iirc
ta_ has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 264 seconds]
<apeiros>
(and adjusted the date for the 1700 years which didn't use that rule)
danshultz has joined #ruby
maximski has quit []
ta has joined #ruby
<apeiros>
average julian year: 365.25 days, average gregorian year: 365.2425 days :)
sarkis has quit [Ping timeout: 264 seconds]
xcv has joined #ruby
anaeem1_ has joined #ruby
shredding has quit [Quit: shredding]
etqqkoiflwhb__ has quit [Quit: Computer has gone to sleep.]
<isomorphismes>
well pvb I just wrote that wrong but it would take up too much space anyway if it cleared. Butin the fizzbuzz problem it's entirely interms of modular arithmetic. (fizz every 3, buzz every 5, fizzbuss every 3x5=15). Can't tell me you've never written a loop wanting something like this
monkegjinni has quit [Ping timeout: 244 seconds]
etqqkoiflwhb__ has joined #ruby
<isomorphismes>
and this isnt even dealing with international holidays...
<certainty>
isomorphismes: now you're claiming fizzbuzz is useful? :p
<isomorphismes>
for getting a job certainty ;)
<certainty>
hehe
gattuso has joined #ruby
<pvb>
haha, i'm listen about fizzzbuzz
aagdbl has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
<pvb>
And, And I can not remember that I wrote it ever. :)
<pvb>
I should try to write it?
etqqkoiflwhb__ has quit [Ping timeout: 272 seconds]
<isomorphismes>
pvb: No problem at all, just that running a bunch of experiments doesn't *substitute* for hard-fought wisdom. Eg if your thesis is 150 pages of printouts and charts with half your variables chosen by an algorithm you got from a book -- well you haven't explained anything to your audience
Notte has quit []
jxf has joined #ruby
zoraj has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Remote host closed the connection]
<shevy>
try to explain to your audience how a black hole works
<shevy>
then show the experiments you did to come to this conclusion
bradhe has joined #ruby
<isomorphismes>
pvb: Monte Carlo's give you fopvb: anyway think about it this way. % (modulo) wouldn't be one of the basic arithmetic operators in C if it weren't useful.
sinkensabe has joined #ruby
<pvb>
shevy, it's easy, it sucks all like a vacuum cleaner.
<shevy>
pvb ok but where to?
abdulsattar has joined #ruby
jamto11 has joined #ruby
<pvb>
isomorphismes, thanks for explanations, i will think about it.
<isomorphismes>
pvb: haha. just my attitude ;)
<pvb>
inside the course
<certainty>
i did say before, but today cryptography is probably one of the more important areas. just sayin
bradhe has quit [Ping timeout: 252 seconds]
<apeiros>
cryptography could probably live without modulus and just use &
<pvb>
Just like a vacuum cleaner sucks inward garbage.
Takle has joined #ruby
<apeiros>
that said… I don't do cryptography and just assumed that they usually use mod(n**2). if that's not the case then I'm utterly mistaken :)
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
<isomorphismes>
apeiros: what game are you working on?
<apeiros>
master of orion alike
<apeiros>
(though, using starbase orion as starting point - currently mostly copying that)
<isomorphismes>
I thought crypto is about elliptic functions somehow? Dont know anything abou t it either.
<yxhuvud>
apeiros: working mod n**2 is unheard of, afaik.
<apeiros>
yxhuvud: ?
<yxhuvud>
and even if you meant mod 2**n, it is wrong.
kaspergrubbe has joined #ruby
<apeiros>
errr, yes. I meant 2**n. what is wrong?
<yxhuvud>
at least for RSA and similar. can't remember how aes works.
<apeiros>
you mean they don't only use mod 2**n?
lolmaus has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<yxhuvud>
at least RSA work mod p*1, p, q prime.
<yxhuvud>
p*q
sepp2k has joined #ruby
lolmaus has joined #ruby
nateberkopec has joined #ruby
<apeiros>
ok
<shevy>
waaaat
<shevy>
didn't you want to work on this game 10 years ago already apeiros :)
<apeiros>
shevy: I did!
<apeiros>
this time in JS + HTML, not ruby anymore
<pvb>
Do I need to know the math, that would be a good programmer?
<pvb>
RoR/JS for example
Notte has joined #ruby
<isomorphismes>
pvb: No.
nateberkopec has quit [Ping timeout: 240 seconds]
<apeiros>
it can help a lot. but in many areas it's mostly optional.
Papipo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<Papipo>
Hi
<Papipo>
anybody knows how can I create a method with dynamic named parameters?
snath has quit [Ping timeout: 264 seconds]
<pvb>
Okay. If i want maintenance the linux kernel?
<certainty>
yeah
<certainty>
you need to know how to calculate the next version
Takle has quit [Remote host closed the connection]
carraroj has joined #ruby
<pvb>
What parts of mathematics useful for a programmer?
<certainty>
also to count how many times linus has told you to finally learn some math
<isomorphismes>
pvb: Just do what you're trying to do -- you'll come up against a wall and then climb it.
danshultz has quit [Read error: Connection reset by peer]
<Papipo>
well, actually I think I can do it using class_eval passing a string
GriffinHeart has quit [Remote host closed the connection]
<isomorphismes>
pvb: I've heard many, many people say they wish they knew more linear algebra. But you know, if you're writing calls to jQuery every day - u probably aint gonna need it!
<certainty>
Papipo: you could pass a hash, no?
<apeiros>
Papipo: dynamic *named* parameters sounds like a rather bad idea and unecessary
<apeiros>
yes. that works. and there too, you can use ||= 0
<pvb>
isomorphismes, oh only accepted. :( I was so happy for him.
sinkensabe has quit [Remote host closed the connection]
<nwkr>
blah ||= value
<foobarbaz_>
ah
<foobarbaz_>
so i could do
ta has joined #ruby
<foobarbaz_>
(blah ||= value) += 1
<foobarbaz_>
or is that not ruby-eqsue
sylver has quit [Ping timeout: 240 seconds]
<foobarbaz_>
esque*
sinkensabe has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
<jhass>
making that two lines is more common
sinkensabe has quit [Remote host closed the connection]
Takle has joined #ruby
sinkensabe has joined #ruby
<foobarbaz_>
session[:counter] ||= 0
<foobarbaz_>
session[:counter] += 1
<foobarbaz_>
cool
<foobarbaz_>
thanks! :)
pu22l3r has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
<nwkr>
for oneliner i would ptobably go for blah = blah ? blah + 1 : 1
Guest50712 has quit [Quit: quit]
<nwkr>
but i myself would prefer two liner anyway
<foobarbaz_>
Ah, since assignment returns the new value
<foobarbaz_>
yeah, was thinking the same :)
<foobarbaz_>
Should I feel bad that I kinda like ruby + rails?
<foobarbaz_>
Coming from a java/c# background, it doesn't feel right to say that
<foobarbaz_>
xD
<foobarbaz_>
I'm thinking that it's all going to fall apart once I get to the harder stuff, but it doesn't look like it so far
<shevy>
foobarbaz_ is rails ruby?
<nwkr>
i have been a java developer for five years
<nwkr>
and moved to ruby for good a year ago
<foobarbaz_>
shevy: I believe so, correct me if i'm wrong though :)
<shevy>
foobarbaz_ is ruby rails?
lolmaus has joined #ruby
<foobarbaz_>
No, it's a programming language
<shevy>
I am not to correct anyone, I only ask questions
<foobarbaz_>
rails is a framework which is written in ruby
<certainty>
shevy: equivalence relations are always symmetric :p
digifiv5e has joined #ruby
Ch0c0late has joined #ruby
<foobarbaz_>
The first question he asked didn't read as `rails == ruby`
<shevy>
I find learning rails harder than learning ruby :\
digifiv5e is now known as Guest57424
<certainty>
i'm being pedantic on purpose. :D
<foobarbaz_>
shevy: I recommend the book `rails agile web development`
<shevy>
I bought it years ago
Guest57424 has quit [Changing host]
Guest57424 has joined #ruby
<shevy>
made it to page 76
<shevy>
then ripped it apart and threw it away
<pvb>
I learn rails and ruby in the same time. Sometimes i tried use rails methods in ruby :(
<foobarbaz_>
I've gotten to page 137 in a few hours tbh
<foobarbaz_>
it's pretty good
<shevy>
you must have a good brain
<foobarbaz_>
I wish! :)
<shevy>
my brain constantly bugs me "wtf is this shit you are reading"
<sevenseacat>
agile web dev with rails is a terrible book
<foobarbaz_>
sevenseacat: I found it a lot more indepth than the other stuff I had watched/read tbh
anaeem1_ has quit [Remote host closed the connection]
<nwkr>
pvb: once you learn it a bit more then you will know how to embed rails methods into your non rails project. keep learning ;)
<pvb>
sevenseacat, really ? i read it right now :(
<apeiros>
meh, damit, week-end shopping. *hate*
<shevy>
I bought the pickaxe back then too and I liked it (back then; I also no longer have it, I keep only books that I want to or have to read over and over again; in regards to ruby, I store knowledge in a local database so I dont really need books anymore)
<apeiros>
why are there always such menial tasks?
<shevy>
apeiros buy new pants!
<certainty>
apeiros: that's still on my list too :/
<foobarbaz_>
It actually went somewhere, making a real application... More so than "Here's how you generate a default website! Now, go forth and claim you know RoR!"
<sevenseacat>
!r4ia if you want a book to learn rails
<helpa>
Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
hiyosi has joined #ruby
<apeiros>
sevenseacat: eeehehe, the author of helpa isn't biased at all in that ;-p
<certainty>
no way
<sevenseacat>
;)
<pvb>
nwkr, thanks, I continue.
<shevy>
foobarbaz_ a real application ... like ... a webshop?
<foobarbaz_>
A 'substantial' application then :)
<certainty>
two webshops
<shevy>
lol
<shevy>
now that's a funny answer
<shevy>
but you are right... two must be better than one :)
<foobarbaz_>
Something with relations is a lot better example of a platform, than simple CRUD apps
<foobarbaz_>
Which is all I kept coming across :(
sandbags has joined #ruby
BizarreCake has quit [Quit: Leaving]
Guest57424 is now known as guyz
<certainty>
a system that allows you to plan railways.
<sevenseacat>
i think you'll pick up some bad habits with that book, as well as struggle with some of the blatantly obvious bugs in the code
<certainty>
personally i think bugs make pretty good food
<certainty>
is that meat?
scx_ has joined #ruby
<pvb>
wow, Thanks for Rails 4 in Action! i did not know about this book.
scx has quit [Ping timeout: 245 seconds]
<apeiros>
so, building queue is the last one left for a working planet screen. next up after that - universe generation :D
<shevy>
only noobs make bugs
<shevy>
universe generation sounds like The Next Big Thing
hiyosi has quit [Ping timeout: 272 seconds]
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby
shredding has quit [Quit: shredding]
sandbags0 has joined #ruby
<foobarbaz_>
One thing i've found is; All tutorials seem to be broken unless you find out the exact RoR version they were using
joaoh82 has quit [Remote host closed the connection]
<foobarbaz_>
It seems like things break between minor releases even?
_5kg has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 240 seconds]
<sevenseacat>
things can be very different between minor versions, yes
ta has joined #ruby
<sevenseacat>
rails changed a lot between 3.0 and 3.1 for example - it introduced the asset pipeline
<foobarbaz_>
That's not the best when you're trying to get started! :P
shredding has joined #ruby
<sevenseacat>
so use the same version as in the tutorial
<certainty>
pros refer to it as the asspipe
<sevenseacat>
they will tell you to do that
dgutierrez1287 has joined #ruby
sandbags0 has quit [Client Quit]
<foobarbaz_>
So their asspipe is much improved now?
<certainty>
:)
<shevy>
their asstest pipelines are fully working again
zoraj has quit [Remote host closed the connection]
<pvb>
I'm a new in irc also. just a few days use it
<isomorphismes>
Basically what I'm getting at -- can you do roots of unity filter or any kind of Fourier stuf in ruby?
<certainty>
shevy: you mean sucking. common mistake
zoraj has joined #ruby
<isomorphismes>
fwiw R doesn't handle this kind of thing well, either.
<apeiros>
isomorphismes: given that ruby is turing complete… yes, you can.
<apeiros>
how well you can do it - no idea :)
charliesome has joined #ruby
Juxtapositional has quit [Quit: Leaving]
ta has quit [Ping timeout: 272 seconds]
<isomorphismes>
ok, fair enough
mfedorov has joined #ruby
<isomorphismes>
relatedly: I guess you could write your own class for rationals if you wanted. ?
bradhe has quit [Ping timeout: 255 seconds]
<isomorphismes>
just thinking out loud about stuff that should be exact but isn't. Haskell has native classes for rationals which I believe do things exactly.
zoraj has quit [Ping timeout: 240 seconds]
AlexRussia_k has joined #ruby
<certainty>
isomorphismes: soure you could
<certainty>
sure
<shevy>
don't correct your typos man
<shevy>
it gives you a proper IRC accent
<certainty>
heh
<shevy>
soure yhou kould do taht
<shevy>
I infer that isomorphismes is a strange person
<shevy>
to know R _and_ Haskell
<shevy>
that's like... a math person!
<certainty>
Haskell doesn't make him weired so R must
<certainty>
that reminds me about HN a few days back that linked an article that reported that tha touring test has been past by an AI simulating a 13 year old boy
<certainty>
turing
<certainty>
damn what's wrong today
<pvb>
certainty, I think that Elon Musk will make lt, after Mars colonizing.
<Mon_Ouie>
And passed was redefined to mean fooled 1/3 of the people"
<certainty>
Mon_Ouie: yeah
sonofflynn has quit [Remote host closed the connection]
<certainty>
i thought that this was common practice though.
noop has joined #ruby
<apeiros>
Mon_Ouie: passed was also redefined to pretend foreign language to explain bad expressions
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<isomorphismes>
pvb: for complex numbers, in theory you could use it for angles. But the stuff is clearly stored in rect form which is introducing rounding error
<isomorphismes>
pvb: It's the same in R
<certainty>
isomorphismes: nope not yet
bradhe has quit [Ping timeout: 272 seconds]
<pvb>
I think there are special languages for math stuff.
<isomorphismes>
pvb: there are
<isomorphismes>
pvb: this is just how I know to test things
<certainty>
isomorphismes: i was looking for transcripts of the conversations, thanks. Not very impressive
<isomorphismes>
certainty: that's what I thought too. and at the bottom he notes the inventor isn't even trying to crow about it
<isomorphismes>
certainty: I guess he even put a beanstalk link to the chatbot (it didn't load for me the other day).
<Mon_Ouie>
But what's the problem that makes it impossible to do stuff with rounding errors? As far as I can tell, math-oriented languages use floats to and also have such errors
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
banister_ has joined #ruby
<isomorphismes>
Mon_Ouie: not like singular and pari/gp
<isomorphismes>
Macaulay2
<isomorphismes>
magma
<isomorphismes>
gap
<isomorphismes>
you're probably thinking like numpy, fortran, fluid stuff .. there i think you're right
St_Marx has quit [Remote host closed the connection]
banister has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
benzrf|offline is now known as benzrf
<Mon_Ouie>
Yeah, those are the ones I know of. I don't know of many math libraries in Ruby except for what's in core/stdlib. though.
<isomorphismes>
benzrf: ...is how I got to this forum (someone mentioned ruby favourably) ;)
nateberkopec has joined #ruby
<atmosx>
Trilient: maybe, ou'd like to to use optparser I'm tired and I can't read your code
Eyess has quit [Read error: Connection reset by peer]
<mozzarella>
Trilient: I'd be surprised that any command would work properly…
Gil has joined #ruby
<mozzarella>
it would probably always run the "new" command
Eyes has joined #ruby
keen________ has quit [Read error: Connection reset by peer]
Papipo has left #ruby [#ruby]
ghr has joined #ruby
<Mon_Ouie>
Trilient: You didn't explain in what way it doesn't work
DrOwl has joined #ruby
<Trilient>
I wanted to try and get a response before I explained
<mozzarella>
basically you're not "casing" against anything
GriffinHeart has quit [Ping timeout: 255 seconds]
<mozzarella>
see you must do case command
joaoh82 has joined #ruby
<mozzarella>
and then
<mozzarella>
when "new"
keen________ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
nateberkopec has quit [Ping timeout: 240 seconds]
<Trilient>
The commands actually work as they are, but I can fix that
senayar has joined #ruby
<Mon_Ouie>
mozzarella: What he did is correct
<Mon_Ouie>
The way you suggest makes more sense though
<benzrf>
isomorphismes: haskell is gr8 for math
anaeem1 has quit [Remote host closed the connection]
<Trilient>
The problem is though, when I add/edit a new game to the hash, and then use the "list" command
<Trilient>
It doesn't show the updates
<Trilient>
It also doesn't give me an error back, and it -looks- like everything worked as it should
mikesplain has joined #ruby
<Trilient>
this is my 3rd day of programming, and I've chosen ruby as my first langugae. Be gentle X.x
<yxhuvud>
cool!
<benzrf>
isomorphismes: u dont need to know category theory to do haskell
<benzrf>
ive been doing it for like 2 yrs and im only learning a bit of cat theory now
ghr has quit [Ping timeout: 272 seconds]
<isomorphismes>
nice
ponga has quit []
joaoh82 has quit [Ping timeout: 264 seconds]
<benzrf>
isomorphismes: but haskell is great for higher level math
<benzrf>
i.e. stuff that doesn't revolve around numbers ;)
<benzrf>
(number stuff too though)
senayar has quit [Ping timeout: 240 seconds]
<mozzarella>
Trilient: you're reassigning games at every iteration of the loop
<benzrf>
the other day i figured out how many non-self-intersecting paths of length 2 or more there are through a 3x3 square
<benzrf>
using haskell
<benzrf>
(i got the wrong answer but that was because of my own error, not haskell's)
boris has joined #ruby
<Trilient>
So moving the hash outside of the loop would fix that?
<benzrf>
it was much more elegant than how i wouldve done it in ruby let me tell you :3
<mozzarella>
Trilient: it should, try it
<Trilient>
Oh gawd
bluOxigen has joined #ruby
* Trilient
facepalms
<Trilient>
I knew it'd be something super obvious
<Trilient>
Yes, that fixed it
<yxhuvud>
Trilient: some general advice, that doesn't really answer your question but may make it easier to find the problem: 1: tell your editor to indent the file properly. If your editor doesn't know how, get a better one. 2: break down the problem into smaller parts by defining functions. this allow you to focus on only one little part of the whole, which is simpler.
<Trilient>
I know how to create and call functions, but for some reason they never work right if I try to use them conventionally
<Trilient>
I don't know why
mikesplain has quit [Ping timeout: 255 seconds]
<benzrf>
Trilient: in ruby we have no functions
<benzrf>
only methods
<Trilient>
methods I mean
<benzrf>
:p
<Trilient>
Sorry I'm still new to this lol
anaeem1_ has joined #ruby
<shevy>
Trilient it's always the same in ruby: name_of_object.name_of_method
<shevy>
cat.meow
<shevy>
dog.bark
<shevy>
trilient.leap :out_of_the_window
<yxhuvud>
benzrf, : while technically correct, the difference between functions and methods defined at the top level is meaningless here. don't confuse more than necessary.
<certainty>
when i learned C++ this was new to me
<benzrf>
yxhuvud: i know, i just like being a pedantic dick
<certainty>
*bad pun*
AlexRussia_k has quit [Quit: Konversation terminated!Good bye!]
Eyes has quit [Remote host closed the connection]
Eyes has joined #ruby
<Trilient>
I've heard ruby methods be called functions before, So I assumed people would have a better idea of what I was talking about if I just said function
gnephiak has joined #ruby
RyanV has joined #ruby
<isomorphismes>
benzrf: that's compelling. but I don't feel we shoudl be discussing other languages in #ruby
<Trilient>
And then I realized I'm in a room all about ruby
<Trilient>
So I should have known better
<Trilient>
Lol
<benzrf>
isomorphismes: then come to #haskell :-D
<benzrf>
isomorphismes: i enjoy ruby for the things that ruby is good at
<benzrf>
but maths is not one of them (at least compared to haskell(
<isomorphismes>
benzrf: /wi isomorphismes I'm in there with you ;)
<yxhuvud>
trilient, after three days of programming, you can't be expected to know anything.
sinkensabe has joined #ruby
SneakySnake has left #ruby ["Leaving"]
tharindu has joined #ruby
<Trilient>
I like to learn and feel like I'm part of the "crowd".
<foobarbaz_>
Trilient: Functions don't seem to be functions in ruby
<foobarbaz_>
I'm new to ruby, but they're weird from what i can tell
<foobarbaz_>
Or rather, blocks are weird
gattuso has quit [Ping timeout: 260 seconds]
<foobarbaz_>
def succ(n) n + 1 end
Eyes has quit [Remote host closed the connection]
<Trilient>
I'm new to programming period, so I don't know how functions work in other languages
<foobarbaz_>
[1, 2, 3].map(succ)
<benzrf>
foobarbaz_: ruby does not have first class functions
<foobarbaz_>
[1, 2, 3].map(&:succ)
<foobarbaz_>
I don't have a clue what &: means, but it's weird
<benzrf>
foobarbaz_: & allows you to pass an object representing a proc
<foobarbaz_>
:(
<benzrf>
foobarbaz_: so
<benzrf>
foo.bar(&some_proc)
<foobarbaz_>
Is it sugar for Proc.new ?
<benzrf>
foobarbaz_: if the object is not a proc, it will call to_proc on it
<benzrf>
the & passes the proc-thing as though youd written it out as the method's block
heftig has joined #ruby
<benzrf>
sadly, ruby distinguishes between passing a normal arg and passing a block
<benzrf>
still better than typing function() before everything and forcing super long parenthesis =3
joaoh82 has joined #ruby
<shevy>
hehe
Soliah has joined #ruby
<shevy>
benzrf, you used python
<shevy>
why don't you like parens suddenly
<benzrf>
did i say i liked that part of python?
<benzrf>
i use haskell don't i
* certainty
likes parens :(
sarkis has joined #ruby
<benzrf>
we have EVEN LESS parens
<benzrf>
fuck yea
pu22l3r has quit [Ping timeout: 244 seconds]
<Trilient>
@ yxhuvud Yeah I figured that. I've updated the code to fix that
<yxhuvud>
trilient: one way to detect things like that is to print more when searching for the error. if you call .inspect on the thing you want to print, then it will usually be more readable than simply putsing the object you are interested in.
hiyosi has joined #ruby
BizarreCake has joined #ruby
<Trilient>
puts "#{game}: #{score}".inspect like that?
<shevy>
foobarbaz_ there is a simple way to remember & - rather than writing: .map {|entry| entry.size } you can write .map(&:size) so in this case it would be significantly shorter; that's how you can remember it
<shevy>
imagine if we could even call methods with arguments like that
<shevy>
.map(&:my_method(3))
<yxhuvud>
trilient: more like puts games.inspect
<benzrf>
shevy: theres a thing for that eh
<shevy>
.map {|entry| my_method(entry) )
ta has joined #ruby
<yxhuvud>
you can also use 'p' instead of puts, that calls inspect automatically
<benzrf>
remember when i showed that little snippet that let you do '.map(&:my_method.(3))'
<benzrf>
and banister went nuts over it
<shevy>
what is that
<shevy>
I don't remember anything on IRC btw :( I have like a 2 hours memory
<certainty>
shevy: about too hours ago you promised me to donate some $ for my new project. Just wanted to remind you
sarkis has quit [Ping timeout: 255 seconds]
<certainty>
two,even
<Mon_Ouie>
Trilient: inspect is usually to print debugging information, I think you want to_s here
<Mon_Ouie>
In which case using "#{game}: #{score}" is a more convenient notation
hiyosi has quit [Ping timeout: 240 seconds]
<shevy>
certainty I don't remember that sorry
ta has quit [Read error: Connection reset by peer]
<benzrf>
can i have some $ also
<benzrf>
^that's valid haskell syntax
<shevy>
certainty don't you get paid in ? actually?
<yxhuvud>
Mon_Ouie, : I was trying to instruct how to do print debugging information, but I may have failed at getting the purpose of it across
ta has joined #ruby
<certainty>
shevy: yeah i know, that's why i remind you. But you did say so.
<certainty>
shevy: in questionmarks?
<certainty>
no i don't think so
<shevy>
hey
<Mon_Ouie>
yxhuvud: Oh, I had only seen his question, not what you said above
<shevy>
I can read it just fine
<Trilient>
Sorry for not properly understanding
<yxhuvud>
don't be sorry, it is I that should be better at explaining.
<certainty>
shevy: yeah because you use that newish utf-8 thing, no?
<shevy>
now you both are sorry
<shevy>
certainty nope, I am utf free since always!
<certainty>
strange
moritzs has quit [Ping timeout: 264 seconds]
moritzschaefer has quit [Ping timeout: 264 seconds]
<certainty>
me too on this box
<shevy>
\o/
<certainty>
but i assume you meant euros
<shevy>
of course, I wrote ? after all
<certainty>
16:42 < shevy> of course, I wrote ? after all
<Trilient>
How would I go about saving the information within this script into a file so it's called everytime it loads up, and the information is saved
Eyes has joined #ruby
<shevy>
no see <shevy> of course, I wrote ? after all
<Mon_Ouie>
Hah
<certainty>
:D
<Trilient>
It'd be useful it if didn't reload from scratch everytime it opened
Eyes has quit [Remote host closed the connection]
<shevy>
btw that reminds me, what do you guys use for making a screenshot + uploading it somewhere?
<benzrf>
shevy: a custom script :^)
<shevy>
written in a normal language or in haskell?
<certainty>
i usually upload my screenshots to /dev/null
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Trilient>
yxhuvud: I did read up on the file class, but I don't know much about classes or how they work, and wasn't sure how to go about implementing it into this
<certainty>
nice. Especially when you connect from some shell account
<benzrf>
lovely sugar
<benzrf>
certainty: shell acc?
MrDoctor has quit [Remote host closed the connection]
<benzrf>
Trilient: btw, use 'while login', not 'while login == true'
<certainty>
benzrf: there are services that provide shells. There you can ssh into and have a screen/tmux session that runs irssi
<benzrf>
ah
<certainty>
that's the way i do it
<benzrf>
i dont do that
<benzrf>
i just start irssi from my laptop when i want it
newUser1234 has joined #ruby
<benzrf>
what's the point in leaving it running when you have a bouncer?
<benzrf>
:3
klaut has quit [Remote host closed the connection]
blueOxigen has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<certainty>
benzrf: well then what's the advantage of using znc? i suspect your private key is on that box too?
noop has joined #ruby
<certainty>
benzrf: i don't have a bouncer :)
Takle has quit [Remote host closed the connection]
Gil has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
<Trilient>
thanks benzrf, cleaned it up based on your input :)
<benzrf>
Trilient: no prob!
<benzrf>
certainty: i run ZNC on my VPS
<certainty>
znc is a bouncer?
<certainty>
ok now it makes sense :)
Hanmac1 is now known as Hanmac
axl_ has joined #ruby
bbloom has joined #ruby
NukePuppy has joined #ruby
axl_ has quit [Client Quit]
<Trilient>
benzrf, do you have any suggestions on how to store the information in the code into a file so that way it doesn't reset everytime I open it?
<certainty>
yay i've setup ssh with my gpg smartcard. Next up, making it work with pam
<benzrf>
Trilient: depending on what types of data you're storing, you could dump/load to/from json
<Trilient>
It'd be The information in the hashes
<benzrf>
Trilient: if you only have numbers, hashes, arrays, and strings in your structure
<benzrf>
then you should be good with json
<benzrf>
hmm
<benzrf>
what's the ruby-native serializer called again?
stantona has quit [Remote host closed the connection]
MrDoctor has quit [Remote host closed the connection]
Paul_McFreely has joined #ruby
mary5030 has quit [Remote host closed the connection]
Fraeon has quit [Read error: Connection reset by peer]
Astralum has quit [Ping timeout: 264 seconds]
amargherio has joined #ruby
axilla has joined #ruby
jameswlane has joined #ruby
<shevy>
well
<shevy>
people can be recruited
<apeiros>
sure. but given how quickly I change projects, I won't do that before I have at least a minimally playable version
<shevy>
about 3 years ago we did that for parpg (which was however stopped); but all the graphics were done from scratch, by different people http://blog.parpg.net/
aantix has quit [Quit: aantix]
freerobby has quit [Quit: Leaving.]
ta_ has quit [Remote host closed the connection]
<shevy>
one of the worst thing for parpg was how quickly people come and go (as in leave, because they lost interest or lack time again); I neverb efore saw such a high turnover rate
aantix has joined #ruby
ta has joined #ruby
<shevy>
hardest thing was finding 3D modellers :(
narendraj9 has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
bmurt has joined #ruby
ahofmann has quit [Quit: Computer has gone to sleep.]
<Hanmac>
benzrf: nope i did not yet, but now my HDD knows ;P whats your opion about the last episode?
<benzrf>
spoopy
binaryhat has joined #ruby
binaryhat has quit [Read error: Connection reset by peer]
ahofmann has quit [Quit: Computer has gone to sleep.]
<Hanmac>
benzrf: i mean that kind of "Stargate" was wtf ... did you know it was build to travel between the multiverse and meet girls? ;D
ahofmann has joined #ruby
Deejay_ has quit [Client Quit]
Arkaniad has joined #ruby
kirun has quit [Remote host closed the connection]
anaeem___ has quit [Remote host closed the connection]
<benzrf>
creppy
decoponio has quit [Quit: Leaving...]
Xeago has joined #ruby
Zubin has quit [Quit: Leaving]
<Hanmac>
benzrf: on of the best chars in GravityFalls is BillCipher ... and i think he is getting a main role in season2 ... same as for Stans possible twin brother ...
nateberkopec has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<benzrf>
too spoopy to live, too creppy to die
Hobogrammer has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
kazi has joined #ruby
<Hanmac>
benzrf: some episodes of GravityFalls feels like they are wrote them while they where on LSD ... like Mables "Kitten for Fists" ;P ... or they watched one episode of AT ... thats similar to using LSD ...
toastynerd has quit [Remote host closed the connection]
jamto11 has joined #ruby
bradhe has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<happytux>
Hm, have they all replaced Ruby with NodeJS or did this channel became an offtopic one ;)
toastynerd has joined #ruby
<RubyPanther>
happytux: Node is a framework, Ruby is a language
maletor has joined #ruby
<happytux>
RubyPanther: It was a joke, nothing of it meant to be serious. :)
<shevy>
youre? what is youre... is that like yoghurt?
<benzrf>
yoghurt is delishis
<shevy>
kinda of depends
<shevy>
if it has real fruits then yeah
<shevy>
there may also be some... raw yoghurt? how do you call them... they are white, and taste very bitter, but if you pour sugar over them it's really great
<Hanmac>
shevy thankyou now i have that image of "YOUTH" inside my head (try google it with Naruto)
<shevy>
some turkish kefir-like yoghurts
<csmrfx>
only the raw yoghurt is yoghurt
<shevy>
csmrfx we may not add strawberries?
maletor has quit [Ping timeout: 240 seconds]
<csmrfx>
the by-products of dairy industry that gets a "yoghurt" label are horrendous, usually
Rojo has quit [Ping timeout: 272 seconds]
<csmrfx>
shevy: please do, and natural blueberries
<shevy>
yeah
<csmrfx>
you will live to 120
<shevy>
damn
<shevy>
what shall I do with all that time
<shevy>
why do you punish me so much
<shevy>
why do you hate me csmrfx :(
<csmrfx>
make a ruby simulation of Newark?
codezomb has joined #ruby
<shevy>
I wonder if I would still use ruby if I am age 120
<shevy>
I always said ruby lacks something like squeak VM
<csmrfx>
consider the eleet coding skills after the first 100 years of coding?
<RubyPanther>
I think the better first question is "Does vizualization boost logic generation or debugging?"
<RubyPanther>
So far, yes! That's why we do it...
everett has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<RubyPanther>
To the extent that you mean things that are not being used, those are the things that are not yet found to boost logic generation or debugging.
lw has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
well I have no such faith in efficiency of the universe
<RubyPanther>
Hanmac: Good example! So far most people agree it is more valuable to create visualizations of regex than to actually build the state machines with diagrams and then generate the regex from that. And it is not really clear how the visualization would assist in the first instance; you'd still have to fit the whole regex abstraction into your head, with the same unit size
<csmrfx>
I bet the things that are being used are those that teachers found simple enough to sell to the school board
<csmrfx>
or something trivial like that
datafirm has quit [Ping timeout: 264 seconds]
<RubyPanther>
Once you've written the code, generating the diagrams does help with debugging
<csmrfx>
I still keep asking myself, how could I draw logic in a "natural" way
<csmrfx>
then, suddenly it starts looking like electronics schematic and thats not natural
<csmrfx>
(usually)
<csmrfx>
it is a hard problem
zorak has quit [Ping timeout: 252 seconds]
<RubyPanther>
me too, and I've solved the problem too, but the reality is that it is mostly useful in "special education"
<RubyPanther>
It is an easy problem IF you're only modeling OOP
Channel6 has quit [Quit: Leaving]
<RubyPanther>
(or -only- FP, but that would be even less useful)
Takle has joined #ruby
<Hanmac>
RubyPanther: i would like to have a RPGMaker where i could make the event code with StateMachines ... but i think that might be overkill :/
<RubyPanther>
Hanmac: Naw, "overkill" doesn't apply to code!
<RubyPanther>
And how can a "maker" (eg, code generator) be over-built? By being too abstract? What?!
<RubyPanther>
If it is more abstracted, it should actually get simpler, so you would only get "overkill" by writing bad code, never by trying to do too much
<RubyPanther>
If you have too much code and not enough features, I guess that would be "over-built." But reducing the features doesn't improve that; increasing them might, since the existing code isn't doing enough
<Hanmac>
one of my main goals in programming is to write a OpenSource RPG maker totally written in ruby
<RubyPanther>
Hanmac: If you go with all-state-machines, you can write it in Ruby that outputs ragel, and then you can compile it to any language
<csmrfx>
is that D&D type, or Rolemaster?
kies has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 264 seconds]
<shevy>
csmrfx I think he means openrpg maker
<RubyPanther>
The whole idea of "visual logic," that is what we already do!
<shevy>
RubyPanther by piecing together standalone .rb files? :)
<csmrfx>
ok I see what that means
<RubyPanther>
shevy: I'm not even sure what you're asking
<shevy>
visual logic!
<shevy>
all the visual part split up into thousands of thousands .rb files spread out all over on the hdd
jxf has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
<RubyPanther>
shevy: "visual logic" isn't the same as "`visual' IDE"
<Hanmac>
RubyPanther: hm "all-state-machines" & ragel ... i need to think about that later ... currently the Maker is only a Editor, the game(-stater) itself is a different project but it should also be written in ruby
<csmrfx>
does it not even imply, that its a whole new area compared to semantic logic?
kies has joined #ruby
<RubyPanther>
If you divide your code into discrete units and store them on a HD, then yes, you will have n files spread out however your filesystem spreads out files, that doesn't address if your code uses visual logic or not
gruz0[russia] has quit [Quit: This computer has gone to sleep]
<csmrfx>
your file manager might
queequeg1 has joined #ruby
<shevy>
can I use .erb files like .rb files ?
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
kleine has joined #ruby
<shevy>
right now my .erb file looks like a .html file!
<RubyPanther>
Hanmac: if you use state machines, then the same code can be used by a map generator, but also by an NPC that wants to simulate routes (for navigation), and by multiple clients offering different visualizations of the map
<RubyPanther>
shevy: you can use any file any way you want, your real problem isn't the file "type" or extension, but the differing content
<Hanmac>
RubyPanther: i will look for it, but i dont know if ragel is the answer ... the maps are already tmx format and can be opend by tiled
SCommette has quit [Quit: SCommette]
<RubyPanther>
Hanmac: Yeah, it probably already has too much entrenched legacy... considerations... to make it that awesome
papercode has quit [Quit: WeeChat 0.4.3]
<Hanmac>
about the last spam link: hm making money is very easy ... just make your own country and declear something as currency ;P
nonnatus has joined #ruby
fuhgeddaboudit has joined #ruby
<csmrfx>
Why do I need my own country for that?
<RubyPanther>
Consider a "symbolic link" in your filesystem. What would need to be different to make it go from symbolic logic to "visual symbolic logic?" A different file manager? The value of symbolic logic is in the symbols, not in the visualization.
kies has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
<csmrfx>
Hanmac: why redo an 80s level game editor?
pvb has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
<csmrfx>
why not make a better, 2010s game editor?
<Hanmac>
csmrfx: because retro is IN?
<csmrfx>
didn't they already do the real thing?
nfk has quit [Quit: yawn]
<Hanmac>
and its 1000times easier to make games like that
<csmrfx>
sure
yfeldblu_ has quit [Remote host closed the connection]
<csmrfx>
but time investment is the hardest thing there
<RubyPanther>
"visual symbolic logic" is what Grace Hopper brought to computing...
<csmrfx>
and is that even hex-layout? does it have z-levels (height/3D map)?
irdan has joined #ruby
<csmrfx>
etc
bbloom has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<Hanmac>
csmrfx: all RPGMaker from ASCII and Enterbrain are 2D with orthogonal layout (2-3 zlevels), Tiled (the format i use has isometic too, but hexagon is not supported yet) (nearly infinte z levels)
fuhgeddaboudit has quit [Ping timeout: 244 seconds]
jrichocean has joined #ruby
<csmrfx>
does the combat system have criticals, body parts, etc?
<RubyPanther>
thinking back to my 80s RPG experiences, we used square grid graph paper for custom maps, they easily have 8 directions of movement, hex maps work good for combat simulation like battletech, but it sucks for campaigning
havenwood has quit [Remote host closed the connection]
SCommette has joined #ruby
irdan has left #ruby ["WeeChat 0.3.2"]
jrichocean has quit [Client Quit]
<csmrfx>
like, in dwarf fortress you can kick in angry bunnys teeth, and shut a dwarf with it in a room, and the bunny will keep attacking the dwarf but will never do any damage (no teeth) - dorf gets dodging experience
<RubyPanther>
csmrfx: That is all stuff I would want to hide behind various APIs, and the generator wouldn't care
kies has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
<csmrfx>
Ive been working (slowly) on a svg-to-game-map concept
<Hanmac>
csmrfx: depends, they have critical hits or someting but per default it does not change the layout, but the api is extendable with scripts
<csmrfx>
ok cool to know
<Hanmac>
but good ideas about body parts i add it to my scripts
<csmrfx>
well I was thinking of Rolemaster and dwarf fortress
bradhe has joined #ruby
<csmrfx>
Rolemaster is classic dice-and-paper format rpg
<csmrfx>
or was
sinkensabe has joined #ruby
<csmrfx>
it had the "best" combat system back in 80s
monkegjinni has joined #ruby
kies has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
mobi_pontiki has quit [Quit: Bye]
saarinen has joined #ruby
LadyRainicorn has quit [Quit: Bye]
bradhe has quit [Ping timeout: 240 seconds]
bbloom has joined #ruby
<Hanmac>
csmrfx: my current problem with the script logic was that my different parts like Battler-status & Battler-Ability(some kind of passive skill) did collide into a infinite recursion (Ability are levelable and can add status, while status can change the level of the abilities ... you see my problem there, ne?) so i need some kind of system how that will be checked without running into a recursion
timonv has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
BWStearns has joined #ruby
jxf has joined #ruby
monkegjinni has joined #ruby
noop has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
frankS2 has joined #ruby
spider-mario has quit [Remote host closed the connection]
klaut has joined #ruby
klaut has quit [Remote host closed the connection]
fold has quit [Ping timeout: 240 seconds]
<shevy>
we must make ruby the best scripting language out there
senayar has joined #ruby
klaut has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
kies has joined #ruby
<benzrf>
shevy: implying it isnt already
<csmrfx>
I think as a language it is there
<csmrfx>
but there might be work with operating systems, installers, documentation, gems, ...
dvcliving has joined #ruby
<dvcliving>
hello people, someone know's any gem
<dvcliving>
to use activerecord selecting attributes based on roles?
jackneill has quit [Ping timeout: 245 seconds]
<dvcliving>
for example, as a normal user cannot access to product.user_id, it's bad to just select it and them filtering it with active_model_serialization
<shevy>
benzrf well python seems to have a few really strong points, like numpy, biopython, and more devs
<shevy>
yeah csmrfx
joaoh82 has joined #ruby
<shevy>
it's like you may lead in a 100 metres run
<Sigma00>
dvcliving: you want role-based filtering on a column-by-column level?
<shevy>
but you stop short saying "hey I could have won anyway"
<dvcliving>
yes
senayar has quit [Ping timeout: 240 seconds]
<Sigma00>
that's kinda useless
<Sigma00>
since the data never leaves your server as long as your view doesn't print it
<csmrfx>
shevy: I think python wins the 400 and 800, but ruby wins in longer races
<shevy>
hmm
<dvcliving>
I mean, if we are admin, then I use Product.find(1) and it will use SELECT * FROM PRODUCTS, right? Thats good because I have permission to read all
<shevy>
and who wins for 100 and 200?
<dvcliving>
however, if I'm a not logged in user
<csmrfx>
bash, ecma and lua
<dvcliving>
it's a waste of resources just use SELECT * FROM products, but SELECT (title, price, description) is ok
<Sigma00>
dvcliving: from a security standpoint, there's no need (and you'll suffer a performance penalty)
<csmrfx>
perhaps VB etc
<csmrfx>
haha
<dvcliving>
u understand?
<Sigma00>
I understand, and I still think you'll lose performance if you do that
gruz0[russia] has joined #ruby
<Sigma00>
and increase complexity
GriffinHeart has joined #ruby
datafirm has joined #ruby
joaoh82 has quit [Ping timeout: 272 seconds]
<dvcliving>
Sigma00 but make serializer is still a extra process columb-by-column, right?
<Sigma00>
?
skmp has joined #ruby
<csmrfx>
I wonder if its best to leave optimizations to SQL
<dvcliving>
yes, we get the whole object with Product.find(1) and then the controller uses a serializer, which is not other thing that a function filtering attribute by attribute based on roles
<dvcliving>
so still there is a permormance penalty
<dvcliving>
and what about indexes
<Sigma00>
ah, youre using a serializer
<dvcliving>
where we need to apply serializers to a list of records
<Sigma00>
that's different
yfeldblu_ has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
<dvcliving>
what do you suggest Sigma00 ?
<Sigma00>
I assumed you were doing a normal rails app
<Sigma00>
should have asked
<dvcliving>
I have a rails 3 app
<dvcliving>
but now I'm moving to Grape API
<dvcliving>
but I need roles and permissions by attribute
Edelwin has joined #ruby
<Edelwin>
hi
DrCode has quit [Ping timeout: 264 seconds]
<dvcliving>
so, filter json result attributes based on a role and making attr_accessible based on a role
bbloom has quit [Quit: Computer has gone to sleep.]
riotjone_ has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
andrewlio has quit [Remote host closed the connection]
mehlah has joined #ruby
joaoh82 has joined #ruby
combusean has joined #ruby
<shevy>
foobarbaz_ well so far, the UK team actually is better, the italian team is starting to go on my nerves
sinkensabe has quit [Remote host closed the connection]
<shevy>
the spanish team used to be famous in 2010 for their tiki-taka; the italian team copied it in 2014, except for the fact that they do not run at all.
sinkensabe has joined #ruby
datafirm has quit [Ping timeout: 272 seconds]
<shevy>
AlexRussia are you writing ruby code
vinleod has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
s3ri0us has joined #ruby
isthisreallife has joined #ruby
nateberkopec has joined #ruby
jxf has joined #ruby
<foobarbaz_>
What's the difference between the different kinds of map values?
<foobarbaz_>
Like, def foo(attr = {}) puts attr end