NATION

PASSWORD

Jolt Archive

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Maltropia
Negotiator
 
Posts: 6985
Founded: Dec 19, 2009
Left-wing Utopia

Postby Maltropia » Mon Dec 23, 2013 5:56 pm

I know a lot of people who're going to love this. :p
Ɛ> Maltropia + Tiami 4ever <3
[17:46] <bc> MY ENTHUSIASM EFFECTS MY SPELLING || [19:25] <minn> srsly is maltropia the only one with a brain here :|
Call me Mal(t). Reduce risk of carpal tunnel syndrome!
GE&T:Maritime Imperial Shipwrights | T-O Cartographic
II:Amistad, EATC signatory | PRV founder | CFDS, FIR, ECU member
F&NI:IIwiki | Factbook | Embassy program
WA:Represented by Ambassador Seán Lemass

I used to be a Roleplay Mentor and still love to help people. Find me on Discord and I'll help if I can.

User avatar
Reploid Productions
Forum Admin
 
Posts: 29804
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Mon Dec 23, 2013 6:27 pm

A Christmas miracle? I thought the stuff Jolt gave [violet] and Max was basically unusable entirely!
Forum mod since May 8, 2003 -- Game mod since May 19, 2003 -- Nation turned 20 on March 23, 2023!
Sunset's DoGA FAQ - For those using DoGA to make their NS military and such.
One Stop Rules Shop -- Reppy's Sig Workshop -- Getting Help Page
[violet] wrote:Maybe we could power our new search engine from the sexual tension between you two.
Char Aznable/Giant Meteor 2024! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Mon Dec 23, 2013 6:34 pm

Reploid Productions wrote:A Christmas miracle? I thought the stuff Jolt gave [violet] and Max was basically unusable entirely!

There was a bit of a tussle over it; initially they refused to release it. But we had a signed agreement saying that was our data, and kept pestering, and in the dying days they sent us a 6GB dump. I've always wanted to put up a read-only archive somewhere but never managed to do it.

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Mon Dec 23, 2013 6:43 pm

OK, I now have a MySQL dump (1MB compressed) that contains the full table structure and up to 200 records from each table. I've sanitized email addresses and limited or removed data where it seems to be private, e.g. PMs.

Please email me at admin@nationstates.net if you would like a copy of this sample.

User avatar
Vakolic
Negotiator
 
Posts: 5512
Founded: Aug 08, 2009
Ex-Nation

Postby Vakolic » Mon Dec 23, 2013 6:49 pm

[violet] wrote:OK, I now have a MySQL dump (1MB compressed) that contains the full table structure and up to 200 records from each table. I've sanitized email addresses and limited or removed data where it seems to be private, e.g. PMs.

Please email me at admin@nationstates.net if you would like a copy of this sample.

done
It is now law, by the grace of the supreme magesterium of 'everyone is doing it' to include a list of your political likes and dislikes in your signature.

Likes: Ukip, Libertarianism, free-market capitalism, equality, euroscepticism, absolute transparency, absolute free speech, non-interventionism, lgbt rights, disability rights, youth rights.
Neutral: fascism, restrained capitalism, China, North and South Korea, UN, Russia, british liberalism
Dislikes: Communism, interventionism, socialism, affermative action, the labour party, apathy, abortion, environmentalism, unrestrained immigration, hate crime.

User avatar
Shadow Afforess
Ambassador
 
Posts: 1270
Founded: Nov 06, 2013
Ex-Nation

Postby Shadow Afforess » Tue Dec 24, 2013 11:30 pm

[violet] wrote:OK, I now have a MySQL dump (1MB compressed) that contains the full table structure and up to 200 records from each table. I've sanitized email addresses and limited or removed data where it seems to be private, e.g. PMs.

Please email me at admin@nationstates.net if you would like a copy of this sample.


Progress So Far:

https://dl.dropboxusercontent.com/u/498 ... rchive.png

https://dl.dropboxusercontent.com/u/498 ... 0forum.png

The index page, and each of the forum thread list pages each generate right now. I need to break the thread list into pages...and also generate the individual thread contents.

The program is a command line tool that connects to a mysql database and generates static html files from the database (following the schema violet shared). It uses bootstrap 3 as the base of the look & feel, and the templates for each type of page can be customized. I'll release it to github shortly.

Edit:

Github repository: https://github.com/Afforess/jolt-archiver
Last edited by Shadow Afforess on Wed Dec 25, 2013 12:21 am, edited 2 times in total.
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.

User avatar
Lamoni
Game Moderator
 
Posts: 9036
Founded: Antiquity
Inoffensive Centrist Democracy

Postby Lamoni » Thu Dec 26, 2013 4:46 pm

I would love being able to look over, and c/p my old Jolt stuff.
National Anthem
Resides in Greater Dienstad. (Former) Mayor of Equilism.
I'm a Senior N&I RP Mentor. Questions? TG me!
Licana on the M-21A2 MBT: "Well, it is one of the most badass tanks on NS."


Vortiaganica: Lamoni I understand fully, of course. The two (Lamoni & Lyras) are more inseparable than the Clinton family and politics.


Triplebaconation: Lamoni commands a quiet respect that carries its own authority. He is the Mandela of NS.

Part of the Meow family in Gameplay, and a GORRAM GAME MOD! My TGs are NOT for Mod Stuff.

User avatar
Shadow Afforess
Ambassador
 
Posts: 1270
Founded: Nov 06, 2013
Ex-Nation

Postby Shadow Afforess » Mon Dec 30, 2013 4:56 am

Alright, after some work, I have a basic static html generator for the jolt forums. It's not fancy, but it creates and index of the forums, the threads in each forum, and the contents of each thread... replicating a basic forum layout. It does not allow any searching or ability to view poster/user information. I might add that later, assuming [violet] approves of the work so far.

It's a java command line tool (so you need at least the JRE installed). You can compile it from the source (using Java & Maven) if you want to verify that it has no nasty surprises, or can use a precompiled jar provided by me.

It requires 5 command line arguments - the hostname of the database, port, database schema name, database user, and database password. Also there is a sixth optional flag, -verbose if you want it to print out text as it generates the site. It will take several minutes to generate.

Example command line usage:
Code: Select all
java -jar joltarchiver-1.0.0-SNAPSHOT.jar localhost 3306 jolt afforess mypassword


It will create a folder named "templates" in the same directory as the jar. It generates the bootstrap 3 files and forum layout. It also includes the css and 3 template files (extension ends with .template) which the homepage, forum page, and thread views are produced from. You can edit these 3 files and re-run the program to modify the look and feel of the static html produced, beyond simple css edits. Grid.css contains any modifications made to the base bootstrap 3 css. It also uses 1 jquery plugin, to produce the pagination. Everything is self-contained, no resources are fetched from the web, so you can safely host and drop the files onto a simple webhost and serve the static files from there.

I'm sure there are bugs & bbcode parsing bugs I couldn't spot with the small 1mb sample you gave me. Let me know how it goes and I will address issues as they come up! :)
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Mon Dec 30, 2013 10:07 pm

Shadow Afforess wrote:Alright, after some work, I have a basic static html generator for the jolt forums. It's not fancy, but it creates and index of the forums, the threads in each forum, and the contents of each thread... replicating a basic forum layout.

Looks very nice! However I can't find the "contents of each thread" part... each thread page seems to be empty except for the thread title. So I can see the same output from your screenshots earlier, but no posts.

User avatar
Shadow Afforess
Ambassador
 
Posts: 1270
Founded: Nov 06, 2013
Ex-Nation

Postby Shadow Afforess » Mon Dec 30, 2013 10:11 pm

[violet] wrote:
Shadow Afforess wrote:Alright, after some work, I have a basic static html generator for the jolt forums. It's not fancy, but it creates and index of the forums, the threads in each forum, and the contents of each thread... replicating a basic forum layout.

Looks very nice! However I can't find the "contents of each thread" part... each thread page seems to be empty except for the thread title. So I can see the same output from your screenshots earlier, but no posts.


Hm.. If you are using it on the tiny sample you gave me, most of the threads listed have no posts (at least, not in the sample) and most of the posts don't line up with any of the threads included in the threads table. There were 3 threads that had 1 post though, which showed it did work. "rape-isn't-about-sex-or-is-it" amusingly is the longest thread that does have content.

Are you running it on the sample or the entire database? If it's the entire database, then clearly there is a problem. If it's the sample, then it's working fine.
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Mon Dec 30, 2013 10:20 pm

Ah, right, right. Just running the sample at the moment.

User avatar
Hyperion
Minister
 
Posts: 2314
Founded: Mar 28, 2013
Ex-Nation

Postby Hyperion » Mon Dec 30, 2013 10:31 pm

Amazing tech stuff. I'd love to see the work of my ancestors.
Exchange Rate: Hypernote
2.55 H$= 1 N$ = 2 USD
Unemployment: 9%
GPD/Capita: H$ 8,930
Debt: H$ -416,215,102
Details:
http://www.nstracker.net/hyperion&page=economics
Total: 2,080,205
Land: 1,337,700
Navy: 205,800
Airforce: 514,500
Budget: 20%
Details:http://www.nstracker.net/hyperion&page=military
Tax: 29%
Population: 1.029 Billion
Animal: Colossal Squid
Industry: Pizza Delivery
Currency: Hyper-Note
Leader: J Humble
http://www.nstracker.net/hyperion
Administration: 2%
Welfare: 12%
Education: 22%
Defence: 20%
Public Transport: 9%
Environment: 22%
Not listed? We don't fund it.
Help get my new Issue "One Nation under Who?" ready for a send off!

NSG's Atheist Man Child
Married to Sanguinea

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Thu Jan 02, 2014 4:59 pm

Thanks to Afforess's converter, I've got a sample up!

NationStates Forum Archive

For now, it's just the Technical and NationStates forums. The converter takes a long time to run, so this is a useful opportunity to spot parsing errors and provide feedback!

User avatar
Northrop-Grumman
Ambassador
 
Posts: 1696
Founded: Dec 28, 2003
Benevolent Dictatorship

Postby Northrop-Grumman » Thu Jan 02, 2014 5:36 pm

[violet] wrote:Thanks to Afforess's converter, I've got a sample up!

NationStates Forum Archive

For now, it's just the Technical and NationStates forums. The converter takes a long time to run, so this is a useful opportunity to spot parsing errors and provide feedback!
Whoa, nostalgia rush! There goes my evening!

(It looks awesome!)

User avatar
The Orson Empire
Post Czar
 
Posts: 31412
Founded: Mar 20, 2012
Left-wing Utopia

Postby The Orson Empire » Thu Jan 02, 2014 5:40 pm

[violet] wrote:Thanks to Afforess's converter, I've got a sample up!

NationStates Forum Archive

For now, it's just the Technical and NationStates forums. The converter takes a long time to run, so this is a useful opportunity to spot parsing errors and provide feedback!

So...that's what Nationstates looked like back on the Jolt forums.

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Thu Jan 02, 2014 5:43 pm

The Orson Empire wrote:So...that's what Nationstates looked like back on the Jolt forums.

No, it looked like this. Or actually it looked different depending on which version it was. The archive linked above has the content but not the same look.

Edit: This is the oldest version I can find.
Last edited by [violet] on Thu Jan 02, 2014 5:46 pm, edited 1 time in total.

User avatar
Zwangzug
Issues Editor
 
Posts: 5142
Founded: Oct 19, 2006
Left-wing Utopia

Postby Zwangzug » Thu Jan 02, 2014 5:44 pm

[violet] and Afforess are made of awesome, win, etc. I am in awe.

On a slightly nitpicky note, trawling back through the NationStates threads (around page 129), the dawn of history appears to be Sat, 26 Aug 2006 07:45 PM ? I'm not sure how they're sorted beyond that, I'm seeing rather few sports threads so I suspect they may be out of order before this.

Edit: time resumes on page 148.
Last edited by Zwangzug on Thu Jan 02, 2014 5:45 pm, edited 1 time in total.
Factbook
IRC humor, (self-referential)
My issues
...using the lens of athletics to illustrate national culture, provide humor, interweave international affairs, and even incorporate mathematical theory...
WARNING: by construing meaning from this sequence of symbols, you have given implicit consent to the theory that words have noncircular semantic value and can be used to encode information about an external universe. Proceed with caution.

User avatar
The Orson Empire
Post Czar
 
Posts: 31412
Founded: Mar 20, 2012
Left-wing Utopia

Postby The Orson Empire » Thu Jan 02, 2014 5:47 pm

[violet] wrote:
The Orson Empire wrote:So...that's what Nationstates looked like back on the Jolt forums.

No, it looked like this. Or actually it looked different depending on which version it was. The archive linked above has the content but not the same look.

Edit: This is the oldest version I can find.

I see.

It has a much more...rugged look then today's forums.

User avatar
Emporer Pudu
Ambassador
 
Posts: 1090
Founded: Sep 22, 2004
Iron Fist Consumerists

Postby Emporer Pudu » Thu Jan 02, 2014 5:48 pm

I can't wait to see more of this.

User avatar
Astrolinium
Post Czar
 
Posts: 36603
Founded: Mar 05, 2011
Ex-Nation

Postby Astrolinium » Thu Jan 02, 2014 5:53 pm

Is there any chance that perhaps a search feature might be added in the future?
The Sublime Island Kingdom of Astrolinium
Ilia Franchisco Attore, King Attorio Maldive III
North Carolina | NSIndex Page | Embassies
Pop: 3,082 | Tech: MT | DEFCON: 5-4-3-2-1
SEE YOU SPACE COWBOY...
About Me: Ravenclaw, Gay, Cis Male, 5’4”.
"Don't you forget about me."

Ex-Delegate of Ankh Mauta | NSG Sodomy Club
Minor Acolyte of the Vast Jewlluminati Conspiracy™

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Thu Jan 02, 2014 6:00 pm

Astrolinium wrote:Is there any chance that perhaps a search feature might be added in the future?

Afforess says he may add one, but given a little time to index, Google will do a good job, too.

User avatar
Astrolinium
Post Czar
 
Posts: 36603
Founded: Mar 05, 2011
Ex-Nation

Postby Astrolinium » Thu Jan 02, 2014 6:01 pm

[violet] wrote:
Astrolinium wrote:Is there any chance that perhaps a search feature might be added in the future?

Afforess says he may add one, but given a little time to index, Google will do a good job, too.


Excellent.

2006 is a bit fuzzy, especially because I was 11 and really shouldn't even have been on the forums in the first place.
The Sublime Island Kingdom of Astrolinium
Ilia Franchisco Attore, King Attorio Maldive III
North Carolina | NSIndex Page | Embassies
Pop: 3,082 | Tech: MT | DEFCON: 5-4-3-2-1
SEE YOU SPACE COWBOY...
About Me: Ravenclaw, Gay, Cis Male, 5’4”.
"Don't you forget about me."

Ex-Delegate of Ankh Mauta | NSG Sodomy Club
Minor Acolyte of the Vast Jewlluminati Conspiracy™

User avatar
Herrebrugh
Post Marshal
 
Posts: 15203
Founded: Aug 24, 2007
Liberal Democratic Socialists

Postby Herrebrugh » Thu Jan 02, 2014 6:03 pm

I haven't encountered myself yet, I'm afraid :p

But it's good fun seeing people ask questions about the UN just before the first of April 2008 :p
Uyt naem Zijner Majeſteyt Jozef III, bij de gratie Godts, Koningh der Herrebrugheylanden, Prins van Rheda, Heer van Jozefslandt, enz. enz. enz.
Im Namen Seiner Majeſtät Joſeph III., von Gottes Gnaden König der Herrenbrückinſeln, Prinz von Rheda, Herr von Josephsland etc. etc. etc.


The Factbook of the Kingdom of the Herrebrugh Islands
Where the Website-Style Factbook Originated!

User avatar
[violet]
Site Admin
 
Posts: 16045
Founded: Antiquity

Postby [violet] » Thu Jan 02, 2014 6:04 pm

Zwangzug wrote:trawling back through the NationStates threads (around page 129), the dawn of history appears to be Sat, 26 Aug 2006 07:45 PM ? I'm not sure how they're sorted beyond that, I'm seeing rather few sports threads so I suspect they may be out of order before this.

Edit: time resumes on page 148.

Mmm, the frozen-in-time threads are all blank, too.

Edit: Looks like a problem with the database rather than the converter. They exist in the thread table (with that time) but there are no corresponding posts in the post table.

Edit 2: I think they may be the shadows of moved threads.

Edit 3: Yes, well, seems weird, but when a thread is moved, it looks like VBulletin creates a new row in table 'thread' with a new 'threadid' and the same 'title' but with a 'pollid' value of the old 'threadid'. But the converter can't just assume rows with 'pollid' are moved threads, because sometimes 'pollid' is used to store the ID of actual polls. Presumably there is some other flag I haven't noticed yet.
Last edited by [violet] on Thu Jan 02, 2014 6:21 pm, edited 3 times in total.

User avatar
United States of Natan
Negotiator
 
Posts: 5790
Founded: Jul 21, 2012
Ex-Nation

Postby United States of Natan » Thu Jan 02, 2014 6:05 pm

wow! this is incredible! thanks, afforess and violet, for allowing us to see past forum posts.
Then it's a lie. Everything Fox News says is a lie.
Even true things once said on Fox News become lies.
(Family Guy: Excellence in Broadcasting)

Come check out the Natan Region, a fun, democratic region|Biden/Harris 2020|
Liberal|Progressive|Hillary Supporter|Jew|Pro-Israel|Anti-Trump|Anti-Sanders|Anti-Bigotry

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads