-
Posts
785 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by VITAS
-
Update: I decided to rent a new server for SpaceDock (and eventualy get rid of the existing main server) The current main server has the following specifications: i7 2600 (Sandy Bridge) 32GB RAM 2x2TB Magnetic HD 1Gbit/s The new one has: AMD Ryzen 7 1700x 64GB RAM 2x 500GB SSD 1Gbit/s Its a bit more Expensive (than the current one as well as similar newer intel ones with ssd) but the added cores and memory hopefully speed up the database an thus the site. You can also see that the current server is in use by me since 2011 so even exchanging it for some similar intel system from today would bring me some performance gain. Migration will take quite a while, because im busy at work and my motivation to do even more sysadmin stuff after work isnt that great. Theres also a bunch of services (like email) that arent as easy to move.
- 2,168 replies
-
- 2
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Me trying to be on Holliday and the apache server beeing unresponsive/crashing (dont ask my why) was the problem. Fixed and Sorry Regading my thought on switching Servers: the Database is slow and spacedock is very sensetive to any other service running on the same system (e.g. antispam gateway). i also think, that the site could be way more responsive. Especialy for unbuffered loads (first time visits)
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Hi, somehow Apache was stuck. i just restarted it. Sorry about that. Im also debating to move servers soon. It comes down to: do i want to have the hussel to migrate everything i set up since 2011 and think that 2011 is old enough for server hardware to get something newer. (And it also depends on my predictions regarding donations in the future)
- 2,168 replies
-
- 2
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
the css is kerbalstuffs modification of bootstrap, that i in turn modified to look like it does. SO dont expect it to look like you want by overwriting it another time
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
one day.... i hope
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
i dont know if there is an optimal image size
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Some vocabulary: Wavelength: a datapoint. This is about fluorescence spectrometry aka measuring the intensety at different wavelength of light. Component: a dataset containg measurements for a range of wavelength Model: sort of a folder containing multiple components Goal: The user wants to find similar components to the ones contained in the model he selected. how it (should) work(s): the tuckercalc function calculates a value between 1 and 0 that represents the similarity between all wavelength (aka measurements) of a component (aka dataset) in relation to another components (datasets) wavelnegth. 1 represents 100% identical and 0 0%. But we can only compare ranges of data we have for both components. So we have to a) start at the smallest wavelength both components have and stop at the largest and b) interpolate mssing datapoints that are in the source component (the one we want to find matches for) from the existing data of the target component using linear interpolation. What i do is to first get the source component data fromt he db and dump it into an array. then i cycle trough all the datapoints in the db that dont belong to the source component trying to extract the needed wavelength or interpolate them for each component of each model. so what i should end up with is two arrays: one source component array and one with the correct target wavlenegth (without the unneeded ones and with the missing interpolated ones) once the loop finds out that a new component started it calls the tucker calc function, gets the similarity value and dumps the result into an array that is later used to make a bulk db insert after all components of all models have been checked. my problem: the result is always 0 what i know: the tucker calculation is correct until i start to compare the results of the source and the the target. And i also found that there are more wavlenegths compared as needed. My guess: my array preparation code (in the main function) isnt matching the source and target arrays, so they contain wavlength the other doesnt contain and because php tends to return zero isntead of null for non existant variables it messes up the tuckercalc function what i think is needed: someone to revisit my hot code mess in the main function with the goal to make sure the arrays that are send to the tuckercalac fucntiona re in order (as defined above) The future: Im open for improvements that make the code faster and/or more compact after its working as intended. I know i repeat myself but i hope this is clearer And another disclaimer for anybody new: Yes its PHP and no this is not a place or time to voice your opinion about it or suggest different mathematical solutions. This has to be done the way i described with PHP. Getting this to work is my main priority. Making it beautiful and fast comes after that.
-
thare are no nulls in the db (as you can see from the db dump) but zeros are a thing that exists in the db and are valid values.
-
i summ the array to add a check later. if it isnt 1 something went wrong. I think the problem isnt the tuckercalc function but the compare function. i hunch is, that it has to do with php returning 0 isntead of null for nonexistant values and that the function tries to compare source values with target values that dont exist. (so it fails if the target dataset has a lower maximum wavelength than the source.) Your function certenly makes the tucerclac function a lot more streamlined. (Ive to test it) Thank you p.s. im sure you know how it is: you can conenctrate and get more confused by the second but have to get stuff done. thats when you end up with code like mine
-
$sT[0][] = pow($sWl,2); <- isnt that 2D? i wrote it that long so i can find bugs. youre right that i can massivly compact and speed it up once its working i tried " "$sWl ^2" and that didnt work but yes mybe * would. Ill keep that in mind once the code itself works. Thank you for your input
-
Yes m explanation is a bit sloppy. I spend a week on it and ive just no energy left in me to finish it. (But i need to finish it by the end of next week) It isnt that complicated i would say. Im just in a state of "huh?!" The second part is to display the best matches and so on. I will simply get them from the cache tables afterwards. I do that because theres no point in calculating everythign over and over each time somone wants to find the best matches. Btw. I use laravel and thats another problem: iwhile looking at that framework i was tossed into this project and had to use it while learning it. so i would say my laraval is crap but php is no problem. (and just as disclaimer: this has to be done in php (+laravel) and using those algorythems so "use x its better" wont help)
-
Please read the whole text and also take a look at the link below before you post something. Thank you Hi, im working on some real world sience stuff and have to write a php function that compares datasets using the Tucker Congruence coefficient. I cant get it to work like it should and welcome every help in fixing my code. You can see more details under the link below. Thank you in advance. More Details A more detailed Explanation: Some vocabulary: Wavelength: a datapoint. This is about fluorescence spectrometry aka measuring the intensety at different wavelength of light. Component: a dataset containg measurements for a range of wavelength Model: sort of a folder containing multiple components Goal: The user wants to find similar components to the ones contained in the model he selected. how it (should) work(s): the tuckercalc function calculates a value between 1 and 0 that represents the similarity between all wavelength (aka measurements) of a component (aka dataset) in relation to another components (datasets) wavelnegth. 1 represents 100% identical and 0 0%. But we can only compare ranges of data we have for both components. So we have to a) start at the smallest wavelength both components have and stop at the largest and b) interpolate mssing datapoints that are in the source component (the one we want to find matches for) from the existing data of the target component using linear interpolation. What i do is to first get the source component data fromt he db and dump it into an array. then i cycle trough all the datapoints in the db that dont belong to the source component trying to extract the needed wavelength or interpolate them for each component of each model. so what i should end up with is two arrays: one source component array and one with the correct target wavlenegth (without the unneeded ones and with the missing interpolated ones) once the loop finds out that a new component started it calls the tucker calc function, gets the similarity value and dumps the result into an array that is later used to make a bulk db insert after all components of all models have been checked. my problem: the result is always 0 what i know: the tucker calculation is correct until i start to compare the results of the source and the the target. And i also found that there are more wavlenegths compared as needed. My guess: my array preparation code (in the main function) isnt matching the source and target arrays, so they contain wavlength the other doesnt contain and because php tends to return zero isntead of null for non existant variables it messes up the tuckercalc function what i think is needed: someone to revisit my hot code mess in the main function with the goal to make sure the arrays that are send to the tuckercalac fucntiona re in order (as defined above) The future: Im open for improvements that make the code faster and/or more compact after its working as intended. I know i repeat myself but i hope this is clearer And another disclaimer for anybody new: Yes its PHP and no this is not a place or time to voice your opinion about it or suggest different mathematical solutions. This has to be done the way i described with PHP. Getting this to work is my main priority. Making it beautiful and fast comes after that.
-
Yes somehow the Lets Encrypt Bot didnt run because of one domain having problems.
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Yes theres a bug that took down the site twice.
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
We had some downtime today. I found a Bug in the sites code. Its now running again.
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Yes youre right. You cant change your email address atm. Unless i find a bunch of python devs im unable to change that. sorry. Im simply to busy to add features to the site. Moving Servers is a permanent thing. Theres always change in the infrastructure. E.g. The G20 summit is where one rack is located and i cant get to it until thats over (see todays images below), so i had to move stuff off there untill i can gurantee that i can fix stuff it it breaks. Then theres stuff that breaks and adjustments in resources dependiong on that months donations. SpaceDock is a busy site so i need to work on it all the time. Life would be great if i wasnt the only one maintaining it. (apart from Thomas coding on future versions) Update: i hope they dont burn down the servers there are thick smoke clouds i can see from here over the area. Update My Servers still exist But there was some massive destruction on the streets arround the Building (burning cars, destroyed shops and the like). Its all cleaned up now and i will check on the systems tomorrow. https://www.reuters.com/news/picture/protesting-the-g-idUSRTX3ABM0 https://uk.reuters.com/article/uk-g20-germany-protests-idUKKBN19S1BB?il=0
- 2,168 replies
-
- 2
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
they came because i fixed it long version: theyre replacing the aircondition in one of the serverrooms where SD is located and i had to shut down those servers til next week. so i migrated stuff away from them beforehand and forgot something.
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
ok thx for the heads up. ill look into it.
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
yes i found the problem and fixed it
- 2,168 replies
-
- 2
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Youve to hit "publish mod" or no one will be able to see it on SpaceDock Thank you for your contribution. Heat managment is exactly what i need right now. I hope it comes with an airconditionier included
- 5 replies
-
- kerbobulus space program
- heat
-
(and 2 more)
Tagged with:
-
You can also do one time Pledges. But i would prefer to approach me if youre planing to donate larger one time amounts. So i can give you the bank account details. Getting Money out of Patreon is a hassel and wastes money so doing direct bank transfers is a good idea for those. (Patreon, banks and taxes suck away nearly 50% of the donation sum and ive to fill out forms with the USA and German tax institutions) I dont use Paypal so i cant offer that. But i can offer Bitcoin. SpaceDock uses a fixed monthly amount of money so from a planing standpoint its better to have a predicteable stream each month. But because of the above i think larger one time payments are better. P.S: Im open for suggestions to replace patreon. It needs to be something that is idealy european or better still german (so i dont have to fill out that many forms), doesnt take that many fees (Patreon even takes fees for redonating money within patreon...thats next level greedy) and is cheap for US based people to transfer small amoutns of money to.
- 2,168 replies
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Tank you
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
500? updating the server
- 2,168 replies
-
- 1
-
- totm july 2019
- spacedock
-
(and 3 more)
Tagged with:
-
Take any group of random people and they wont be all happy. Seeing how mainstream Games are these day (yearly itterations, paied DLCs, if multiplaer than on company hosts,...) im just cautious. Im not raging (disclaimer: i worked in the the game industry (including EA) for some years and and i left because they stopped sharing my basic ethics.)
- 772 replies
-
- 3
-
- kerbal space program
- take-two
-
(and 1 more)
Tagged with:
-
I wouldnt call it "exciting" times more like "cautious". Are there any planned Changes to the PR staff? Will Take two set up their own forums or will they send staff here? Andmost important to me: What will happen to the curse contract? I was responsible for the integration of IT infrastructures after mergers in the past and i know how hard and confusing it is when things change from the usual ways to how the new owner does things. What i want to say is: I know how it feels beeing in such a transition. All i wish is for who ever is in charge to supoort the community (especialy the the part supplying mods) and to understand that KSP wont exist like it does without it.
- 772 replies
-
- 2
-
- kerbal space program
- take-two
-
(and 1 more)
Tagged with: