MidiMagic 579 Nearly a Senior Poster

Not true. This once again shows your utter ignorance.
Method calls don't start new threads you know...

That website seemed to imply that they do.

Something did. Maybe it was the system I/O calls.

We wrote a C+ program to do a simple sequence for an automated experiment:

1. Turn on the lights, so the subject knows to begin.
2. Measure exactly 4 seconds of subject activity at 1/1000 second intervals, using position and force sensors. Put it all in a 2d array.
3. Save the entire array to a disk file after the trial is over.

I wrote the code so that each of these things were done in a given order.

But that's not what we got.

- Our data were collected not once every 1/1000 second, but once every 1/18 second. So the experiment code ran for 3 minutes and 42 seconds if left to itself.
- Each time a "one millisecond" block of data was collected, the data were immediately saved to disk, without waiting for the entire array to be filled.
- After all of the disk I/O was finished, it turned on the lights to tell the subject to begin.

Somehow the compiler or operating system decided which I/O processes were "more important" from its own viewpoint, and changed the order of events to be "more efficient".

We never got to fully troubleshoot it. The administrator said we had wasted too …

MidiMagic 579 Nearly a Senior Poster

Funny, seems to me a lot of people use *nix variants when they need specialized systesms. Not that they necessarily need it for scientific needs, because as we all know, Cray makes some kickass gaming machines...

But they WANT multiple events going on. I DON'T!

Aside from DOS being 15+ years ago, you could have just ported your code. If you were shafted, I'm sure others were as well but they seem to have gotten by just fine...

You don't know the half of it. The companies that made the special equipment we needed for the experiments stopped making the equipment, because nobody made an operating system it would work with. So. last year, they closed our labs.

As for the "toll" of having to pay to use someone's product, thats a load of crap. As has been mentioned, Microsoft has been fairly liberal about giving away copies of its development products, especially with the release of the Express editions. If you don't like those, then get another IDE.

The problem is not getting the development software. The toll comes when you go to market your program. Microsoft OWNS part of it, and wants copyright royalties.

- or instead of sleep() you could poll for a keyboard event

That's what I was doing.

- how about canned sound clips that play depending on what's happening on the screen?

That's what I DIDN'T want. I was calculating the sound pitch mathematically, based on what the user was …

MidiMagic 579 Nearly a Senior Poster

http://www.adrianxw.dk/SoftwareSite/index.html

See what I meant about making it more complicated?

MidiMagic 579 Nearly a Senior Poster

Spending didn't prolong the depression, deficit spending prolonged it.

Germany debased the currencies of these other countries by taking away the gold it was based on, and by causing the countries to print more money.

You are right that currency is based on economic production. Almost all wealth is created by work. This is why the government can't print as much money as it wants to, or spend as much as it wants to.

This is why the tax rate should be at 10 percent or below. Above that, government reduces the size of the economy. It's also why universal health insurance can't work.

MidiMagic 579 Nearly a Senior Poster

An engineer is in line to be guillotined by the French Revolution.

There is a rule that if the guillotine malfunctions and does not cut the head off, the person has been spared by God, and so goes free.

The three people ahead of the engineer are each let go because the blade did not cut their heads off. Now it's the engineer's turn.

The engineer says, "I think I see your problem...."

MidiMagic 579 Nearly a Senior Poster

It's called spam.

MidiMagic 579 Nearly a Senior Poster

Where in Indiana is this?

MidiMagic 579 Nearly a Senior Poster

What you don't seem to realize is that, to God, what we call time is another physical dimension in space.

God sees it all simultaneously, for He is outside time.

MidiMagic 579 Nearly a Senior Poster

Instructions for upgrading server:

1. Place old system in Cuisinart.

2. Turn on "liquify" for 30 seconds.

3. Pour into new server.

:icon_mrgreen:

-----

Some of the edit windows are showing a list of icon codes instead of the actual icons.

Some edit windows allow the whizzywig editor, and some don't. I thought it was gone.

MidiMagic 579 Nearly a Senior Poster

Yay! The bees are bee-ten.

Now fix the smileys so we can tell what we are getting. We now see the code instead of the smiley.

And people would use code blocks more if they had the button available in the quick reply box.

MidiMagic 579 Nearly a Senior Poster

I need to search a particular forum too.

MidiMagic 579 Nearly a Senior Poster

This refreshing never came back. I think either DaniWeb reset several times while dealing with the DoS attacks that day, or a router somewhere along the way got tangled up and was reset several times, delivering the same page several times.

Anyway, it's gone.

But the no-scroll bug is still there. I can't hold down either scroll arrow and scroll the page while a moving ad is on the page. It scrolls one unit, and stops until I lift the mouse button. Trying again moves me one more scroll unit. As soon as the ad stops moving, I regain control. But there is one ad that never stops moving.

And it happens on only DaniWeb. No other site does this.

MidiMagic 579 Nearly a Senior Poster

It works now, because the whizzywig editor is now gone.

But to get rid of the bumbles, I had to get rid of the dropdown menus, so I have to scroll to the links, so the no-scroll bug stops me until the ad stops moving. And there are some ads that don't stop moving.

And now I can't tell which smiley I am getting, because the menu shows the text, instead of the smiley. Then the wrong one shows up.

MidiMagic 579 Nearly a Senior Poster

Then who hosed hosed? It used to mean deleted in the 1990s. :icon_cheesygrin:

I have a partial solution to the editing problem. I put the same font in both Notepad and in Firefox monospace, and the jumping indents went away.

I had changed the font in Notepad, and that seems to have caused caused the trouble. But I really don't understand this, because the font is supposed to be for display, not formatting the file.

But I still have the problem that whenever I use a link or a bookmark to go get something to paste in a post, when I return, I find the edit window reset to the condition it was in when I opened the edit. If I am editing an existing post, it resets to the way the post already is on the board. If I am creating a new post, it resets to blank.

MidiMagic 579 Nearly a Senior Poster

I found that I had to apply a float: left; style to each column to get them to stay aligned.

But I find that if the content is wider than the browser window, the structure falls apart.

MidiMagic 579 Nearly a Senior Poster

You can't put anything directly inside the ul or ol tags except list items. But you can put the h1 etc. tags inside the li tags or other list content tags.

MidiMagic 579 Nearly a Senior Poster

There are several possibilities, but I need to see more to tell what. The possibilities:

1. IE is not case sensitive for styles and tags. Firefox is case-sensitive. So, to be sure your ids and styles are compatible, make everything in your stylesheet and references lowercase.

2. It may depend on the browser whether it is looking for the name attribute or the id attribute. For Input boxes, it is best to provide both. But remember that all radio buttons in a group require the same name, but different ids.

3. Check for accidental capitalizations and typos.

4. Do you accidentally have two objects with the same id attribute? Do you have a different object with a name attribute which is the same as the id attribute you are using?

5. Remember that the checked attribute is boolean.

6. Are the contents of the variable x known to be a string? If not, are they known to be an integer? You may have an issue with roundoff error if the value is calculated.

7. Did you return x from a function? If so, it may be that you used a parameter passing method that returns a value on one browser, but not on another.

8. How did you declare x? It may be that, under the rules of one browser, x is outside its scope.

9. Could x have a leading blank for some reason?

10. I was told to …

MidiMagic 579 Nearly a Senior Poster

It doesn't matter what percentage of the market works without semicolons or with embedded < and > symbols. The W3C standard requires the semicolons, and prohibits using the < and > symbols in embedded code.

All of this is listed on the W3C pages, with what to do to avoid the problems. They say to use the semicolons, and to place any code which contains < or > symbols in separate .js files.

When IE and Opera becomes more standards-compliant, the above code will cease to work.

Never rely on browser quirks.

Also realize that any user can turn his JavaScript off. Then the page will behave as though the JavaScript calls are not present.

MidiMagic 579 Nearly a Senior Poster

What I was thinking is that he wanted to do the equivalent of "print selection" with his code making the selection and choosing the "print selection" option in the Print menu.

That belongs to the user.

MidiMagic 579 Nearly a Senior Poster

Java and JavaScript are two totally different languages. The only common element is the name "Java".

You can't learn JavaScript from a Java book, or Java from a JavaScript book.

The following is NOT valid JavaScript, though it is valid Java.

code = Trim(DataRangeHdr1("code"))
DiagnosisName = DataRangeHdr1("DiagnosisName")
DiagnosisName = (Replace(DiagnosisName,"'"," "))
 
CodeMark = InStr(code,".")

JavaScript requires a semicolon at the end of each statement, except in certain positions (where the semicolon must not appear). Java does not require semicolons except in certain constructions.

Internet Explorer allows some JavaScript statements to work correctly without semicolons, but other browsers do not. So IE cheats. Don't write your code to rely on IE quirks.

jwenting commented: get your facts straight when you want to give people "advise". You've not posted anything at all sensible for a long time -2
MidiMagic 579 Nearly a Senior Poster

The only thing I can think of is having the script load some of the time-consuming stuff with a delayed call, after doing the window sizing.

I had to deal with timing issues like this here:

http://www.daniweb.com/forums/thread85060.html

MidiMagic 579 Nearly a Senior Poster

I'm not sure I understand what you are trying to do.

MidiMagic 579 Nearly a Senior Poster

You don't. That is the job of the sysops.

I have never had to assign an IP address. My ISP always did that for me. In fact, each time my site is used, it gets a different IP address.

Just use the URL. That's all that is needed.

Many web providers are switching to randomized IP addresses, to keep spammers from hiding behind IP addresses, and to keep hackers from destroying websites.

MidiMagic 579 Nearly a Senior Poster

z-index is not well supported.

MidiMagic 579 Nearly a Senior Poster

Repeat after me:

"It is impossible to force a page to be a given height for all browsers and all browser settings."

MidiMagic 579 Nearly a Senior Poster

That vertical-align: middle may be shoving stuff around. It's intended for table cells, not p elements.

MidiMagic 579 Nearly a Senior Poster

You have to go into your browser controls and foind a place where cookies are disabled. Change it to either:

Enable cookies

or

Enable only cookies that answer to only the originating server

MidiMagic 579 Nearly a Senior Poster

The key fact is that you can't put a box object inside an inline object.

MidiMagic 579 Nearly a Senior Poster

You probably did not have 83 errors. Many times one typo can generate 6 errors.

MidiMagic 579 Nearly a Senior Poster

I use isNaN(variable) to check if the input is a valid number. If it is not, I return false, and the submit does not take place.

But remember that anyone can turn off JavaScript with their browser controls. With JavaScript off, the button works just as if you had no JS code.

MidiMagic 579 Nearly a Senior Poster

You are missing some semicolons.

While IE lets you get away with not putting the required semicolons between statements when you are on the top level. Firefox will not.

You need a semicolon after:
- the second var statement
- The oDDL = statement
- the document. statement
- in this case, all three closing braces

You need to put your code in code tags in your post.

And you can't do anything secure in JavaScript.

MidiMagic 579 Nearly a Senior Poster

You can't control functions which belong to the owner of the computer that is viewing your page.

MidiMagic 579 Nearly a Senior Poster

You have "<" and ">" symbols in your javascript code. You can't have such a script embedded inside html and expect it to work on all browsers.

Use an external script file.

Also, IE is more forgiving if you leave out a semicolon.

MidiMagic 579 Nearly a Senior Poster

The code I saw is not valid javascript.

MidiMagic 579 Nearly a Senior Poster

Some browsers do not do ANY processing until the download of the initial page is complete. This is beyond your control. You need to allow for this when designing your pages.

MidiMagic 579 Nearly a Senior Poster

That stupid thing is back! And the selection to remove it is GONE!

Please remember that you put the ability to disable it there because it drives some people's visual systems nuts.

MidiMagic 579 Nearly a Senior Poster

I think Dani is the only one who likes it.

To turn that stupid annoying thing off, I had to disable the dropdowns, which I liked. It made the site much harder to navigate.

MidiMagic 579 Nearly a Senior Poster

Where? I can't get rid of the bumbling tooltips without also getting rid of the dropdowns.

MidiMagic 579 Nearly a Senior Poster

Firefox has a built in spellchecker. But it won't work with the whizzywig editor. And somehow my account keeps getting changed back to whizzywig without my permisssion.

And I detest the bumbling tooltips.

MidiMagic 579 Nearly a Senior Poster

Hi,

1.

If you remember, the option to disable the various JavaScript style elements was temporarily added to help debug all of the extremely slow page rendering and JavaScript timeouts that were being spit out when I updated the look of DaniWeb a couple of months ago.

Part of it was also there to get rid of that maddening bumble box that follows the cursor around. It is now annoyingly BACK!

I want the hover tooltips GONE!!!!!

Narue and others were experiencing timeouts where their web browsers would seemingly hang, but I didn't know what was causing them. So to help figure it out, I added the option to turn off each of the JS elements one at a time:
Turn off rounded corners
Turn off dropdown menu
Turn off hover tooltips

It turns out that, for all members who were complaining, it was the rounded corners that were the culpreit. The hover tooltips and dropdown menu don't cause any browser slowness.

No, but the hover tooltips just drive you crazy with visual interrupts.

[In doing a quick run through the database, I noticed that the vast majority of members had disabled "rounded corners". Very, very few (fewer than 10) disabled one, or both, of the other two options.

Therefore, I went ahead and permanently turned off the rounded corners option yesterday, and so there was no reason to have this option in the control panel anymore. I don't feel there is a need …

MidiMagic 579 Nearly a Senior Poster

Are these files hosed? Do they have embedded tabs? "Smart" quotes, etc.?

Huh? Hosed? That means deleted.

I don't find unusual characters in them when I download and use Notepad.

No smart quotes (which I wish had never been thought of).

MidiMagic 579 Nearly a Senior Poster

I am not using Notepad to edit these posts. I use it to edit my web pages.

I noticed the following:

- If I upload the file to put in the code tags directly from my computer, the editing trouble here does not happen.

- If I copy the code file from my website to put in the code tags, the trouble happens.

MidiMagic 579 Nearly a Senior Poster

Unfortunately, the market is saturated with designers.

MidiMagic 579 Nearly a Senior Poster

I have been writing all of my code in Notepad since 1993. It doesn't put strange stuff in files.

MidiMagic 579 Nearly a Senior Poster

I have FF 2.0.0.6. I have never seen an auto-refresh function.

It happened just 4 times, all in a 15-minute space. I have never seen it before (or since, as it turned out).

I wonder if it was one of the reboots mentioned in another thread.

MidiMagic 579 Nearly a Senior Poster

It's because you are trying to change the browser display without waiting for the browser to finish loading the page.

In the case of IE, it is probably repeating the loading of the same part of the page over and over, as you keep interrupting it, without ever finishing the whole load.

I am now beginning to think that the DaniWeb spinner showing download is causing the slow-load problem.

So DON'T do anything until the entire page finishes loading!

MidiMagic 579 Nearly a Senior Poster

The answer is to not expect the page to exactly fill the screen.

MidiMagic 579 Nearly a Senior Poster

This is usually a case of an object being larger than the container it is supposed to be in.

MidiMagic 579 Nearly a Senior Poster

consumers do not spend much money during a reccesion. that is the whole crux of a reccesion. because consumers stop buying the demad for goods and services falls. this leads to unemployment. because the now unemployed people does not have as much money to buy other sectors of the economy dont sell much either and this leads to further job losses.

these things actually happened in history. the best example is the great american deppresion of around the 1930 years.

That's the deprecated Keynesian Economics spiel.

It has now been shown that the extended spending actually prolonged the depression until 1942. It took the wartime sacrifices to end it. But it could have been ended a lot earlier if the people controlling the Federal Reserve Board hadn't also been playing the stock market, and adjusting the money supply for their own profit.

A momentary surge in spending helps. An extended spend does the opposite.

the same thing happend around the same time in europe. only hitler' national socialists actually provided jobs and germany got pulled out of reccesion before almost all other europian countries.

Temporarily. They printed money which was not backed by anything, and then they enriched the German economy by stealing all of the property of the Jews. They also debased the Italian and Polish currency.

MidiMagic 579 Nearly a Senior Poster

Who do you mean by they? Well Intell and Microsoft gave them their wish. If you don't like that then you are always free to remove the MS-Windows and *nix from your computer and replace it the MS-DOS version 6.X, then you will be back to where we all were 15 years or so ago. Of course you will not be able to play any of the current games or access the internet.

They gave BUSINESS its wish, at the expense of other users.

But we can't run the special scientific applications we need on Windows So we have to use DOS.

Except that we can't find new computers that run DOS 6.2 anymore, and the old ones are dying.

Oh yes it is -- using Windows Explorer highlight a group of files then change the file extension of one of them -- they will all be changed to the same file extension.

But suppose I need to rename the series of files:

ted001.txt, ted002.txt, ted003.txt ... ted246.txt

to

bev001.txt, bev002.txt, bev003.txt ... bev246.txt

It doesn't work! I end up with:

bev001.txt, Copyofbev001.txt, Copy2ofbev001.txt ... Copy244ofbev001.txt

What! Those are still available in win32 api functions and *nix functions. C and C++ languages never ever supported them as part of the language.

But the languages they took away DID support them. They took those functions away because they don't work with Windows running all the time under them.

I wrote a …

~s.o.s~ commented: I can understand but your arguments are illogical. +20