Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

MediaWiki and Databases

Name: Alex 2010-05-16 1:19

So I'm working for a Material Science research group for a summer job, and they want me to set up a wiki to centralize data and experiment results. I've taken exactly one Java class.

So, I set up a MediaWiki site, but they want to connect the data together, along with citations.

For example, Silicon has two properties they're interested in, "hole mobility" and "electron mobility". So on the wiki article on Silicon, they want to list Silicon's hole mobility and the electron mobility, but on the page for electron mobility, we want a list of many different elements' hole mobilities. When they update the hole mobility on the Silicon page, they want the number on the Hole mobility page to update as well. They will also want a citation attached to each data bit, so they'll know what circumstances and where that information came from

I believe that this will require a database system, and was wondering if you guys could point me in the right direction. I've just started to learn MySQL, and well frankly and slightly overwhelmed. Is MySQL too powerful of a language for this? Is there a simpler way to implement website-wide changes?

Thanks yall.

Name: Anonymous 2010-05-16 1:33

How on earth did you even get the job. Is there no CS/SoftEng class in your town?

Name: Anonymous 2010-05-16 1:51

MediaWiki actually sucks.

Its only purpose is to run Wikipedia. It's huge and heavy, and the code is nasty and convoluted, and the developers only care about anything you have to add or request as long as it doesn't affect how Wikipedia runs. Its full-text search is so highly defective that nearly everyone who wants to search for something on Wikipedia will just use Google instead. The wiki syntax is a horrible, nasty pile of hacks, it's monstrously incongruent (for one example of many, why are internal links double-brackets with a pipe separating target and text, but external links have to be single brackets with a space separating them?) and often it's easier or even necessary to fall back to writing plain HTML because it's either inflexible or simply lacking syntax outright for something. And you don't even get to write proper HTML, it's this bastardized "cleaned" version that strips out useful things like image links (this requires installing an extension, despite half of all websites in the world using an image as a link at some point or another), and integrating logins with other web services is nothing short of painful.

That aside, if I understand you right, you seem to be describing the relations between one article and another, and this is exactly what SQL is made for. (Although I would never choose MySQL for anything, ever.)

So you'd have a table of (page_id, citation_id), and (citation_id, text); then you look up the page's id in the former table, collect all your citation ids, look up the text for them and fetch all the other pages that those link to, and dump it all out at page render time. Of course all of this can be done in one query with a few joins, it's a bit messy but entirely straightforward.

Name: Anonymous 2010-05-16 4:05

You will have to write >Silicon's hole mobility and the electron mobility
In a template and include the template in pages you want to be updated. Also, MediaWiki is overkill.

Name: Alex 2010-05-16 5:38

Oh wow... okay so I didn't know there were other options other than MediaWiki. I'm reading through www.wikimatrix.org right now, which looks like a good resource.

As for the database, I'm pretty sure I'm trying to do something extremely simple (have a "core" that other pages reference for data when loading), so is SQL or MySQL simpler to learn? Or perhaps another language?

Thanks!

I didn't think there would be any computer coding, certainly wasn't in the job description. I think they just need to keep me busy while they try to find something more productive for me to work on.

Name: Anonymous 2010-05-16 5:47

>>5
If you can't program, just use one of the off-the-shelf apps, there's plenty open source wiki's, and you need minimal programming knowledge to set them up.

Name: Anonymous 2010-05-16 8:46

>>2-4,6
YHBT

>>1,5
Read SICP

Name: Alex 2010-05-16 14:14

>>7

Well aren't you an ass. I'm not trolling, and I already know the basics of object-oriented programing (Java). I'm just trying to figure out what system/system would work best, which SICP fails like a fish on ice at.

Does anyone have strong thoughts about JSPWiki or Daisy? I think those are the most fully featured non-MediaWiki wiki's out there, but it's impossible to tell a finicky system by its feature set.

Name: Anonymous 2010-05-16 14:19

>>8
SICP is never the wrong answer.

Name: Alex 2010-05-16 14:26

And now *you're* trolling.

Name: Anonymous 2010-05-16 14:55

>>1,8
Is MySQL too powerful of a language for this?
I already know the basics of object-oriented programing (Java)
which SICP fails like a fish on ice at.
Jesus fucking Christ. I weep for humanity.

Name: Alex 2010-05-16 15:00

>>11

False drama much?

Name: Anonymous 2010-05-16 15:08

>>11
Sad state of affairs isn't it, and the saddest is that Mr. Alex here doesn't see it.

Name: Alex 2010-05-16 15:17

Wow, you actually read something I typed. First time?

Name: Anonymous 2010-05-16 15:34

>>14
Hi, I'm invisible

Name: Anonymous 2010-05-16 15:42

How do I make it so you guys can read what I'm typing?

Name: Anonymous 2010-05-16 15:52

>>16
install gentoo

Name: Anonymous 2010-05-16 15:57

>>16
Once you complete reading SICP, you'll have to subscribe to a world4ch premium gold membership.

Name: Alex 2010-05-16 15:58

Oh, so I have to pay so you guys can see what I'm typing? Where do I subscribe?

Name: Anonymous 2010-05-16 16:10

i'm liking how you helped derail your own thread.

Name: Anonymous 2010-05-16 16:28

>>19
1. Open irssi.
2. /connect -ssl irc.nuu.cc 9999
3. /msg MrVacBob japanese bird cooking spaghetti

Name: Alex 2010-05-16 16:30

Well, it's become apparent that no one is interested in giving me a serious answer, so fuck it. It's not like I'm asking for "help on my tank homework" or "please write code for me". I'm just asking about what would be the best method to implement an idea, but instead I get told to read a textbook on fucking Lisp and trolled.

Name: Alex 2010-05-16 16:33

>>21

He just told me that cocksucking is a good occupation. Should I believe him?

Name: Anonymous 2010-05-16 16:36

>>22
but instead I get told to read a textbook on fucking Lisp and trolled.
This is what happens when you don't take the time to look around and acclimatise yourself before posting.

Name: Anonymous 2010-05-16 16:39

>>23
Vaccum Bulb-san has been known to dole out sage advice when he feels like it. I think you should explore the options he presents you with to the fullest extent of your abilities.

Name: sage 2010-05-16 16:40

GO FUCK A FUCKFUCK FUCK FUCK

Name: Anonymous 2010-05-16 16:41

Acclimatize myself to what, the tardation? Nah.

Name: Anonymous 2010-05-16 16:42

>>25
Awright. Any volunteers?

Name: Anonymous 2010-05-16 16:43

ACCLIMATIZE YOURSELF TO MY ANUS

Name: rms 2010-05-16 16:46

>>28
let's get started, cockboy. i'll melt in your mouth and not in your hand.

Name: Anonymous 2010-05-16 16:47

>>27
Then I'm afraid you may want to avoid the internet. It's kinda full of shit.

Name: Anonymous 2010-05-16 16:50

>>30
I take your throbbing member in my soft hands. They massage gently, rubbing up and down. You grasp my hair and moan.

>>29
You bend over. I tickle the hairs surrounding your brown eye, then rip them out. You wince and ask wtf is going on. I shove my cock down your ass. You shut up, and push back.

Name: Anonymous 2010-05-16 17:07

>>32
Alex-sama, MacVob has just told a japanese bird to cease cooking spaghetti so that it may relay to me that he believes it would be in your best interests to read SICP.

Name: Anonymous 2010-05-16 17:16

I didn't think there would be any computer coding,
/prog/ - Programming, Vol. 1273987146, Ch. 5

Name: Anonymous 2010-05-16 17:23

The thing you have to keep in mind is that /prog/ is an intermediate programming community. Your pre-beginner questions are off-topic and obnoxious.

Name: Anonymous 2010-05-16 17:46

>>35
Nonsense. Everyone knows that /prog/ is an expert programming community.

Name: Alex 2010-05-16 17:54

>>35
The thing you have to keep in mind is that /prog/ is /prog/. There is no "intermediate" subcategory.

My question is relevant and aimed at people who have a passing knowledge of many languages.

Name: Anonymous 2010-05-16 17:55

>>35,36
Really? I thought this was a gentleman's club.

Name: Anonymous 2010-05-16 17:57

>>37
Your question only seems slightly programming related. It's more of a question on software choice, which is something you could ask /g/ instead. If I was in your situation, I'd just try various open source solutions and settle on one. I never really had problems with mediawiki myself, but it lacks many features unless you decide to use plugins.

Name: Alex 2010-05-16 18:10

>>39
Thanks for ignoring my snarkiness, didn't realize you were serious.

I think I'm going to use TikiWiki because it supports dynamic variables.

"The dynamic variable feature allows you to add some content once, assigning it to a variable, and then you can use it dynamically throughout all your tiki site by calling the variable name surrounded by percentage characters (%)"

Props to the first couple of responses - didn't realize there were options other than MediaWiki... which upon reflection was a retarded assumption.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List