« first day (2880 days earlier)      last day (2141 days later) » 

2:23 PM
hi
am I alone here?
or is it just sunday
 
user92578
no you are not alone
 
are you working on anything
 
user92578
I've been doing just a bunch of random stuff today, haven't really been able to focus on anything
 
I've wanted to work on multiplayer but I can't play videos :(
 
user92578
:(
 
2:34 PM
there is nothing quite so permanent than a quick fix
170141183460469231731687303715884105727
that is the largest known prime number
 
user92578
2:50 PM
not true
 
user92578
it's 2^77232917 − 1
 
@Tyyppi_77 It is more than 22 million digets long
 
user92578
lol your number is from 1876
 
user92578
@TheMaskedRebel yup exactly, which is why I gave the mersenne form
 
@Tyyppi_77 It is the first number that a computer calculated
See this:
23
Q: Why was 2^127-1 an interesting problem for "Baby"?

uhohThe BBC News article The 'Baby' that ushered in modern computer age along with the short embedded video begins with: A machine that took up an entire room at a laboratory in Manchester University ran its first program at 11am on 21 June 1948. The prototype completed the task in 52 minute...

 
user92578
2:55 PM
@TheMaskedRebel I'd like a source for that statement
 
@Tyyppi_77 I've just given you one
 
user92578
Well that's sort of an missleading statement since it gives off the impression that a computer found the number, which is not true
 
@Tyyppi_77 I'll get that
here it is
@Tyyppi_77 180×(M127)2+1
 
user92578
what?
 
@Tyyppi_77 That is the largest prime number a computer calculated
 
nwp
3:02 PM
That's not a number, that's a syntax error.
 
user92578
^
 
user92578
@TheMaskedRebel What have we talked about edit pinging???
 
user92578
that's still garbage
 
@Tyyppi_77 Sorry
 
user92578
The conversation here would flow much more fluidly if you didn't ping me every time
 
user92578
3:04 PM
That way you could edit your messages freely without upsetting anyone unnecessarily.
 
180×(M^127)^2+1
 
user92578
What is M?
 
user92578
Also, the largest prime number calculated by a computer is the one I shared above
 
fine the first prime number calculated by a computer
 
user92578
this has been a great conversation
 
3:13 PM
I'm off to learn some networking
 
3:34 PM
ping me if you want
 
3:49 PM
hi @Jimmy
 
hi
 
how are you
 
good, having a lazy Sunday
 
4:06 PM
I'm still learning about networking
 
good job
take it step by step
like start by writing the simplest client/server example that just runs on one computer first
 
I'm following a tutorial
 
okay
 
which seems to be nothing about networking and all about UI management :P
 
user92578
sounds like a bad tutorial
 
4:15 PM
I've watched it before and on the 11 episode he picks up networking after a very long apology
for focusing on UI instead of networking
 
user92578
so why are you watching the first 10 episodes then?
 
because I need to learn a bit about UI management
@Jimmy The tutorial I'm following has its own code that I'm copying
 
user92578
do you tho?
 
yup I do
 
user92578
because you set out to learn how to setup a swing UI?
 
user92578
4:21 PM
or because you want to copy his code exactly?
 
both things
 
user92578
I wouldn't really waste the time 10 episodes setting up an UI
 
I am learning stuff about Window Builder and JFrame's that I wouldn't have learned elsewhere.
@Tyyppi_77 To be honest that is the reason
 
user92578
@TheMaskedRebel Sure you would, when you would have needed that information
 
user92578
sounds like a terrible way to learn but meh, maybe it works for you
 
4:29 PM
@Tyyppi_77 It does. And remember that I've watched the tutorial before and I know what it contains so this isn't out of impulse.
@genaray hi
 
So i decided to move away from doing everything using MySql... well i still use it ... but only once on startup and once when the server is shutdown. And i only store important player data... not the unimportant anymore... but theres one problem... i somehow need to manage my chunks serverside... Whats an better approach ? A nested map like this : Map<Integer, Map<Integer, Chunk> or a two dim array ? It should be extremly fast. So i thought the nested map would be better... is this true ?
The first integer of the map represents x and the second one y...
 
@genaray Try both and decide for yourself
 
user92578
What kind of access do you need? Do you always have like just a 5x5 of chunks around a player?
 
@genaray I think a 2 dim array is better
 
why
 
4:33 PM
3x3 chunks around each player... I just want to store "buildings, resources and mobs" for each chunk, thats pretty much all.
 
@Almo Because nested maps are sometimes a bit odd
 
user92578
@genaray Just that, nothing else?
 
that doesn't sound like a good reason to me
 
user92578
Your use case is "For each player, store 3x3 chunk area around them"
 
@genaray Or you could create your own map to store them
@Almo You're right
 
4:35 PM
@Tyyppi_77 Exactly. Its just for storing those data server side... oh wait. Not exactly 3x3 for each player... 3x3 chunks are only visible for each player... There a lot more chunks actually... Its some kind of open world.
 
user92578
Yes but you only need 3x3 chunks stored at once for a player, right?
 
user92578
In that case, I'd definitely go with a 2D array, because you don't need the hashing
 
@Tyyppi_77 Yep thats right. Once he jumps to another place, i load the new 3x3 area
@Tyyppi_77 Alright thanks :D
 
@genaray How is your game getting along
 
@TheMaskedRebel I implemented weapon upgrades... but now i need to recode a lot of stuff due to my high usage of MySQL querys >.<
@TheMaskedRebel What are you working on ? :)
 
4:39 PM
@genaray Networking
I'm developing "The Death Corner"
@genaray What IDE are you using
 
user92578
oh i didnt know you had a game project
 
See my chat profile
 
@TheMaskedRebel Im using Java serverside and unity client side ^^ ... do you already have a facebook page, youtube channel or some kind of blog ? :D
 
@genaray No
 
user92578
lol that didnt explain anything new after your "I'm developing "The Death Corner"" message
 
4:42 PM
An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools, and a debugger. Most modern IDEs have intelligent code completion. Some IDEs, such as NetBeans and Eclipse, contain a compiler, interpreter, or both; others, such as SharpDevelop and Lazarus, do not. The boundary between an integrated development environment and other parts of the broader software development environment is not well-defined. Sometimes a version control...
that is what I meant :)
@Tyyppi_77 its a war game with two armies in two teams
 
user92578
cool, what have you got so far?
 
@TheMaskedRebel Oh sure... sorry xD Well Eclipse for java and Visual Studio 2017 for c# ;)
 
user92578
How did you choose Java for serverside?
 
@Tyyppi_77 I'm still developing the game engine.
 
user92578
I see.
 
user92578
4:45 PM
Why did you choose to build your own game engine for the game? Are the existing game engines not capable of what you want?
 
@Tyyppi_77 There was no other option... im using a pretty cool server sdk which does the most stuff for me ^^ ... in my case its petter to use this instead of developing an own server side environment
 
user92578
ah, sounds like a good reason! :)
 
@Tyyppi_77 I want to develop game engines and this game is meant to be a fun exercise :)
@genaray What is the server called
 
@TheMaskedRebel Its called "SmartFoxServer"... pretty cool tool for rapid development :) It allows to implement own extensions and stuff... They already implement their own area of interest... ban tools... zone tools and much more ^^
But the website looks awfull xD
 
CAn I see the website
 
4:49 PM
here you go... but otherwise great product :D
 
user92578
@genaray a lot less sketchy looking than I expected
 
:D well
 
@genaray The top bit is very bad
 
Yeah... i bet they could increase their sales by just improving their UI >.<
 
4:54 PM
right now I am fixing a problem with my IDE
 
user92578
which one do you use?
 
eclipse
 
user92578
ugh
 
xD
 
5:08 PM
how do I remove plugins with the latest photon release.
 
argh eclipse
 
user92578
bad ide for a bad language made in said bad language
 
I'd rather use GIMP than Eclipse.
:O
 
user92578
man I am really pissed off, they made GIMP a lot worse with a new update
 
:(
that sucks
 
5:11 PM
Hi
 
@FreezePhoenix hi
Code never lies
 
hm? Sometimes it does.
 
nope we misinterpret the code
 
user92578
that's not really true
 
Lying phones were developed a couple years ago
 
5:19 PM
?
 
Phones that would tell a lie in the way of what phone numbers were called
 
Local code can lie
c = a * b;
 
@genaray an you help with my eclipse error message
 
@TheMaskedRebel What error ?
 
if that's overloaded for matrix multiplication... it's doing something a lot different than it looks like
 
@TheMaskedRebel Looks like the plugin isnt compatible anymore...
 
@genaray What do I do
 
hit the google for what to do
seriously, it's what I would do if I had that problem
 
I've done that already
 
not trying to be a dick here
 
5:23 PM
@TheMaskedRebel Try to update it ... or disable it xD
 
@genaray I looked on google for how to disable plugins and got... nothing
 
@TheMaskedRebel Help -> Eclipse Marketplace -> Plugins... there should be a option to remove them somwhere
 
first hit
seriously, it's not that hard to find stuff like that
 
We must have very different googles
the first hit was a stackexchange site
of 0 value
 
No... different google search histories
 
user92578
5:26 PM
then you search more
 
user92578
this kind of stuff is not hard to find, even if the first link is to stack overflow
 
90
Q: Temporarily disable Eclipse plugin

Borek BernardIs there a way to disable an Eclipse plugin without actually uninstalling it? (Eclipse 3.3 had a "disable" button but this is now missing from Eclipse 3.4+.)

second hit
looks like it works
 
@genaray what version of eclipse are you using.
 
@TheMaskedRebel Luna... Not the newest one... but im not using any plugins
 
I'm using Photon
Wow the eclipse IDE just gave itself a makeover
To code or not to code
There is no place like 127.0.0.1
wow the eclipse IDE just crashed
 
5:39 PM
@TheMaskedRebel you're not making much sense anymore
 
@TheMaskedRebel not surprising
 
@FreezePhoenix That is because my internet is lagging
 
Eclipse is not very good
 
@Almo Its the only thing I can afford
 
user92578
Isn't IntelliJ free?
 
5:41 PM
@Tyyppi_77 no its $47
 
Does anyone have an OpenWeatherMap account...
 
user92578
Looks like they have a free Community version, just like Visual Studio
 
I'll look for it
is that the free one
 
5:59 PM
you shouldn't need to ask us that
 
Lol
@Tyyppi_77 hey
 
6:17 PM
Would it be either better to "live" update the players inventory when dropping/picking up something ? Or would it be better to save the inventory of each player every minute once ?
 
Update the UI, but save every minute and on quit
 
@FreezePhoenix Thanks :)
 
So don't save the file when dropped, etc
Oh, and remember, save everything at one time every minute or so. That way it is at a gvien point
 
Well actually i thought about saving in the database ^^
Well actually i thought about saving in the database ^^
 
7:21 PM
Well...
 
7:34 PM
OK so im still trying to implement beat detection based on archive.gamedev.net/archive/reference/programming/features/…
can anyone decipher the line "We must compute the variance of the energies contained in the energy history buffer (E). This variance, which is nothing but the average of ( Energy Values – Energy average = (E) - <E> )"
in I1c
 
It computes the variance
 
i have the "history buffer" its talking about, is it saying subtract the sum of all the history values from the average?
 
thats strange... normally my method should be called once every minute after startup... somehow it just calls once at all... No error... strange
 
@genaray can you show the timing method?
@JamesTrotter NO
Subtract the individual values from the average
That way you have a buffer of all of the deltas (Differences)
 
and sum the result,and do the 1/43 x that sum?
 
7:38 PM
NO
 
@FreezePhoenix I really would love to... but those tasks are managed trough an api :/
 
@genaray did you change anything big?
Can someone five me a screenshot of that emoji... I can't see it.
 
@FreezePhoenix No... i never touched any api code :P
 
hi James
 
7:40 PM
its a face palm, lol
 
variance is a measure of "how far each item is away from the average"
 
@genaray No no... I meant in your code
@Jimmy I've been trying to explain that
 
@FreezePhoenix Not either... maybe its just a logic mistake :/
 
I'm just confused when i use the variance values I guess
 
Hm. Did you put an And statement where you meant Or
 
7:42 PM
"Compute the 'C' constant using a linear degression of 'C' with 'V', using a linear regression with values"
 
you can do average = calculate_average(arr); variance = sum((x - average) ** 2 for x in arr) in pseudo-Python code
uh, I'm not sure what that part means, --- nevermind, found the pdf---
 
@FreezePhoenix Not either... i think im gonna try to call it at a different intervall for the first
 
so i do want the average variance, and thats the value I use?
 
@JamesTrotter NO
You want a buffer of variances
 
what value are you using for "C" right now?
 
7:43 PM
but I only want a single value of "C"
hard-coded to 1.3
 
So loop over each item, and replace it with the variance
Wait yes
You had that right
@JamesTrotter Correct
 
ok cool i think I got it then
makes sense
 
so just hard-code to 1.3 and ignore all the degressio part?
 
thanks
 
that formula is just to calculate a "better" value of C for your particular music sample
but if fixed 1.3 works for you then you don't need it
 
7:45 PM
yeah no i do want it calculated
its working for some songs but not others,pretty much how he described in the document
 
lol what a weird article
as soon as you get the dynamic C working it asks you to convert to a FFT-based calculation
 
lol yeah
I'm hoping to use data taken from both techniques
unless the second one in practice is just obviously superior in every way
then its all just a learning excersise ¯_(ツ)_/¯
 
I suspect with the right tuning the FFT approach is better
FFT tells you "all frequencies that have a strong periodic component", which would fail for really avant-garde non-periodic music, but otherwise does a good job of picking up regularly spaced sounds
the "simple beat detection" can only tell you whenever the song gets "suddenly louder" which may not always be a beat, and can't necessary pick up, say, a second quieter instrument having a beat
 
Gasp I can't believe I left a github staff member waiting
 
8:01 PM
Yeah, I was thinking if I apply a low-pass filter to the track and feed it through the first algorithm I might get better confirmation on like drum beats and stuff whilst trying to filter out most instruments and vocals
But I'm not sure how well it will work
And like you say, since it's using FTT to do the detection it already knows about the frequency the beat was detected for so might make it rather redundant trying to filter for specific frequencies
 
I've been following github.com/github/linguist/issues/2627 for like 2 years ... it's pretty frustrating as a language designer to not be able to customize this per-repo
 
Does anyone have an idea what could cause this piece of code to crash without an error ? public String toMySQL(){


int generatedR = generatedResources ? 1 : 0;

int generatedM = generatedMobs ? 1 : 0;


SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");


return "("+id+","+x+","+y+","+generatedR+","+dateFormat.format(generatedResourcesDate)+","+generatedM+","+dateFormat.format(generatedMobsDate)+")";

}
 
@Jimmy Walk me through making a language sometime, will you?
 
it's not that hard in some ways, although the theory goes really deep if you dig in
the basic architecture for any language is a frontend that turns text (your source code) into a tree representation, and a backend that either turns that tree representation of code into machine code (a compiler) or runs it (an interpreter)
 
8:13 PM
so if your language is "arithmetic", the frontend turns "2 + 3 * 4" into "Add(Number(2), Multiply(Number(3), Number(4)))" which the backend turns into some kind of assembly like "load eax, 3; mul eax, 4; add eax, 2;" (made up syntax, but you get the idea)
@genaray step through it with a debugger?
 
@Jimmy I already did... multiple times... but no error, exception or any other iusse...
 
then there's nothing wrong with that code
maybe it's crashing at a different point
if your debugger successfully steps out of the function, it's not causing a crash
 
8:33 PM
Yes
I see where the error is
Does anyone have an idea what could cause this piece of code to crash without an error ? public String toMySQL(){


int generatedR = generatedResources ? 1 : 0;

int generatedM = generatedMobs ? 1 : 0;


SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");


return "("+id+","+x+","+y+","+generatedR+","+dateFormat.format(generatedResourcesDate)+","+generatedM+","+dateFormat.format(generatedMobsDate)+")";

}
is not valid code (JK)
 

« first day (2880 days earlier)      last day (2141 days later) »