Home | Reviews | GUIpedia | Forum | Fun500
pharoah | Text2QML ConverterI wrote a quick PHP script to convert text files to QML. It doesn't make links or anything(obviously), but it will turn plain text into a QML page with the proper line breaks to make things a bit easier.
http://pharoah.xetaspace.net/txt2qml.php
EDIT:
Looks like my Xetaspace site decided to go down just now. Sorry about that, should be back soon. Here's the code anyway:
EDIT2:
Apparently if you post PHP in code tags here it gets deleted by the forum, so here's a temp link in case anyone cares:
http://cl1p.net/txt2qml | 2009-04-03 | 10:30 PM |
Brandon | Re:Text2QML Converter404 | 2009-04-03 | 10:32 PM |
pharoah | Re:Text2QML ConverterYeah, something just happened to XS. Anyway there's a code link in the edit. | 2009-04-03 | 10:35 PM |
ksr | Re:Text2QML ConverterIf a line is 80 characters long, the following | is not necessary, isn't that right? | 2009-04-04 | 8:41 AM |
pharoah | Re:Text2QML ConverterI guess it would depend on what you want it to do, but in general yes, because the carriage is already on the next line. What the converter does is simply to replace all the "n"s with "n".'|'."n".'$' | 2009-04-04 | 9:23 AM |
Todd | Re:Text2QML ConverterXS should be up and should stay up. I installed monit to keep track of any daemons and services that die or get SIGTERMed and restarts them immediately within a minute or two. | 2009-04-04 | 9:39 AM |
pharoah | Re:Text2QML ConverterIt seems to be down right now. I get "The connection to the server was reset while the page was loading."
Was working about 5 minutes ago.
Edit:
Never mind :). | 2009-04-04 | 9:47 AM |
Todd | Re:Text2QML ConverterAs soon as you mentioned that, I decided to do a server reboot. It's fully rebooted and should now be working. I have to investigate it further since Apache throws errors like crazy. | 2009-04-04 | 9:49 AM |
Brandon | Re:Text2QML ConverterPharoah, don't forget that hosting space I gave you on this server, it tends to be more reliable. | 2009-04-04 | 10:04 AM |
Todd | Re:Text2QML Converter:P It tends to be more hackable too. ;) | 2009-04-04 | 11:28 AM |
Brandon | Re:Text2QML ConverterHackers thoughts:
Brandoncornell.com with lots of hits or Xetaspace with none? which to attack? | 2009-04-04 | 12:04 PM |
Todd | Re:Text2QML ConverterBoth.
Hackers attack sites that are usually visited quite often. They can also attack sites without hits but that's less challenging. | 2009-04-04 | 12:14 PM |
Other
2021 Brandon Cornell