Though I haven't tried toolkits like GWT. Maybe using one of those is just as easy as developing a desktop application. GWT is the #1 solution for programming anything bigger than tiny in the browser, as it allows using Java for programming and takes care most of the browser incompatibilities. GWT does not, however, provide a the server-side programming framework.
If you really want to have AJAX programming as easy as developing desktop applications, try IT Mill Toolkit (http://www.itmill.com/). Programming is very similar to Swing or SWT, except that the application runs on a Java server and you kind of use a web browser as a terminal. IT Mill Toolkit uses GWT for the client-side stuff, but you don't need to even know about that in most cases, except if you want to customize the client-side, for example, to create or integrate new GWT widgets.
It can't really get much simpler than this:
public class HelloWorld extends com.itmill.toolkit.Application {
public void init() {
Window main = new Window("Hello window");
setMainWindow(main);
main.addComponent(new Label("Hello World!"));
} }
And that's automatically fully AJAX-enabled. Well, there isn't any user interaction in this app, but programming it is identical to desktop apps.
Want a customisable, interactive, client-server GUI. Code one in a real language. Use C, C++, C# or even Java, then throw an XML over HTTP client comms library in. Easy. Well easy for programmers with a little training. Not easy for script monkeys who can't code. AJAX is just a bastardisation of what was easiest for most people to build with. Take IT Mill Toolkit (http://www.itmill.com/). It allows you to forget that's you are even coding for the web. The UI logic runs in the server and the AJAX code in the browser simply turns the browser into a thin client or a terminal. The server-side programming is pure Java and looks much like SWT or Swing or whatever. In case you need client-side customization, the client-side is written in Java and compiled with Google Web Toolkit (GWT) into JavaScript. So it's all Java.
The thin client approach is good, because it practically removes one tier from the architecture. Programming with multiple fat tiers is a mess, but programming with a thin client is very similar to programming single-tier desktop applications. Well, plus plus database tier, etc.
For example, IT Mill Tookit (http://www.itmill.com/) uses AJAX simply to turn the browser into a thin client or a terminal. The UI logic runs in the server-side in a Java servlet, with the thin client tier just passing most of UI events to the server. Only some very trivial logic that is usually not specific to the application is done in the client. The application development model is so simple that this approach is really the future of AJAX.
Years back, Microsoft had an experimental IRC server up. It had a content filter that disallowed certain words in channel or nick names. For example, "slut". In Swedish, slut means "to close" or "closed" (if I remember correctly). In Finnish, the only word (that I found from a dictionary) that contains slut was "evankelisluterilainen", or "Evangelic Lutheran" in English.
Not that I have much against shutting EVangelIc Lutherans or any other religions from IRC or other systems, but shutting out Linux disturbs me a lot. But what is the logic? Does Microsoft intend to portray Linux as a religion?
Sounds like the Scandinavian countries are too out-of-line. I'm surprised that Microsoft hasn't petitioned the U.S. government to nuke them or at least go on a bombing campaign against these shameless eco(nomy)-terrorists.
Today in other news, US president (the Bush guy) refused a meeting with Finnish president (Tarja Halonen) while she visits the US this week.
Ubuntu users, be sure to get the patch right away.
What does this patch fix? The installer? Sorry, but the installer is burned in the installation media, and a patch can be applied only after the installer has been run. So updating the system or even upgrading to Dapper (where it has been fixed) doesn't help. So....patch whAt???
No really, the installation ISO images should be fixed immediately and redistributed.
Also saying that it "only affects The 5.10 Breezy Badger release" may be a bit belittling, as probably most people have installed exactly that release.
I once begun to wonder what OOo actually does during the startup. I used strace to see how many files it opened or tried to open when I start and quit OOo. I counted some 1500 on one machine for OOo 1.1, 2500 on another.
Now with 2.0 (with strace -f), I seem to get about 2700 opens. This was just for starting and quitting OOo, and did not include opening an empty document.
About 1200 of the 2700 opens fail though, as if OOo was trying different locations to see if there are files for it. Still, there are 1500 successful opens. Actually, "grep -c 'No such file or'" gives about 2800 failed operations. I wonder why OOo likes banging it's head in the wall so much.
Don't know how long opening a file takes, but I guess it's not instant. On top of that comes processing the files.
They did some pretty good convincing after building a trireme and using a few hundred mirrors and only reaching a couple of hundred degrees
I don't know about burning triremes, but I'd think that a couple of hundred degrees (whatever that means in terms of brightness) would blind the sailors permanently about instantly.
Yes, I know. That's what I said, "promotion hats from high-school", that is, lukio. But you're right regarding teknillinen korkeakoulu, which is university of technology, not polytechnic (ammattikorkeakoulu) in English. My mistake there.
The English translation is sometimes not too good. It occasionally misses some of the more colourful language and some jokes, which could not be translated, and doesn't give a very good equvalent in English. For example, "Hey, I can see it's a water gun", would be more literally, "Hey please, it's clearly a Super-Soaker" (a well-known water gun brand). In a bit later line, the Super-Soaker is, however, preserved in the translation. Well, maybe the joke isn't too big in this example, but losing such references makes dialogues a bit less colourful.
On the other hand, it sometimes uses even more colourful English expressions than the Finnish equivalent.
MOST of the non-verbal cultural references are not understandable to foreign viewers, such as the Hesburger (a Finnish fast food chain), the Mannerheim battleship (named after a dead president and WWII-marshall-hero), etc, etc. The Garybrandy is in Finnish Karigrandy, after a "Kari Grandy" adventurer hero figure in old commercials for Grandy lemonade. The engineer speaks with strong Turku (the city where I live) dialect, in constrast with the Scottish engineer in Star Trek (he's actually an old sci-fi fan/UNIX administrator who's well known for writing his name with "T" middle initial as in James T. Kirk). The guys in the hot dog line are wearing white hats that are promotion hats from Finnish high-school, usually worn on May Day student celebrations. The hats have tufts that indicate they are polytechnics students, and their colourful zip-suits are party suits used by university students. The "TIEDÄ" magazine the three are reading on Earth is taken from Tiede ("Science") magazine.
&c&c&c. The movie is littered with small jokes such as these. They are all over. But I believe there are many jokes from international culture as well.
We're using up gobs of energy that was stored up a long long time ago, which necessarily produces heat [...]. Yearly consumption, by the way, is on the order of ~500 exajoules today. That's a buttload of energy, and if the earth can't get rid of it by radiating, it's just not gonna happen.
Our energy production is in no way relevant, as the Earth's energy input from the Sun is still thousands of times more than that. Let's make a rough calculation... One kW per square meter makes 60*60*24*365*1000*pi*6300000^2=3.9322e+24 J per year. Divide that by your 500 exaJ, and you get about 8000. Ok, some is reflected (earth's albedo is.367), so we get something like 5000 times the 500 exajoules.
All heat on surface of earth is radiated to space, all the time, no matter how it is generated, so Earth's energy input and output are about exactly the same. It's the buffer effect of the atmosphere that matters.
So the only thing that is relevant, is CO2 and other greenhouse gasses, which keep the Sun's energy trapped. Please keep to the facts.
When I purchased my HP Deskjet 1125C, it read on the box: "Two-sided printing" and "Excellent photographic quality", or something like that. After the purchase I learned what these meant.
The "two-sided printing" means that after you print one side of a paper stack, you can turn the stack over (manually) and print the other halves. The windows driver helps with this by printing only even/odd pages. Of course that doesn't work in reality, because the printer jams about every 20 page, or feeds two pages instead of one, so after that the sides of the pages will be in wrong sequence and you'll have a pile of shit. So, I've been printing everything by turning and refeeding each paper one page at a time, for five years now.
The "excellent photographic quality" was actually horrible. Well, it's hard to describe it with words, so I'll leave it at that. On photographic paper, the black color forms droplets because it uses too much ink. Perhaps it should use less ink on photographic paper? Setting the driver to "Photographic paper" doesn't help. Oh, and the printer has "automatic detection of paper type". Cool.
Not to mention that the Linux driver is horribly slow in printing text.
On plus side, this printer uses 42 ml catridges that print about 1000 pages for some 40 euros ($50), so it's cheaper than with the cheapest printers. And it's an A3 printer.
Basically, what this means is that the moon is the correct size on the horizon, and this "bug" causes it to look too small when it is high in the sky.
I would like to propose a hypothesis why this is actually not a "bug" but has a purpose: gravity and hand-to-eye-coordination.
Most of us may have noticed that when you throw things, the things won't keep going straight to that direction, but fall to ground. We are pretty good at throwing at things far away rather accurately. You don't need to calculate the "launch parameters" mathematically, but you just look at the target and your brain "just does it".
Now, if something is 20 meters up above, you need to throw a lot harder than when it's 20 meters away horizontally. Therefore, your brain makes it look like it's farther away to compensate. This may be a bit indirect way of compensating, but that's often how the nature works.
This isn't the first OpenOffice Impress slide show I see people running in non-full-screen windowed mode. So, remember, F9 starts the slide show in full screen.
In Acroread, it's Ctrl+L. I learned this only after a two-hour presentation in windowed mode.
Disappointinly, you apparently can't get full screen mode at all in xpdf nor gv. I've seen a lecturer do his entire course with windowed xpdf under Linux.
The PyMusique software definitely needs some automatic update feature. People need to be alerted of new interoperability threats when Apple changes its protocols, and when a new workaround patch is available.
Otherwise people may pay Apple for unusable music files. Well, selling something that has been intentionally made unusable should be illegal anyhow.
Honestly, I'm glad I learned English, comparing to translations.
Don't generalize if your particular language has been translated badly. Quality depends entirely on the local group doing the translations. In many languages, the KDE and other translations are very good.
If the quality is bad, give feedback to the translations, and better yet, start doing translations yourself. Soon you'll find out that translating is not so easy after all...
KDE and other Linux translations may not be important for those who have learned English, they are essential for the rest of the human population. And yeah, those people are still relevant.
Inconsistensies with shortcut keys are sometimes unavoidable. Usually the control keys, such as ctrl-Q, are NOT localized. Alt keys are, because they have to be a letter from the GUI string.
I hope they'll wait for KDE 3.4.1. The.1 releases have traditionally been translation releases (unless something has changed recently).
It's rather frustrating to do translations, and then notice that they are never packaged in some Linux distributions, because the packagers don't have patience to wait for the translation release. Other than English-speaking people use Linux too, you know.
Well, probably most of the translations get in time for 3.4, so the problem isn't that big.
Re:Just because you CAN...
on
Effective XML
·
· Score: 1
Like, I recently encountered a large project where they have, after many years of development, published a "revolutionary" XML format for...tables.
XML exists because using relational databases with inherently hierarchical data creates a lot of problems. You have to arrange the data artificially to numerous - sometimes even hundreds - of tables, and make tedious normalizations to make them efficient. Then you need to write complex JOIN queries to get your data back, which requires very complex and efficient RDBMS:s. But still, they have sticked with the relational databases for decades because tables are so damned fast to process.
And now, people are representing tables in XML, and are looking for techniques to process it fast. Damn, can't even make random access any longer...
Well, the only excuse for using XML for tables would be uniformity, as when you have tables embedded in HTML.
"Trust your intuitions. Well, not quite; trust them, if and only if they are good."
I wonder if that equivalence is intentional.
I mean, the above says that (implication <=) if your intuitions are good, you should trust them. That sounds fine. Rather obvious and therefore useless, but fine.
But it also says that (implication =>) if you trust your intuitions, they are good.
That sounds like...excellent. All we need is blind faith in our intuitions and everything always turns out just as we thought. What a relief.
URL which looks like "https://www.paypal.com" but really has a letter replaced with a non-English Unicode character which looks the same
In what way? To my knowledge, there is only one way to encode the latin letters in UTF-8. They don't have any redundant code positions in Unicode, do they?
Or do you mean, almost the same? Like, https://www.päýpâ1.com/?
What are you saying, you communist? Have you ever heard the sentence, "All men are created equal"? That's from the sacred Declaration of Independence. It's a God-given truth that no man can be better at grammar and spelling than other men. What science says has no meaning over the word of God.
Regarding the wo(rse than)man issue, do you see the word "woman" in the "all men"?
If you're interested in looking at one of the most social democratic pension systems in industrialized nations, you might want to take a look at the Finnish Pension System. Also the Swedish and other Nordic systems might be interesting.
Finland will have much bigger and much sooner retirement boom than the rest of the Europe (except Italy where the problem is even bigger) or the USA, so many are worried about the future. Well, at least the right-wing are, and they are, as usual, calling for demolishing the social security, unemployment, and pension systems before it is too late here too.
I believe that the success of Nordic welfare nations, including Sweden and Norway, gives some credibility to the social democratic economy, which essentially means balancing capitalism with social equality to fuel prosperity and justice.
Nevertheless, these economies are endangered by globalization, as global markets force them to compete on social issues.
If you really want to have AJAX programming as easy as developing desktop applications, try IT Mill Toolkit (http://www.itmill.com/). Programming is very similar to Swing or SWT, except that the application runs on a Java server and you kind of use a web browser as a terminal. IT Mill Toolkit uses GWT for the client-side stuff, but you don't need to even know about that in most cases, except if you want to customize the client-side, for example, to create or integrate new GWT widgets.
It can't really get much simpler than this: And that's automatically fully AJAX-enabled. Well, there isn't any user interaction in this app, but programming it is identical to desktop apps.
The thin client approach is good, because it practically removes one tier from the architecture. Programming with multiple fat tiers is a mess, but programming with a thin client is very similar to programming single-tier desktop applications. Well, plus plus database tier, etc.
For example, IT Mill Tookit (http://www.itmill.com/) uses AJAX simply to turn the browser into a thin client or a terminal. The UI logic runs in the server-side in a Java servlet, with the thin client tier just passing most of UI events to the server. Only some very trivial logic that is usually not specific to the application is done in the client. The application development model is so simple that this approach is really the future of AJAX.
Years back, Microsoft had an experimental IRC server up. It had a content filter that disallowed certain words in channel or nick names. For example, "slut". In Swedish, slut means "to close" or "closed" (if I remember correctly). In Finnish, the only word (that I found from a dictionary) that contains slut was "evankelisluterilainen", or "Evangelic Lutheran" in English.
Not that I have much against shutting EVangelIc Lutherans or any other religions from IRC or other systems, but shutting out Linux disturbs me a lot. But what is the logic? Does Microsoft intend to portray Linux as a religion?
Sounds like the Scandinavian countries are too out-of-line. I'm surprised that Microsoft hasn't petitioned the U.S. government to nuke them or at least go on a bombing campaign against these shameless eco(nomy)-terrorists.
Today in other news, US president (the Bush guy) refused a meeting with Finnish president (Tarja Halonen) while she visits the US this week.
Ubuntu users, be sure to get the patch right away.
What does this patch fix? The installer? Sorry, but the installer is burned in the installation media, and a patch can be applied only after the installer has been run. So updating the system or even upgrading to Dapper (where it has been fixed) doesn't help. So....patch whAt???
No really, the installation ISO images should be fixed immediately and redistributed.
Also saying that it "only affects The 5.10 Breezy Badger release" may be a bit belittling, as probably most people have installed exactly that release.
I once begun to wonder what OOo actually does during the startup. I used strace to see how many files it opened or tried to open when I start and quit OOo. I counted some 1500 on one machine for OOo 1.1, 2500 on another.
Now with 2.0 (with strace -f), I seem to get about 2700 opens. This was just for starting and quitting OOo, and did not include opening an empty document.
About 1200 of the 2700 opens fail though, as if OOo was trying different locations to see if there are files for it. Still, there are 1500 successful opens. Actually, "grep -c 'No such file or'" gives about 2800 failed operations. I wonder why OOo likes banging it's head in the wall so much.
Don't know how long opening a file takes, but I guess it's not instant. On top of that comes processing the files.
They did some pretty good convincing after building a trireme and using a few hundred mirrors and only reaching a couple of hundred degrees
I don't know about burning triremes, but I'd think that a couple of hundred degrees (whatever that means in terms of brightness) would blind the sailors permanently about instantly.
Yes, I know. That's what I said, "promotion hats from high-school", that is, lukio. But you're right regarding teknillinen korkeakoulu, which is university of technology, not polytechnic (ammattikorkeakoulu) in English. My mistake there.
The English translation is sometimes not too good. It occasionally misses some of the more colourful language and some jokes, which could not be translated, and doesn't give a very good equvalent in English. For example, "Hey, I can see it's a water gun", would be more literally, "Hey please, it's clearly a Super-Soaker" (a well-known water gun brand). In a bit later line, the Super-Soaker is, however, preserved in the translation. Well, maybe the joke isn't too big in this example, but losing such references makes dialogues a bit less colourful.
On the other hand, it sometimes uses even more colourful English expressions than the Finnish equivalent.
MOST of the non-verbal cultural references are not understandable to foreign viewers, such as the Hesburger (a Finnish fast food chain), the Mannerheim battleship (named after a dead president and WWII-marshall-hero), etc, etc. The Garybrandy is in Finnish Karigrandy, after a "Kari Grandy" adventurer hero figure in old commercials for Grandy lemonade. The engineer speaks with strong Turku (the city where I live) dialect, in constrast with the Scottish engineer in Star Trek (he's actually an old sci-fi fan/UNIX administrator who's well known for writing his name with "T" middle initial as in James T. Kirk). The guys in the hot dog line are wearing white hats that are promotion hats from Finnish high-school, usually worn on May Day student celebrations. The hats have tufts that indicate they are polytechnics students, and their colourful zip-suits are party suits used by university students. The "TIEDÄ" magazine the three are reading on Earth is taken from Tiede ("Science") magazine.
&c&c&c. The movie is littered with small jokes such as these. They are all over. But I believe there are many jokes from international culture as well.
We're using up gobs of energy that was stored up a long long time ago, which necessarily produces heat [...]. Yearly consumption, by the way, is on the order of ~500 exajoules today. That's a buttload of energy, and if the earth can't get rid of it by radiating, it's just not gonna happen.
.367), so we get something like 5000 times the 500 exajoules.
Our energy production is in no way relevant, as the Earth's energy input from the Sun is still thousands of times more than that. Let's make a rough calculation... One kW per square meter makes 60*60*24*365*1000*pi*6300000^2=3.9322e+24 J per year. Divide that by your 500 exaJ, and you get about 8000. Ok, some is reflected (earth's albedo is
All heat on surface of earth is radiated to space, all the time, no matter how it is generated, so Earth's energy input and output are about exactly the same. It's the buffer effect of the atmosphere that matters.
So the only thing that is relevant, is CO2 and other greenhouse gasses, which keep the Sun's energy trapped. Please keep to the facts.
When I purchased my HP Deskjet 1125C, it read on the box: "Two-sided printing" and "Excellent photographic quality", or something like that. After the purchase I learned what these meant.
The "two-sided printing" means that after you print one side of a paper stack, you can turn the stack over (manually) and print the other halves. The windows driver helps with this by printing only even/odd pages. Of course that doesn't work in reality, because the printer jams about every 20 page, or feeds two pages instead of one, so after that the sides of the pages will be in wrong sequence and you'll have a pile of shit. So, I've been printing everything by turning and refeeding each paper one page at a time, for five years now.
The "excellent photographic quality" was actually horrible. Well, it's hard to describe it with words, so I'll leave it at that. On photographic paper, the black color forms droplets because it uses too much ink. Perhaps it should use less ink on photographic paper? Setting the driver to "Photographic paper" doesn't help. Oh, and the printer has "automatic detection of paper type". Cool.
Not to mention that the Linux driver is horribly slow in printing text.
On plus side, this printer uses 42 ml catridges that print about 1000 pages for some 40 euros ($50), so it's cheaper than with the cheapest printers. And it's an A3 printer.
Basically, what this means is that the moon is the correct size on the horizon, and this "bug" causes it to look too small when it is high in the sky.
I would like to propose a hypothesis why this is actually not a "bug" but has a purpose: gravity and hand-to-eye-coordination.
Most of us may have noticed that when you throw things, the things won't keep going straight to that direction, but fall to ground. We are pretty good at throwing at things far away rather accurately. You don't need to calculate the "launch parameters" mathematically, but you just look at the target and your brain "just does it".
Now, if something is 20 meters up above, you need to throw a lot harder than when it's 20 meters away horizontally. Therefore, your brain makes it look like it's farther away to compensate. This may be a bit indirect way of compensating, but that's often how the nature works.
Just a 2.4132 cents worth from your AI guy.
This isn't the first OpenOffice Impress slide show I see people running in non-full-screen windowed mode. So, remember, F9 starts the slide show in full screen.
In Acroread, it's Ctrl+L. I learned this only after a two-hour presentation in windowed mode.
Disappointinly, you apparently can't get full screen mode at all in xpdf nor gv. I've seen a lecturer do his entire course with windowed xpdf under Linux.
The PyMusique software definitely needs some automatic update feature. People need to be alerted of new interoperability threats when Apple changes its protocols, and when a new workaround patch is available.
Otherwise people may pay Apple for unusable music files. Well, selling something that has been intentionally made unusable should be illegal anyhow.
Honestly, I'm glad I learned English, comparing to translations.
Don't generalize if your particular language has been translated badly. Quality depends entirely on the local group doing the translations. In many languages, the KDE and other translations are very good.
If the quality is bad, give feedback to the translations, and better yet, start doing translations yourself. Soon you'll find out that translating is not so easy after all...
KDE and other Linux translations may not be important for those who have learned English, they are essential for the rest of the human population. And yeah, those people are still relevant.
Inconsistensies with shortcut keys are sometimes unavoidable. Usually the control keys, such as ctrl-Q, are NOT localized. Alt keys are, because they have to be a letter from the GUI string.
I hope they'll wait for KDE 3.4.1. The .1 releases have traditionally been translation releases (unless something has changed recently).
It's rather frustrating to do translations, and then notice that they are never packaged in some Linux distributions, because the packagers don't have patience to wait for the translation release. Other than English-speaking people use Linux too, you know.
Well, probably most of the translations get in time for 3.4, so the problem isn't that big.
Like, I recently encountered a large project where they have, after many years of development, published a "revolutionary" XML format for...tables.
XML exists because using relational databases with inherently hierarchical data creates a lot of problems. You have to arrange the data artificially to numerous - sometimes even hundreds - of tables, and make tedious normalizations to make them efficient. Then you need to write complex JOIN queries to get your data back, which requires very complex and efficient RDBMS:s. But still, they have sticked with the relational databases for decades because tables are so damned fast to process.
And now, people are representing tables in XML, and are looking for techniques to process it fast. Damn, can't even make random access any longer...
Well, the only excuse for using XML for tables would be uniformity, as when you have tables embedded in HTML.
"Trust your intuitions. Well, not quite; trust them, if and only if they are good."
I wonder if that equivalence is intentional.
I mean, the above says that (implication <=) if your intuitions are good, you should trust them. That sounds fine. Rather obvious and therefore useless, but fine.
But it also says that (implication =>) if you trust your intuitions, they are good.
That sounds like...excellent. All we need is blind faith in our intuitions and everything always turns out just as we thought. What a relief.
URL which looks like "https://www.paypal.com" but really has a letter replaced with a non-English Unicode character which looks the same
In what way? To my knowledge, there is only one way to encode the latin letters in UTF-8. They don't have any redundant code positions in Unicode, do they?
Or do you mean, almost the same? Like, https://www.päýpâ1.com/?
This must be the third time I post the nice image of my rat and the computer he ate. See also a detail of the destruction.
Ahh, now I finally understand why he is so much against the Kyoto Treaty. So this is his plan.
I bet he has a secret wall in the Oval Office that has a bigger version of this map behind.
... some males are good at grammar and spelling.
What are you saying, you communist? Have you ever heard the sentence, "All men are created equal"? That's from the sacred Declaration of Independence. It's a God-given truth that no man can be better at grammar and spelling than other men. What science says has no meaning over the word of God.
Regarding the wo(rse than)man issue, do you see the word "woman" in the "all men"?
If you're interested in looking at one of the most social democratic pension systems in industrialized nations, you might want to take a look at the Finnish Pension System. Also the Swedish and other Nordic systems might be interesting.
Finland will have much bigger and much sooner retirement boom than the rest of the Europe (except Italy where the problem is even bigger) or the USA, so many are worried about the future. Well, at least the right-wing are, and they are, as usual, calling for demolishing the social security, unemployment, and pension systems before it is too late here too.
I believe that the success of Nordic welfare nations, including Sweden and Norway, gives some credibility to the social democratic economy, which essentially means balancing capitalism with social equality to fuel prosperity and justice.
Nevertheless, these economies are endangered by globalization, as global markets force them to compete on social issues.
If you have an older incompatible installation. That worked for at least most of my crashes (in Linux).
My problem now is that I can't get any Java version working with Firefox 1.0.