![](https://xisto.com/discuss/uploads/set_resources_4/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
bjrn
Members-
Content Count
380 -
Joined
-
Last visited
Everything posted by bjrn
-
I'm sure most of you know that Google has registered gbrowser.com, and there have been a lot of rumours about Google making a browser. A rumour that started up again when Firefox's lead developer was hired by them What many people don't know is that Google also registered[1] googleporn.com, is this the next thing Google will launch? [1] proof
-
Actually, it can cause problems. Why did you think it wasn't enabled by default? Read more here.
-
sourceforge.net uses PHP. And sourceforge has more traffic than any personal page can dream of having. But yes, I think many companies who use PHP to make public websites are targetting small and medium business sites.
-
JavaScript is not Java. JSP is a Java technology. Java is a programming language, a language you can write applications with, JavaScript is a scripting language often used for client-side scripting on webpages. About having JavaScript "encode"[1] your page and SEO: If you are storing your pages encoded and using JavaScript to decode them for the browser then it will probably hurt your rankings. Because most (all?) search enginge spiders don't understand javaScript they won't be able to read your site properly. I wouldn't do it in any case. You won't be stopping anyone who really wants to see what your markup and css looks like with it. The only ones you would be stopping are total newbies. [1] The so called encoding I've seen is often nothing more than using alternative encoding for normal characters, just like you see in many URLs (like http://forums.xisto.com/no_longer_exists/).
-
There are porbably quite a lot of projects called phoenix, so it wouldn't surprise me if something reasonably well known project was called Phoenix right now. But anyway, Firefox used to be Firebird, and before that it was Phoenix.
-
HTML isn't code, HTML is a markup language. XHTML isn't code, XHTML is a markup language. DHTML isn't code, DHTML is a grouping name for a markup language + a client side scripting langue + some layout technique.Having said all that, I guess I prefer to use Java of the programming languages you've mentioned. I think it's a readable language (when written decently), and capabilities to do many nice things. And the fact that it's cross-platform is nice as well.
-
Are you talking about JSP or JavaScript?
-
Strange, it looks like you've done the right thing with AddCharset, but since it isn't working perhaps you can add: AddType 'text/html; charset=Big5' php to your .htaccess file instead? Another solution would be to set the following at the beginning of your php documents: <?php header("Content-Type: text/html; charset=Big5"); ?>It's important that you do that before sending anything to the client (before any content). And make sure that you don't have something like: "<meta http-equiv="Content-Type" content="text/html;charset=utf-8">" in the head of your html. THat might screw things up as well.
-
I wouldn't bother learning ASP. If you have to use it sometime in the future it's really quite easy to pick up. But I wouldn't bother with it unless you have to. I have to say that when it comes to making standards compliant sites it's not really a problem, ASP writes what you tell it to write. But when you want to do things like sending an email through ASP you'll have to either use a script in another language or buy a commercial ASP email component. Many other bits you can do without effort in PHP require commercial components in ASP. If you want to use a MySQL db, I'd say PHP is easier than ASP. I don't think the difference in speed is that big, but I really don't have any data to support me, I'm just guessing really. Remember that if you are executing a lot of queries that might be the cause of your page's slowness.
-
This PHP script is what I am using right now for MIME types: if (stristr($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) { header("Content-Type: application/xhtml+xml; charset=utf-8");} else { header("Content-Type: text/html; charset=utf-8");}So I am sending my pages as application/xhtml+xml to those browsers that claim to understand it. I guess I should do another check because browsers are technically allowed to send along a "quality" parameter to indicate how well they support a format. So a browser could send something like "application/xhtml+xml q=0.1" (not quite sure about the format) in the accept header, indicating that it only supports it to a very small degree. It's a minor point though. But what I really want is to not just send XHTML as text/html and pretend it's HTML. I actually want to transform my pages for browsers that don't understand XHTML. I'm considering saving my pages in XHTML 1.1 and then having a regex run through it to convert it to HTML 4.01 for older browsers. Edit: Just started reading the page Taupe linked to. It's looking just like what I was looking for, thanks Taupe
-
No it doesn't. When IE sees XHTML it says: "Wow. I have no idea what this is, so I guess it must be HTML 4 or something like that".[1] So although it looks like it understands XHTML, it's really only treating XHTML as if it were badly written HTML. Furthermore it doesn't understand the mime type application/xhtml+xml (which XHTML should be sent as by the server). I must admit that I've been hearing rumours that IE under WinXP SP2 can handle XHTML properly-ish. Anyway, I'm still looking for something to either convert XHTML 1.1 to HTML 4.01 or XML to XHTML 1.1 and HTML 4.01 or something like that. [1] Actually, it's a bit more complex than that, when IE gets a document it checks the 250 bytes of the document to guess what kind of document it is. IE does this because it wants catch things which are being sent with the wrong mime type by wrongly/uncarefully configured servers. IE doesn't really trust MIME types, it wants to decide for itself. So say you have a text document, full with HTML tags, but you want to show it as plain text. So, you think that sending it as text/plain would do it, but it doesn't. IE looks through the document, sees the tags and thinks "hah! the sever must have made a mistake" and shows the document as a HTML document, and not as a text document as you wanted it.
-
KHTML is not a HTML alternative, it is a rendering engine, just like Gecko (which Mozilla, Firefox etc. use) and Trident (which Internet Explorer uses). The browsers Konqueror (for KDE) and Safari (for Mac) use the KHTML engine.
-
Safari perhaps? Opera? Konqueror? Give people a chance to choose which browser they want to use, you know.
-
It looks okay, but I think it looks a bit standard. You might want to tweak your graphics and/or CSS. I don't really mind those "dents", I think it's nice to have something break up the solidness. I think the colours are fine, perhaps a tad plain?I think you should move the counter box to either under the right bar or under the left bar, right now it looks a bit strange, below and to the side of the content.And now a techie thing: Your site says it's valid XHTML 1.1, but it's not. There are invalid characters in the document, and you are sending the pages as text/html, something that you (according to the spec) "must not" do. If you want to send your document as text/html (to let IE users see your pages) you should use XHTML 1.0, which you only "should" send as application/xhtml+xml and "may" send as text/html. The CSS contains errors as well. And I'm just curious, why are you using XHTML 1.1? Are you planning on embedding MathML or SVG content in your pages?
-
Yeah. Internet Explorer doesn't understand XHTML, so I would like to have something that can convert XHTML to HTML (or similar). And then when a visitor comes to my site I check if their browser can handle XHTML, and if not, I show them the HTML page.I can't do it with JavaScript though. Because if I am showing them the HTML page I am sending it with a text/html MIME type, but if I am sending the XHTML page I am not sending it as text, but as application/xhtml+xml (for lots of difficult reasons).So I really need something server-side
-
Right now I have a site, which I've made XHTML 1.0 Strict. I am sending it as application/xhtml+xml to browsers that say they can handle it, and as text/html to all other browsers. Anyway, I started thinking that I'd much rather send proper HTML 4.01 to browsers that don't understand XHTML instead of XHTML pretending to be HTML 4.01. It's not really a problem with IE, because it is made to handle badly written sites, but who knows, some browser that can handle HTML, but not XHTML, may be (correctly) parsing <p> Hello <br /> World </p> as <p> Hello <br>> World </p> So I was wondering: Is there anyone here who stores their content as XML perhaps (or anything else) and transforms it in some way (with XSLT or anything else)? Any ideas of how I would go about generating an XHTML and a HTML version from one base format. Or perhaps transform XHTML into HTML?
-
Well, if you use JavaScript it will be fast. Really fast, because all the calculation happens server-side. With this calculator you don't have to use PHP, because you don't have to do anything that requires the server's capabilities. Why have the visitor go to the page, fill out the form, send it to the server and then wait for the server to send a reply when you can have the visitor go to the page and fill out the form. If you are learning PHP and want to do things like this, that's okay, but the better solution would be to use JavaScript (which isn't at all as complex as PHP is).
-
As long as you don't have Windows XP Home.
-
I didn't see any topics about it yet Google has released the beta of Google Maps, a handy map thing if you live in the US. Here is a tour, if you want to know what it can do. So far only IE and Firefox/Mozilla are supported.
-
Need Help With My Python Programs just extremely basic stuff
bjrn replied to arcanistherogue's topic in Programming
I have to admit that I know very little about Python, so I don't really know how it would work if you wanted it to jump back to the beginning sometimes. What I can tell you is that you shouldn't use elif's for the bit that you've written so far, once you have some more options on each level you can do that. But those if's you have at the moment should stay if's, because they are conditions that shouldn't be checked before the if before them has been checked. -
If you are having troubles with setting up your own home Apache server, I think getting one of those packages there are is a pretty good idea. There is XAMPP, phpdev and PHPTriad. There are probably more, but those are the ones I know of. All of them are free and have Apache, MySQL and PHP packaged, XAMPP also has Perl. phpdev and PHPTriad are packages for Windows only, while XAMPP has packages for both Windows, Linux and even Solaris. I have only used phpdev, but I think XAMPP sounds really good. Edit: I know phpdev comes with phpMyAdmin as well, I assume the others have it as well.
-
Firefox/Mozilla have some serious RAM hogging issues. If you want a speedier version of Firefox and you're running Windows you could try K-Meleon. It is basically Firefox, but instead of having code which ports easily they use native Windows things. There is also some guy who makes builds of Firefox optimized for Windows, can't remember where you could get those builds though.
-
Open Office Vs Microsoft So thinking of dumping Microsoft Office?
bjrn replied to eiteljoh's topic in Science and Technology
One minute? oO There are very few applications I will allow to take one minute to load, and a word processing application is definitely not among them. -
I hope I've understood it right that you have a number of Objects, and each Object has its own ID. And you have to make something that gets an Object when you search for its ID. In that case I recommend HashTable. Something like: Hashtable objects = new Hashtable();hashtable.put("Object#1", new MyObject()); And this to get an object MyObject o = (MyObject)objects.get("Object#1"); You can think of a HasTable as a table with two columns. One column hold the identifiers/keys the other the Objects. So if you have an Object you call "ob" and "ob" has a public method called "getID()" which returns the ID, and a HashTable you call "ht" then you can store the Object in the HashTable by: ht.put(ob.getID(), ob); Read more here: http://forums.xisto.com/no_longer_exists/