ENIGMA Forums
General fluff => Announcements => Topic started 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
-
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...
-
What are the main new features in Josh's BBCode?
-
#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 [snip=cpp]for (int i = 0; i < 10; i++)[/snip] 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.
-
ooh. neat.
Although the color contrast is not ideal(light blue in light gray background is not the best combination).
-
[snip=cpp]<< endl[/snip] flushes cout already.
-
I needed to think of a function, and that was the first that came to mind. :P
-
Or just append ;bbparser=josh and use the semicolon rather than the amperstand.
-
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
-
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
-
The development function progress is brokeded:
http://enigma-dev.org/progress.htm
The categories are not corresponding to correct ones and none are highlighted.
-
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
-
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..
-
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.
-
They're highlighted now, they weren't before.
-
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*
-
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.
-
hi
-
hi
bi
-
#pragma syntax_highlighting
#include <stdio.h> // puts
//dongs
int main(int,char**) {
return puts("Hello, world!"), 0;
}
#include <stdio.h> // puts
//dongs
int main(int,char**) {
return puts("Hello, world!"), 0;
}
#pragma arse // arse
#include <stdio.h> // puts
//dongs
int main(int,char**) {
return puts("Hello, world!"), 0;
}
#include <conio.h> // no reason at all
#include <stdio.h> // puts
//dongs
int main(int,char**) {
return puts("Hello, world!"), 0;
}
-
hi
bi
hibi is japanese for "every day".
日々
-
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
-
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?
-
erororor: Unknown column 'field' in 'field list'
Also, lrn2xml
<params>\n\t\t\tn,x\n\t\t</params>
-
erororor: Unknown column 'field' in 'field list'
Also, lrn2xml
<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,
-
perhaps now it will be more to your liking.
-
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:
<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"
<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?
---
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 ">".
-
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.
-
Yaml forbids tabs. Use space instead.
# 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.
-
Yaml forbids tabs. Use space instead.
# 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.
-
It parses.
-
It parses.
.sesrap tI
!dooG
edit:
time to brainstorm more features.
my brain hurts
-
#include <stdio.h> //puts
int main(int,char**) {
return puts("Hello, world!") , 0; /* this is just lazy */
} // tits
#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
int a[b] please don't be bold [/b]; b = 'weee';
-
#pragma arse
You got a LOL.
int a[b] please don't be bold [/b]; b = 'weee';
Though it seems we have other problems.
-
#pragma arse
You got a LOL.
int a[b] please don't be bold [/b]; b = 'weee';
Though it seems we have other problems.
wath
-
Those problems have been fixed now. The apostrophes were encoded in &#decimal; format, and didn't parse in the <pre> tag.
-
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
-
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)
-
something about tacos.
that should be what is next.
something about tacos.
-
http://kazantip-today.narod.ru/8up/8bp065-07-anamanaguchi-power_supply.mp3
That should be next
link fails
-
It didn't 2 days ago.
*removes*
-
(http://sirmxe.netlsd.com/hash/%65%61%74%20%6d%79%20%73%68%6f%72%74%73%2e.gif)
-
(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.
-
(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://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)
-
Doesn't load for me.
-
MahFreenAmeh, or to whom it may concern,
Any chance we can get an alphabetized version of the list?