ENIGMA Forums

General fluff => Announcements => Topic started by: MahFreenAmeh on May 17, 2010, 03:18:59 PM

Title: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on May 17, 2010, 03:18:59 PM
Greetings.

I've been working lately on implementing some changes to the forum.

As of now, I have patched Josh's BBCode parser into the forum. It was a little bit of work, but it was pretty simple. The most time was honestly spent just looking for the right area.
In any case, for now, to see any forum page with Josh's BBCode parser applied to it, append &bbparser=josh to the end of the URL, and it will apply his parser to it.

I'll be seeing what I can do to make more compliance with regular BBCode standards on it, and, as well, will accept any recommendations for what to add to the forum in my free time.

Also:

Update: Modified the Development\Progress page to pull results from mysql database;

I went ahead and pushed all of the functions into a MySQL Database.

After pushing them over (through extensive parsing of the list of functions), I rewrote the progress page as well to pull its results from the table I pushed into the MySQL Database, instead of from an RSS feed of the forum posts, as it previously was (based on a quick analysis of the source). From there, I also made sure that nothing was hardcoded in, and put in a AJAX method for grabbing the functions, so as to keep the total size of the page down in order to make it load faster.

More updates on the way when I get the chance to make more.

If you have any ideas, let me know.

Regards,

MFA

Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on May 17, 2010, 03:34:48 PM
I was thinking that to reduce sever load it'd be a good idea to keep a generated copy of the page which could be refreshed by forum admins if the database is updated from an outside source.

Anyway, trouble is that BBParser I wrote is old and doesn't use SMF's style; it uses its own unique tag system. Nice thing is that it highlights code and has an inline code tag. If only the two could just be merged...
Title: Re: Updates, Updates, Updates on the way.
Post by: luiscubal on May 17, 2010, 04:04:44 PM
What are the main new features in Josh's BBCode?
Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on May 17, 2010, 04:07:53 PM
Code: (C++) [Select]
#include <iostream>
using namespace std;
int main() {
  string a = "hello, world";
  cout << a << endl;
  fflush(stdout); //oh snap, I didn't include this :3
  return 0;
}

Also, I added a tag for (int i = 0; i < 10; i++) inline code.

There's also a spoiler tag, a whisper tag which is probably not properly integrated as I did not inform Gary it exists... some other tags. I really just want the first two I showed, though.
Title: Re: Updates, Updates, Updates on the way.
Post by: luiscubal on May 17, 2010, 04:34:50 PM
ooh. neat.
Although the color contrast is not ideal(light blue in light gray background is not the best combination).
Title: Re: Updates, Updates, Updates on the way.
Post by: Rusky on May 17, 2010, 04:57:38 PM
<< endl flushes cout already.
Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on May 17, 2010, 05:49:49 PM
I needed to think of a function, and that was the first that came to mind. :P
Title: Re: Updates, Updates, Updates on the way.
Post by: RetroX on May 17, 2010, 07:30:03 PM
Or just append ;bbparser=josh and use the semicolon rather than the amperstand.
Title: Re: Updates, Updates, Updates on the way.
Post by: notachair on May 18, 2010, 02:56:47 AM
If the custom BBcode engine took a lot of hacking, can I ask that if you have the time to convert your modifications into an SMF package you do so, so that whenever I upgrade the forum, things don't go awry.

Just be careful with the <search postition="x"> things because the insert position may confuse you.

And definitely do not bugtest SMF packages on a live server in case you plan on doing that, things can go very, very wrong
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on May 18, 2010, 09:19:29 AM
If the custom BBcode engine took a lot of hacking, can I ask that if you have the time to convert your modifications into an SMF package you do so, so that whenever I upgrade the forum, things don't go awry.

Just be careful with the <search postition="x"> things because the insert position may confuse you.

And definitely do not bugtest SMF packages on a live server in case you plan on doing that, things can go very, very wrong

perhaps you aren't aware of my working methodology. If I actually hack it apart and get it working, then I'll package it. Nonetheless, whatever works.
A large amount of your code would probably be confusing to most people.
It took me about 10 minutes to completely rewrite a parser, and just a few more minutes to push it to a database.
weeeeeee
Title: Re: Updates, Updates, Updates on the way.
Post by: polygone on May 18, 2010, 10:11:33 AM
The development function progress is brokeded:
http://enigma-dev.org/progress.htm

The categories are not corresponding to correct ones and none are highlighted.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on May 18, 2010, 11:05:51 AM
The development function progress is brokeded:
http://enigma-dev.org/progress.htm

The categories are not corresponding to correct ones and none are highlighted.

when i worked through it it looks like i made a mistake, let me fix that.
basically the original functionality was to completely enumerate through all of the mysql rows to determine the index of the subcat.
i changed it to be more distinct and now i have to fix a quick mistake
Title: Re: Updates, Updates, Updates on the way.
Post by: polygone on May 18, 2010, 11:30:41 AM
That's better it's fixed. The DLL category is not showing anything in it though, but I cannot remember if it actually had anything in it previously..
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on May 18, 2010, 11:39:06 AM
That's betterer it's fixeded. The DLL category is not showing anything in it though, but I cannot remember if it actually had anything in it previously..

fixed the issue, looked like it was iterating through them wrong. resolved issue by creating a table to associate id's to subcats
everything should be in order now
also, from what i can see, they do appear to be highlighted. any screenshots to show your experience would be much appreciated.
Title: Re: Updates, Updates, Updates on the way.
Post by: polygone on May 18, 2010, 11:53:13 AM
They're highlighted now, they weren't before.
Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on May 18, 2010, 01:16:51 PM
I suppose this means it would be wise for me to update that list at some point. Have you added a mechanism to do such?
*scrambles to gather functions that have been coded but not included with ENIGMA*
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on May 18, 2010, 01:34:02 PM
I suppose this means it would be wise for me to update that list at some point. Have you added a mechanism to do such?
*scrambles to gather functions that have been coded but not included with ENIGMA*

Haven't yet added a mechanism, I'll put it in in a little while.
Hallelujah.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 07, 2010, 11:04:24 PM
Code: (GML) [Select]
hi
Title: Re: Updates, Updates, Updates on the way.
Post by: retep998 on June 08, 2010, 12:42:01 AM
Code: (GML) [Select]
hi
Code: (GML) [Select]
bi
Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on June 08, 2010, 09:19:23 AM
Code: (C) [Select]
#pragma syntax_highlighting
#include <stdio.h> // puts
//dongs
int main(int,char**) {
  return puts("Hello, world!"), 0;
}

Code: (C) [Select]
#include <stdio.h> // puts
//dongs
int main(int,char**) {
  return puts("Hello, world!"), 0;
}

Code: (C) [Select]
#pragma arse // arse
#include <stdio.h> // puts
//dongs
int main(int,char**) {
  return puts("Hello, world!"), 0;
}

Code: (C) [Select]
#include <conio.h> // no reason at all
#include <stdio.h> // puts
//dongs
int main(int,char**) {
  return puts("Hello, world!"), 0;
}
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 08, 2010, 10:29:28 AM
Code: (GML) [Select]
hi
Code: (GML) [Select]
bi
hibi is japanese for "every day".
Code: ( (Unknown Language)) [Select]
日々
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 09, 2010, 05:07:44 PM
new functionality, folks.
in the progress page, feel free to just mouse over the function names.
If you mouse over them, it will provide a description (if one has been submitted), else, if you are logged in, a prompt to add a description.
Go ahead, go nuts. Just remember. You're being tracked.
BIG BROTHER CAN SEE YOU
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 09, 2010, 11:08:51 PM
even more added.
http://enigma-dev.org/export
http://enigma-dev.org/export/func_name
http://enigma-dev.org/export/func_name/field
http://enigma-dev.org/export/xml
http://enigma-dev.org/export/xml/func_name
http://enigma-dev.org/export/xml/func_name/field

not very handy unless you need a way to access the function data. i guess if you want to have an external documentation set up?
Title: Re: Updates, Updates, Updates on the way.
Post by: IsmAvatar on June 10, 2010, 11:19:05 AM
erororor: Unknown column 'field' in 'field list'

Also, lrn2xml
Quote
<params>\n\t\t\tn,x\n\t\t</params>
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 13, 2010, 09:00:29 PM
erororor: Unknown column 'field' in 'field list'

Also, lrn2xml
Quote
<params>\n\t\t\tn,x\n\t\t</params>
what the hell. it was working for me the other day.
nonetheless, whitespace was merely put in for people who might want to view it.
i will now go remove that,
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 13, 2010, 09:04:34 PM
perhaps now it will be more to your liking.
Title: Re: Updates, Updates, Updates on the way.
Post by: IsmAvatar on June 14, 2010, 09:51:32 AM
1) erororor still not fixed.
2) I wasn't actually pointing out the whitespace. I didn't mind it so much - in fact I prefer the following:
Code: (XML) [Select]
<object>
  <tag>value</tag>
</object>
where actual values do not have whitespace, but embedded tags have indentation to show which tag they are a member of, and to better emphasize the hierarchy.

I was actually criticizing "x,n"
Code: (XML) [Select]
<params>
 <param>x</param>
 <param>y</param>
</params>

Personally I've started using a modified version of the text one. I drop the "Done" and "All Done" lines, because I can assume that every 3 lines marks a new function and that EOF is EOF.

Also, while you're supporting machine-and-human-friendly formats, might I suggest YAML?

Code: (YAML) [Select]
---
function
:
 id
: 1
 func
: random
 params
: [x]
 mode
: 2
 subcat
: REAL-VALUED FUNCTIONS
 cat
: Computing things
 desc
:
function
:
 id
: 2
 func
: random_set_seed
 params
: [seed]
 mode
: 2
 subcat
: REAL-VALUED FUNCTIONS
 cat
: Computing things
 desc
:
#...
function
:
 id
: 5
 func
: choose
 params
: [val1,val2,val3,...]
 mode
: 1
 subcat
: REAL-VALUED FUNCTIONS
 cat
: Computing things
 desc
: >
 Returns one of the arguments choosen randomly.
  The function can have up to 16 arguments.

...

The "..." at the end indicates end of document. The ">" near the end indicates that its value is contained on the following indented lines, and newlines will be replaced with spaces. To not truncate newlines, use "|" instead of ">".
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 14, 2010, 03:16:28 PM
I'll consider adding in YAML support too. Can't be that hard, it's pretty simple to grok. heh. As per the params, I was just feeding it straight out, I can fix that though. Just have to update the DTD

Edit:
XML appears to be fixed. erororor thing was just a placeholder, but i fixed it as well.
Going to add in YAML support as well, why not.

Second Edit:

Fixed XML fully, as far as I can tell.
Added in YAML support.

http://enigma-dev.org/export/yaml
http://enigma-dev.org/export/yaml/func_name
http://enigma-dev.org/export/yaml/func_name/field

also created aliases for exports:

http://enigma-dev.org/export.txt
http://enigma-dev.org/export:func_name.txt
http://enigma-dev.org/export:func_name.field.txt
http://enigma-dev.org/export.xml
http://enigma-dev.org/export:func_name.xml
http://enigma-dev.org/export:func_name.field.xml
http://enigma-dev.org/export.yaml
http://enigma-dev.org/export:func_name.yaml
http://enigma-dev.org/export:func_name.field.yaml

hurray.
Title: Re: Updates, Updates, Updates on the way.
Post by: IsmAvatar on June 14, 2010, 07:30:46 PM
Yaml forbids tabs. Use space instead.

Quote
# Why does YAML forbid tabs?

Tabs have been outlawed since they are treated differently by different editors and tools. And since indentation is so critical to proper interpretation of YAML, this issue is just too tricky to even attempt. Indeed Guido van Rossum of Python has acknowledged that allowing TABs in Python source is a headache for many people and that were he to design Python again, he would forbid them.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 14, 2010, 09:02:48 PM
Yaml forbids tabs. Use space instead.

Quote
# Why does YAML forbid tabs?

Tabs have been outlawed since they are treated differently by different editors and tools. And since indentation is so critical to proper interpretation of YAML, this issue is just too tricky to even attempt. Indeed Guido van Rossum of Python has acknowledged that allowing TABs in Python source is a headache for many people and that were he to design Python again, he would forbid them.

no more tabs.
indentation based on three spaces.

anything else i can do for you today? heh.
i need something to do.
Title: Re: Updates, Updates, Updates on the way.
Post by: IsmAvatar on June 14, 2010, 09:44:53 PM
It parses.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 14, 2010, 11:10:47 PM
It parses.
.sesrap tI
!dooG

edit:

time to brainstorm more features.
my brain hurts
Title: Re: Updates, Updates, Updates on the way.
Post by: Josh @ Dreamland on June 15, 2010, 12:44:09 AM
Code: (C) [Select]
#include <stdio.h> //puts
int main(int,char**) {
  return puts("Hello, world!") , 0; /* this is just lazy */
} // tits

Code: (C) [Select]
#include <stdio.h>
#include <stdio.h>
#include <stdio.h>
#include <stdio.h>
#include <stdio.h>
#pragma arse
#include <stdio.h>
#include <stdio.h> //puts
int main(int,char**) {
  return puts("Hello, world!") , 0; /* this is just lazy */
} // tits

Code: (C++) [Select]
int a[b] please don't be bold [/b]; b = 'weee';
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 16, 2010, 11:32:44 AM
Code: (C) [Select]
#pragma arse
You got a LOL.
Code: (C++) [Select]
int a[b] please don't be bold [/b]; b = 'weee';
Though it seems we have other problems.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 16, 2010, 02:44:37 PM
Code: (C) [Select]
#pragma arse
You got a LOL.
Code: (C++) [Select]
int a[b] please don't be bold [/b]; b = 'weee';
Though it seems we have other problems.

wath
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 17, 2010, 03:17:24 PM
Those problems have been fixed now. The apostrophes were encoded in &#decimal; format, and didn't parse in the <pre> tag.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 19, 2010, 03:11:54 PM
Those problems have been fixed now. The apostrophes were encoded in &#decimal; format, and didn't parse in the <pre> tag.
yeah i know i was just giving you a hard time
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 19, 2010, 05:22:36 PM
Those problems have been fixed now. The apostrophes were encoded in &#decimal; format, and didn't parse in the <pre> tag.
yeah i know i was just giving you a hard time
kkk

(OK -> K -> k -> kk -> kkk)
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 22, 2010, 08:42:41 PM
something about tacos.
that should be what is next.
something about tacos.
Title: Re: Updates, Updates, Updates on the way.
Post by: retep998 on June 25, 2010, 02:20:36 PM
http://kazantip-today.narod.ru/8up/8bp065-07-anamanaguchi-power_supply.mp3
That should be next
link fails
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 26, 2010, 07:18:41 AM
It didn't 2 days ago.
*removes*
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 27, 2010, 04:16:38 PM
(http://sirmxe.netlsd.com/hash/%65%61%74%20%6d%79%20%73%68%6f%72%74%73%2e.gif)
Title: Re: Updates, Updates, Updates on the way.
Post by: score_under on June 28, 2010, 03:49:58 PM
(http://sirmxe.netlsd.com/hash/%65%61%74%20%6d%79%20%73%68%6f%72%74%73%2e.gif)
Whatever that is, it doesn't load.
Also newfriends can't blankpost.
Title: Re: Updates, Updates, Updates on the way.
Post by: MahFreenAmeh on June 29, 2010, 04:25:56 PM
(http://sirmxe.netlsd.com/hash/%65%61%74%20%6d%79%20%73%68%6f%72%74%73%2e.gif)
Whatever that is, it doesn't load.
Also newfriends can't blankpost.

loads for me.
Title: Re: Updates, Updates, Updates on the way.
Post by: retep998 on June 30, 2010, 12:21:58 AM
(http://sirmxe.netlsd.com/hash/%65%61%74%20%6d%79%20%73%68%6f%72%74%73%2e.gif)
Whatever that is, it doesn't load.
Also newfriends can't blankpost.

loads for me.
(http://www.valvigirl.net/images/ditto.gif)
Title: Re: Updates, Updates, Updates on the way.
Post by: Game_boy on June 30, 2010, 08:11:12 AM
Doesn't load for me.

Title: Re: Updates, Updates, Updates on the way.
Post by: IsmAvatar on August 30, 2010, 12:36:09 PM
MahFreenAmeh, or to whom it may concern,
Any chance we can get an alphabetized version of the list?