473,802 Members | 2,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I've created a small online app to draw diagrams in ASCII...

Yes, I know, this is sort of commercial.. but how else to get people
to, what I think, is a handy online applicaton?

I created this app because I hate do document :) (Don't we all?)
Sometimes I wanted to make a small diagram to depict what a piece of
PHP-code does, a database relationship diagram, or, wel... But to do
that in ASCII is hard, and not very much fun to do! So, I created this
online app that allows you to draw simple diagrams in ASCII-chars
only, so that you can save them in your comments in code. (You can
also save them in Google Docs, or, well, where ever you want!).

I showed it to some friends of mine; they like it. I needed a way to
get it known to more people.. so, there we go:

http://www.asciidrawer.com

Thats it.... Please don't shout at me for posting it here, but let me
know if you like it?

greetings,
Paul

Jun 5 '07
12 2109
>
Can you tell me what happens? Do you get an JS-error?

Sure I can.

I see aa[x], and aa[fa] has no properties.
Ah! This only happens on the first column, i see... This should be
easy to fix...
Speaking of minifying, it strikes me really funny that your code is
exactly 500 lines. Well, assuming your beginning braces for functions
and conditionals start on the same line as them.
That's funny :-)
Anytime. I would like to offer a few more items for digestion though.

Why not use DOM methods to create and insert the elements you need
instead of relying on the non-standard innerHTML to create *EVERYTHING*?
I tried the first time. It does not perform in IE :-((( The
performance is very, very bad that way!
I'm creating a page online where I will explain the 3 different way's
I used to create the drawing area - so far, only this one performs...

But that is more something for the javascript-usenet group :-)
You realize that you exclude a *WIDE* range of browsers because of the
methods you employ?
Well... FF and IE seem to be doing well... that _is_ 99% of the
market....
Oh, and the only thing that I have *ever* seen work, is the new feature
you added to pinpoint where you click.
Try to just walk with the cursorkeys a bit, when having pressed the
drawingbuttong. That should leave you with a drawing - it does on
every browser I tried... including Opera, minus Konqueror..?
I think that's it for now...
Again: thanks!

Paul

Jun 7 '07 #11
pw******@gmail. com wrote:
Yes, I know, this is sort of commercial.. but how else to get people
to, what I think, is a handy online applicaton?

I created this app because I hate do document :) (Don't we all?)
Sometimes I wanted to make a small diagram to depict what a piece of
PHP-code does, a database relationship diagram, or, wel... But to do
that in ASCII is hard, and not very much fun to do! So, I created this
online app that allows you to draw simple diagrams in ASCII-chars
only, so that you can save them in your comments in code. (You can
also save them in Google Docs, or, well, where ever you want!).

I showed it to some friends of mine; they like it. I needed a way to
get it known to more people.. so, there we go:

http://www.asciidrawer.com

Thats it.... Please don't shout at me for posting it here, but let me
know if you like it?
Pretty cool. Works much better in FF 2.x than IE7. On IE7 on my system
it was a bit slow, and the help section was screwy.

I had fun playing around with it, be sure to let us know as the app
progresses.
Jun 7 '07 #12
pw******@gmail. com wrote:
>>Can you tell me what happens? Do you get an JS-error?
Sure I can.

I see aa[x], and aa[fa] has no properties.

Ah! This only happens on the first column, i see... This should be
easy to fix...
>Speaking of minifying, it strikes me really funny that your code is
exactly 500 lines. Well, assuming your beginning braces for functions
and conditionals start on the same line as them.

That's funny :-)
>Anytime. I would like to offer a few more items for digestion though.

Why not use DOM methods to create and insert the elements you need
instead of relying on the non-standard innerHTML to create *EVERYTHING*?

I tried the first time. It does not perform in IE :-((( The
performance is very, very bad that way!
I'm creating a page online where I will explain the 3 different way's
I used to create the drawing area - so far, only this one performs...

But that is more something for the javascript-usenet group :-)
Yep, and I'll be watching out for your post.

Believe me, if done correctly, DOM code can greatly increase the
efficiency of your code.

I was just benchmarking some code the other day and in a field of 20,000
elements, traversing the childNodes as opposed to seeking with
getElementById yielded that traversing the DOM was 26.25 times faster.

The same can be said about innerHTML as opposed to creating text nodes.
>You realize that you exclude a *WIDE* range of browsers because of the
methods you employ?

Well... FF and IE seem to be doing well... that _is_ 99% of the
market....
No it isn't. Sure it is high, but it is nowhere near 99% I am sure.
You forgot Mac users (Camino, Konqueror, iCab et cetera) and Opera users.

And for God's sakes man, give the users something to see when JavaScript
is disabled.
>Oh, and the only thing that I have *ever* seen work, is the new feature
you added to pinpoint where you click.

Try to just walk with the cursorkeys a bit, when having pressed the
drawingbuttong. That should leave you with a drawing - it does on
every browser I tried... including Opera, minus Konqueror..?
Aaah, there we go. Internet Explorer 6 has a go at it. Now I get
"console is undefined", *sometimes*. It is remarkably slow though.

Now, in Firefox 1.5.0.11 it runs smooth as silk. *EXCEPT*, clicking on
the copy/paste whatever stuff takes quite a few seconds to load.

This also happens in the loading of both Internet Explorer and Firefox,
where it takes a substantial amount of time to load. In actuality I get
a "warning unresponsive script" in Firefox every time and I have to hit
"continue."

Now, you ready for the big kicker? All this time I think I did not hit
a button before traversing with the keys. For the most part I tried to
hit a button, then draw with the cursor. *sigh*

Good job!

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 7 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7333
by: sams | last post by:
Is there a flow draw tool/API in Java to map out a simple application flow? Tks Sam
9
4716
by: syd | last post by:
I don't even know where to begin. This is just bizarre. I just picked up the Gnuplot.py module (a light interface to gnuplot commands) and was messing around with it today. I've got a tiny script, but it only works from the command line about half the time! In the python interpreter, 100%. Ipython, 100%. I'm not kidding. #!/bin/env python import Gnuplot
4
6608
by: luc wastiaux | last post by:
Hello, my boss is looking for a tool that would enable her to draw web interfaces easily, like visio does for other types of diagrams. What she wants this for is , I assume, to give me an exact sketch of what she wants me to develop. thanks for any suggestions. -- luc wastiaux - dustpuppy@airpost.net
3
9750
by: faustino Dina | last post by:
Hi, I was looking on the SDK but I can't find how to draw text in angles different from 0 and 90. Is it possible? If not, does exist some 3rd party library allowing this? Any hint is welcomed Thanks in advance Faustino
21
3080
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do it using DirectX. I downloaded already the DSK etc, but I can't find how I need to draw an image on a given position. I don't need stuff to write advanced 3D-games, just painting that image. Can anybody help me with this? I'm already looking for...
0
983
by: david | last post by:
I want draw the statistical curve diagrams (such as density, probability) on web page or window form. I know how to use OWC10 for simple chart, but I do not know how to set the parameters for curves. Any body knows it. Thanks David
6
4708
by: Paul McGuire | last post by:
Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams for Python (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html). This pre-dates any Python awareness on my part, but I'm sure this would have been version 1.3 or something. For those who are not familiar with railroad syntax diagrams, they show a grammar's syntax using arrows and blocks, instead of BNF - here's an excerpt from the Python...
4
9978
by: babyinc | last post by:
Please help me. I am totally beginner of C++ and my tutor give us these huge program to solve within 20 days. As a MSc student I am really gonna cry. Please anyone can help me. sumon1in1@yahoo.com Here is added assignment: http://eent3.lsbu.ac.uk/staff/dimitrsa/OOPN/Assignment/OOPN_assignment_2006-07.pdf • Your Application Example: You can either select to design one of the following recommended fractals: 1. Peano curve 2. Hilbert...
2
2860
by: slapsh0t11 | last post by:
So, I've been working on this Game of Life (http://www.bitstorm.org/gameoflife/) project, and all the code has been written. However, it will not run. First, I will post the error message and the fragment of code I think to be the cause of the problem. Then, I will post the code to all 3 of my java files in their entirety should you wish to reference them. Any help would be much appreciated. Also, if it would help fix my error, I would...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10536
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10304
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.