1. Web Browser code in C#

    Date: 07/12/07 (Computer Geeks)    Keywords: browser, web, microsoft

    No Microsoft flames, if you please - this project has a requirement that it be .Net in C#.

    I'm looking for a starting point: a web browser written in C# that I can then customize for a proof of concept. I've checked CodeProject, but nobody's written a decent one that I can see.

    Encapsulating the System.Windows.Forms.WebBrowser object in .Net 2.0 would be more than good, if the project then hooked all the events and provided customizable controls.

    The goal here is to then add logic that does pre-processing on web pages as they come in.

    Other than CodeProject, does anyone have a suggestion on where I might look for available code?

    Source: http://community.livejournal.com/computergeeks/1087873.html

  2. Web Browser code in C#

    Date: 07/12/07 (C Sharp)    Keywords: browser, web

    I'm looking for a starting point: a web browser written in C# that I can then customize for a proof of concept. I've checked CodeProject, but nobody's written a decent one that I can see.

    Encapsulating the System.Windows.Forms.WebBrowser object in .Net 2.0 would be more than good, if the project then hooked all the events and provided customizable controls.

    The goal here is to then add logic that does pre-processing on web pages as they come in.

    Other than CodeProject, does anyone have a suggestion on where I might look for available code?

    Source: http://community.livejournal.com/csharp/85332.html

  3. JavaScript Pong

    Date: 07/13/07 (Javascript Community)    Keywords: programming, browser, html, asp, java, web, seo

    I wrote a JavaScript/XHTML based Pong game- mostly a proof of concept. I'm going to use this as the base of a browser-based Mario Brothers clone (not SUPER Mario- I'm not going to make this damn thing scroll if I can help it). That's a long-run project though. For now, I've got some basic plumbing done. It's got some bugs, etc- but I figured that since I had a (mostly) working library, I'd post my work so far, and share out the code.

    Take the game for a spin, and grab the code.

    Masturbatory Pong - My Design


    The design of my XHTML/JavaScript game can be broken down into several areas. What we'll do is examine each area in turn, discuss some of the whys-and-wherefores, and get a feel for how you can recycle that code later.

    General Design Goals


    The biggest design goal was reusability. To make reusable and flexible code, the biggest rule is weak-coupling. Nothing should have any dependencies on anything else. To meet that goal, I aggresively applied OOP principles and Aspect Oriented Programming. Some of this breaks down on the game itself, simply because that section contained application specific code, and I didn't care that much at that point. It's still weakly coupled, but not cleanly written.

    Program Components

    Core


    The DOM has all sorts of annoyances- mostly created by browser incompatabilities. Every developer, in every language, starts to develop a library of utility functions that they use again and again. In my case, the utility/library functions are contained in a file entitled DOMhelp.js.

    Originally, this file came from a book on JavaScript(Beginning JavaScript for Practical Web Development, Including AJAX). My incarnation bears little resemblence, save for event-management. It provided good utilities for handling events in a browser-independent fashion.

    The DOMhelp file contains a DOMhelp object literal. This is where the DOM event management code goes, as well as my custom functions. The important ones, for this application, are the "getControlLocation" and "translateClientToElementCoords". These are used to translate coordinates from the page area on screen to the element that will contain the game.

    Also in that file is the EventSource aspect. These sorts of functions are my approach to AOP in JavaScript. It takes a class as its parameter and appends a bunch of functions to that class prototype- in this case, it appends functions for managing and firing events. At some point, for performance, I may modify this to have the event-firing event code run in a seperate thread. As it is, it works fine so long as there aren't many listeners. It's a pretty standard implementation.

    This is my growing library of supporting code that I use in nearly every application.

    Animator


    The animator components are split across three major files, each specific to one function. The animator API is built around Sprites that can do their own frame management and collision detection, etc. Everything else is built to support those functions.

    Sprite.js

    The Sprite - General

    This was my starting point for designing this library. The Sprite class should do as little as possible- it should focus on rendering and providing the graphical aspects of the application. Any other functionality it requires should be appended via Aspects.

    The constructor requires a great deal of information, and all the parameters are documented. The only one that's really critical is windowFrameId- this tells the Sprite where to render its details.

    The Sprite - Frames

    For visual behaviors, the Sprite class tracks frames- each frame is stored in memory as an IMG element (for pre-loading). The Sprite tracks the frames in a set of arrays- each array represents a "frame-set"- a group of related frames that should display in a sequence. If you think of Super Mario, one series of frames plays when he walks left or right, jumps, or shoots a fireball, etc. It's all one Sprite, but different animations play based on the current application state.

    Frame-sets are defined when frames are added- the "addFrame" method takes a frame-set as a parameter. If the parameter isn't set, the Sprite puts frames into the default frame-set. In the case of the MPong application, we only use one frame-set for every Sprite. It would, however, be trivial to add more frames and frame sets to make a more graphically exciting game. I will probably updated it with better graphics and add logic to the collision detection system to switch between frame-sets to provide visual feedback.

    The Sprite gets quite interesting in the rendering process. Before we can really look at the rendering process, it's important to discuss the three aspects also defined in this file and their role in the process.
    The Sprite - Aspects

    The core Sprite code assumes that the Sprite has a location, a size, etc. but isn't responsible for maintaining those values. These values are appended to the Sprite class via Aspects. The Changeable aspect is the base here- it adds a boolean to track if the Sprite is "dirty"- only render dirty Sprites (for performance). A sprite HasLocation, HasSize- these are the keys for rendering. These allow us to track the position and size of a Sprite- which can then be rendered using floating DIV elements.

    It is worth noting the CollisionDetection Aspect, even though it has nothing to do with rendering. Based on the size and position of a Sprite, it has a collection of methods to check for collisions. Right now, it only supports rectangle-boundary collisions, but this could be easily expanded- without altering the Sprite class. This flexibility is why I chose to use Aspects.
    The Sprite - Rendering

    The "render" method is the entry point for the rendering process. It only does something if the Sprite has been marked as "dirty" (changed==true). If you glance through the code, you'll notice that changing frame-sets, advancing between frames, changing positions or sizes will all dirty a Sprite.

    Sprite rendering actually focuses on the "getContainer" method- this one is responsible for the real work of interacting with the DOM. This is the lowest-level method in the Sprite. It operates as a Factory Method wrapping a Singleton design pattern. It only creates the "container" once- a DIV element appended to the "windowFrameId" element. The "renderFrame" method is strongly-coupled to the structure of this DIV and its children, but that's trivial- the "getContainer" method just needs to always ensure that the first child of the container is the IMG responsible for displaying the current frame.

    Caveat: This does not set a z-order on the element. This is probably something that should be added (especially because z-order used in conjunction with a scaling logic could create "3D" UIs).

    Once we've got the container, "render" calls out to its Aspects to handle the job of positioning and sizing the DIV- again, we want the Sprite to be responsible for looks and looks alone. We'll rely on appended Aspects for the positioning/sizing logic. Once that's done, "renderFrame" is invoked- it simply updates the SRC of the IMG holding the frame. I'm fairly certain this is more effecient than modifying the DOM tree, but I haven't benchmarked it out.

    motion.js

    Movement - General

    I've said this a lot, but one more time- the Sprite should only be responsible for rendering itself. All other logic should reside elsewhere. For logic that the Sprite directly depends on- like size and position- it does reside in the class via Aspects. Movement is a complex area, and it should be even more weakly coupled to the Sprite.

    For this reason, I used a Provider model. The general formula is that a Provider tracks a list of sprites. It contains some algorithm for repositioning those sprites. The skeleton of this code is implemented in the GenericMotionProvider- "move" being the main method for the algorithm. What is important to note is that the GMP does not contain any logic for actually moving. It invokes an abstract method, "provideMotion". This should be implemented in child classes.

    There are two child classes in the API at this time- certainly something I intend to expand. One is a LinearScrollMotionProvider, responsible for any straight-line one-direction motion. The other is a MouseMotionProvider, which allows mouse-following motion. This last would be trivial to modify into a drag-motion provider.

    The biggest disadvantage to the design as it stands now is that the timer-driven providers (LSMP) have to be registered with a Clock, but event-driven providers (MMP) don't. This means that the client-code has to know which is which- I should probably modify this so that timer-driven providers take a clock in their constructor and register themselves, and not have the client code responsible. Fortunately, there's nothing explicitly wrong with registering the MMP with the Clock- it would just cause one more positioning cycle than is required. With something like the MMP, which is tracking a large number of events, one more cycle probably won't hurt performance much.
    Motion - LinearScrollMotionProvider

    The LSMP focuses on three major numbers- vert, horiz and increment. Wrap explains what to do when you reach the boundaries of the cavas area- if wrap is true, wrap around to the other side. Otherwise, stop.

    Vert, horiz and increment all work together to represent a motion vector. The math is simplified, but that's the essential purpose. Vert represents the extent of the of the vector in the vertical axis, horiz in the horizontal. Increment is the "scaling factor" on the vector. This does have one disadvantage- changing the vert or horiz values can change the speed. In MPong, that's fine- actually desired. It may be wiser, however, to implement a general-case version that uses vert/horiz as a ratio and increment controls the speed directly.

    Another flaw in LSMP is that it always calls setPosition, and hence always marks the Sprite as dirty. Again, in MPong, this isn't an issue- the ball always moves, so is always dirty and must be rerendered. In other applications, this could have a significant negative performance impact.
    Motion - MouseMotionProvider

    The MMP also tracks a vert/horiz parameter- these are multipliers to control the rate of motion versus the mouse. In most applications, these should be either zero or one- in MPong, the vert component is always 0, horiz is always 1. Other values can be used- for example, setting horiz to 2 means that for each pixel the mouse moves, the sprite would move 2.

    We may not want the sprite directly attached to the mouse- hence the offset parameter. Offset just specifies an x/y offset that can be any value. In MPong this is used as a "fudge" factor to make sure the Sprite lines up better with the mouse.

    This is one of the buggier segments in the Animator API. It's difficult to get the movements tracked properly- if the mouse moves too fast, the Browser might drop some MouseMove events- a critical problem if the mouse is moving out of the bounds of the game area. Hence fudge factors like "offset". Before the MMP starts providing, "registerMouse" must be called- in MPong, I call it relative to the BODY of the document- so all motions must be tracked that way. I attempted to tie it to MouseOut events as well- which would have allowed me to track it within the game area instead, but that just didn't work. Since MMP relies on the client positions and translates them to the containing element, this isn't a problem.

    Really though, MMP needs to be re-written before production use. It works well enough, but I wouldn't trust it not to break down if someone starts to do anything interesting with it.

    clock.js


    The Clock is very simple. It simply uses "setInterval" to schedule repeated callbacks to its own "fireEvent" method (imported via the EventSource Aspect). This is a nice event-driven clock, which makes it easy to tie the game functionality into it. There's not much there.

    Game


    MPong is a test-case for the Animator API. While a very simple game, it provides enough complexity to give a reasonable test of the Animator API. A few moments of play will reveal that it's not much as games go- dull, uninteresting without an uneven challenge level (the ball sometimes crawls, or builds up to ridiculous speeds). Despite this, it does a good job of demonstrating a realistic use of the Animator API, as well as some applicable design patterns.

    Paddles


    Paddles are merely raw Sprites. They are tied to an instance of the MouseMotionProvider class, and hence follow the mouse. There's nothing really exciting here.

    Ball


    The Ball is a bit more interesting. There's a few layers here- the Ball exhibits some complex behavior. It needs to bounce, detect when it's fallen out of bounds into the scoring area, etc. The bottom layer is the Sprite used to represent the ball. A few areas of the game directly interact with the Sprite- the Pong class is directly responsible for triggering its rendering process, for example. Instead of weighing down the implementation of the Ball with inheritance, I simply tracked two objects- the ballSprite and an instance of the Ball class. There's no strong relationship between these classes at all- the Ball simply wraps around any Sprite and provides Ball behaviors. It does not alter the prototype or the instance- it just operates on the Sprite's properties. In this, it's similar to the Decorator pattern, but without the strong ownership implied by the pattern.

    The Ball class owns a reference to the ballSprite, as well as its own private LSMP instance. Remember, LSMP works for any linear motion that can be represented as a constant vector. The Ball delegates all motion tracking to this provider and contains all the bounds-checking logic in itself. After letting the LSMP tell the Sprite where to go, the Ball checks that position- if the Sprite is impacting on one of the boundary walls (Left/Right), it reverses the sign on the LSMP's horiz vector component- "reflecting" the ball. If the ballSprite impacts on a paddle, it does the same to the vert component- again, "reflecting" the ball. Finally, if the ball hits a scoring area, it fires an event to announce this. It's the responsibility of the game to handle reseting the board. At the moment, I'm double checking the bounds, since it checks the bounds for every paddle. Again, for this application, that's not a problem, but with a large number of potential collisions, that could become very inefficient.

    Pong


    With all this functionality pushed into classes, all the Pong class really needs to do is make sure it's providing the key plumbing. It tracks a Clock, which tells it to render. It calls out to the Sprites, the Ball, etc. for all the logic. It simply needs to track the "globals" like the current score, register events, and so on.

    Problems


    In addition to a few of the problems I've discussed above, there's a few more serious flaws. It appears that on the first viewing of the page, the bottom paddle falls outside of the gaming area. Strangely, a refresh fixes that. Why? Why would a refresh even do anything? I'll have to track down exactly what's wrong there.

    There's also something wrong in the Ball motion logic- specifically something having to do with bouncing off the right wall- sometimes, and for no reason that I can determine (yet), it just sticks to the right wall and stops. I think it happens when the ball is moving too fast on the horizontal axis.

    The final issue isn't my fault, I swear. I left an early version of the page running in Firefox overnight. After 16 hours- it leaked memory like sieve. My system (Windows 2000- yes, I know) came down hard. There's really nothing I can do about that, and I can't imagine anyone playing this for 16 hours- but it's worth noting that it happens.

    Source: http://community.livejournal.com/javascript/135865.html

  4. Firefox Tip: How To Change “Do This Automatically For Files Like This From Now On” Option

    Date: 07/14/07 (Java Web)    Keywords: browser

    In Firefox when you click on a file to download / view the browser comes up with a prompt which allows you to either open the file with a specified program or save it to disk. You are also given the option to “Do this automatically for files like this from now on”. Once you [...]

    Source: http://blog.taragana.com/index.php/archive/firefox-how-to-change-do-this-automatically-for-files-like-this-from-now-on-option/

  5. IE messing everything up

    Date: 07/14/07 (WebDesign)    Keywords: browser, web

    Sorry, I am almost done with the page now but I have one more (hopefully simple) question:

    Here is the page so you can see what I mean.

    I have been working with the latest Firefox on a PC to make this website. Now that I'm almost done and it's ready to go onto the actual classics department address I decided to check how it looks on every computer I could find. I checked on IE on another PC and a Mac, in Firefox in another PC and Mac, and on Safari on a Mac. It worked, for the most part, pretty well on all the browsers and different resolutions except one glaringly huge problem with IE (of course). The main links (with the drop-down menus) don't have enough space and the last link is going directly below the first one, and of course messing up the menus. Is there any simple way I can make this work on IE without having to make the entire site (table) wider? Or is that the easiest way?

    Thank you once again,
    Courtney

    Source: http://community.livejournal.com/webdesign/1282184.html

  6. CSS Drop Down Menus vs. Flash Object

    Date: 07/16/07 (WebDesign)    Keywords: browser, css, java, web

    Hello everyone! I just joined this community (I'm actually surprised I've never joined earlier). At any rate, I've been a web designer for several years but, as it goes, we all run into problems at some time or another. I had originally posted this problem in my personal journal and on MySpace, but got no bites. So, I thought I'd try here. Any suggestions would be greatly appreciated! Here is the problem:

    I'm working on a project for my job in which I've created all CSS drop down menus (no javascript). Unfortunately, right below them, there is a flash slide show, which is an embedded object. It is a known thing that flash objects always appear on top of everything else, hence the drop downs get covered by the flash. I applied the 'name="wmode" value="transparent"' param to the flash object. I also added a negative z-index and position attribute to the object's styles. BUT, these solutions only seem to work in IE for windows. In Safari Firefox, and Opera the menus are covered while the flash slideshow is moving (when the picture is still, it is fine though).

    SO...my question to you people who may have had experience with this is... is there any other solution to fix this in the rest of the browsers that aren't IE? Any help would be greatly appreciated!

    Thanks so much! :-)

    Source: http://community.livejournal.com/webdesign/1282985.html

  7. Equal divs & Firefox

    Date: 07/16/07 (WebDesign)    Keywords: browser, css, web

    I'm working on a layout and I've run into a rather annoying little snag when I was checking to see how it worked across three browsers (IE, FF, and Opera).

    That is, in Firefox, the divs don't line up.

    The idea is to have the gray background behind the content/sidebar line up equally and extend to the bottom of the page. The header that says "Navigation" above the links has also disappeared entirely.

    http://www.freewebs.com/celestial-trance
    http://www.freewebs.com/celestial-trance/style.css

    This problem is isolated to Firefox, as it displays the same in both IE and Opera.

    How can I fix this problem so it will display correctly in FF?

    Source: http://community.livejournal.com/webdesign/1282595.html

  8. Dynamic Detection?

    Date: 07/19/07 (C Sharp)    Keywords: browser, web

    I'm looking for a good article that will help me do the following:

    I have an application that has a toolbar. The toolbar contains a number of objects derived from ToolStrip.

    I would like to put each ToolStrip object into its own assembly and deploy them with the main application. At run time, I would like the main application to enumerate all of the DLL files and detect which of them contain one of my ToolStrip objects. To make this work, I suspect I'll have to have each object also implement a known interface that I can create that will positively identify it.

    I can then load the DLLs, instantiate the objects in them and use them. This will allow me to push updates with xcopy deployment and allow other developers to develop toolbars as well.

    So I have a general idea how to do this, but if anyone knows of a good article on this technique, that would be terribly helpful. I've scanned CodeProject already, but I might have missed it.

    PS: Thanks for the suggestions on the web browser code. I did find some example code that got me on my way (and this is part of that project, in fact).

    Source: http://community.livejournal.com/csharp/85896.html

  9. Transparency in IE

    Date: 07/21/07 (WebDesign)    Keywords: browser, web

    Hi all,

    I recently added a background image to a client's website, and at the same time, I changed the backgrounds of some pictures (a banner, a line separating the links bar, a picture...) from white to transparent, so that the background would show through normally.

    Bizarrely, when she looks at the site in IE, she says she sees gray boxes in place of the transparency. Site looks fine in any other browser--we've tested firefox and Safari thus far.

    Anyone have a similar experience/know how to correct this?

    If you could take a minute and view the site and let me know if the transparency is showing up properly for you (and what browser you're using), I'd appreciate it. www.juliamannes.com

    Source: http://community.livejournal.com/webdesign/1286735.html

  10. questions

    Date: 07/24/07 (WebDesign)    Keywords: browser, css, web

    Hi all, I'm working on a website for a freelance client and have run dinto a couple of snags. I'm hoping someone more knowledgeable than I can help:

    1. Is there a way to target a link to open in a new tab of a browser, instead of in a separate window?

    2. Is there an easy way to indent something? The tab key isn't working for this, and I could insert nonbreaking spaces, but it makes the code kind of sloppy in terms of having someone else update the content. Is there a way to do this, either with or without CSS?

    I'm using Dreamweaver MX2004 as well as doing some hand-editing of the code. The site will eventually be updated by someone else, so I'm trying to keep it fairly simple.
    Thanks!

    Source: http://community.livejournal.com/webdesign/1287554.html

  11. .htaccess

    Date: 07/25/07 (Web Development)    Keywords: php, browser, html, web, hosting

    So I recently changed the extensions of all of my web pages from HTML to PHP. This was good because I could finally do proper headers without the validator bugging out at me. Unfortunately, it also means I have twice the number of files in my directory - those with .html extensions and those with .php. The HTML files are needed to say "Oh yeah hey just change the extension of the page you're looking at to .php and you're good to go". The easy way to fix this, I thought, was to delete all of the HTML pages and set up a custom 404 page that could say the same thing with just one file, but as of yet it hasn't quite worked. I made a .htaccess file that says the following:

    ErrorDocument 404 404.html

    With 404.html being the 404 page, obviously. I uploaded them both into my directory (I don't have my own domain; someone's hosting me but I kinda haven't talked to my hostess in a while) and the files are... well, there, but if I go to a made up address it just gives me the default 404 page. Anyone know what's wrong? I read somewhere that the permissions have to be set to 644, and I think they are - when I go to the chmod command after right clicking on a file I get rw-r--r-- (er sorry if my syntax is wrong, but yeah it's 644). However, if I click OK, WS_FTP gives me this error: 500 'SITE chmod 644 .htaccess': command not understood ! Chmod failed. It may not be supported on remote host.

    I'm not really sure if that's relevant to anything, since it seems like it's 644 anyway, but... yeah. Also I'm not entirely sure if this is an error but if I type in the URL of the .htaccess file into the browser (http://www.example.com/directory/.htaccess) it says it can't find the file, even though I know it's there.

    Sorry for the long post, but yeah hopefully someone can help me...?

    Source: http://community.livejournal.com/webdev/424232.html

  12. Biggest Internet Explorer Problem With Javascript

    Date: 07/26/07 (Java Web)    Keywords: browser, java, microsoft

    You would be surprised to know that the biggest Internet Explorer issue I am facing while writing rather complex cross-browser javascript code is related to just a comma. In javascript array if you add a comma after the last element in the array then Internet Explorer fails with a variety of undecipherable (Microsoft style) error messages. [...]

    Source: http://blog.taragana.com/index.php/archive/biggest-internet-explorer-problem-with-javascript/

  13. Site testing?

    Date: 07/27/07 (WebDesign)    Keywords: browser, web

    I was wondering if you guys would be so kind as to proof a site for me. Everything on there should work - the only thing that doesn't is the Corepoint Associates site. (Turns out my client shut their doors & took their site down -- didn't know that until this morning. oops)

    Anyway, if you guys have time & can just take a walk through, let me know what you think, all that good junk, I'd really appreciate it. If you decide to comment, please let me know what browser & OS you're using and what kind of internet connection you run on so that I know how I'm doing on my cross platform. (It's been short notice, so I'm totally not Mac tested. Screencap if I'm off on the Mac, I'll fix it as soon as I can.)

    InstigatorInk.com


    Thanks for the help!

    x-posted to webdesign & graphic design

    Source: http://community.livejournal.com/webdesign/1290180.html

  14. Solutions: Internet Explorer 6 Visibility Bug With ExtJS ComboBox on Toolbar

    Date: 07/30/07 (Java Web)    Keywords: browser, java

    An Ext JS, a beautiful Javascript Library, ComboBox on a Toolbar fails to display when the browser window is resized or there is another div with 100% width. The problem is most likely related to resizing of the Toolbar which causes the ComboBox to stop displaying. There are several ways in which the defect can be [...]

    Source: http://blog.taragana.com/index.php/archive/solutions-internet-explorer-6-visibility-bug-with-extjs-combobox-on-toolbar/

  15. How to open links in a new tab/window

    Date: 07/31/07 (WebDesign)    Keywords: browser, html

    Using XHTML (Transitional), can anyone tell me how to specify so that in a browser that uses tabs ie Firefox, a link will open in a new tab, or otherwise it will open in a new window?

    Source: http://community.livejournal.com/webdesign/1290926.html

  16. Solving: Permission denied to get property HTMLDivElement.nodeType when calling method: [nsIDOMEventListener::handleEvent] nsresult: 0×8057001e (NS_ERROR_XPC_JS_THREW_STRING) location: data: no

    Date: 07/31/07 (Java Web)    Keywords: browser

    This is a sporadic error that I have seen in Firefox browsers while using the Ext JS components. It is not harmful in any way but is annoying. It is filed as a Firefox defect and has been fixed for 3.0a5pre. In the earlier version here is how you can fix it for Firefox. Adding autocomplete=”off” [...]

    Source: http://blog.taragana.com/index.php/archive/solving-permission-denied-to-get-property-htmldivelementnodetype-when-calling-method-nsidomeventlistenerhandleevent-nsresult-0x8057001e-ns_error_xpc_js_threw_string-location-data-no/

  17. Intranet/Apache/IP issue

    Date: 08/01/07 (Web Development)    Keywords: php, mysql, browser, sql, apache

    ok, this is getting posted a few places because I'm head/desk-ing all over the place on it.

    Have Intranet, Intranet is based around an OS X Mac running Apache/PHP/MySQL. Was working fine, OS X server (just regular OS X but the machine is designed to work as a server) was at someone's house. Worked fine with the IP it had there and everything pointing to it, which was actually the IP of the router it was connected to I believe. This was the ServerName address in httpd.conf . Server moved to small office, BOOM.

    Updated the ServerName value in httpd.conf to the proper IP for the machine, however if you try and go to that IP (how the intranet works there, via the browsers connecting to that ip then going where they need to from the index page there) it gives a "Forbidden" error (don't think it's even a 403) and says that you don't have permission to connect to the OLD IP address. I don't understand this, we even disconnected it from the internet to see if it was even actually trying to connect to that IP and no, same error. Anything else and it says it cannot be reached when the uplink is disconnected, so definitely a problem on the server somehow. On top of that, localhost and 127.0.0.1 will work, the machine will reach out to the internet and can be mounted in internet explorer with the \\servername\path\etc., however this won't let us access the PHP processor to display the pages, just the files themselves.

    Is there anywhere else that a problem like this could lurk? Just uninstall Apache and re-install? I've never removed Apache from a machine or done a make of apache or anything else on a mac so I'm not exactly sure how to if that would even help. Really don't understand what's going on and I need to get this up ASAP. :( Any help please? Will repay in kind somehow, not monetarily but somehow (work, knowledge, something).

    Thanks!

    Cross posted all over sort of.

    Source: http://community.livejournal.com/webdev/425477.html

  18. Intranet/Apache/IP issue

    Date: 08/01/07 (PHP Community)    Keywords: php, mysql, browser, sql, apache

    ok, this is getting posted a few places because I'm head/desk-ing all over the place on it.

    Have Intranet, Intranet is based around an OS X Mac running Apache/PHP/MySQL. Was working fine, OS X server (just regular OS X but the machine is designed to work as a server) was at someone's house. Worked fine with the IP it had there and everything pointing to it, which was actually the IP of the router it was connected to I believe. This was the ServerName address in httpd.conf . Server moved to small office, BOOM.

    Updated the ServerName value in httpd.conf to the proper IP for the machine, however if you try and go to that IP (how the intranet works there, via the browsers connecting to that ip then going where they need to from the index page there) it gives a "Forbidden" error (don't think it's even a 403) and says that you don't have permission to connect to the OLD IP address. I don't understand this, we even disconnected it from the internet to see if it was even actually trying to connect to that IP and no, same error. Anything else and it says it cannot be reached when the uplink is disconnected, so definitely a problem on the server somehow. On top of that, localhost and 127.0.0.1 will work, the machine will reach out to the internet and can be mounted in internet explorer with the \\servername\path\etc., however this won't let us access the PHP processor to display the pages, just the files themselves.

    Is there anywhere else that a problem like this could lurk? Just uninstall Apache and re-install? I've never removed Apache from a machine or done a make of apache or anything else on a mac so I'm not exactly sure how to if that would even help. Really don't understand what's going on and I need to get this up ASAP. :( Any help please? Will repay in kind somehow, not monetarily but somehow (work, knowledge, something).

    Thanks!

    Cross posted all over sort of.

    Source: http://community.livejournal.com/php/578944.html

  19. stupid red dots

    Date: 08/05/07 (Mozilla)    Keywords: php, browser

    Is anyone else in LJ land having this problem?

    http://forums.mozillazine.org/viewtopic.php?t=550047

    This used to happen randomly on my old version of Firefox as well. But ever since Firefox v2.0.0.6, I can't get rid of those ugly, red-diamonded, image placeholders. I used to be able to get rid of it simply by clearing my cache and restarting my browser, but that doesn't work anymore.

    Is this a bug, or has Firefox changed their image placeholders?

    I'm using Windows XP, if anyone cares. And I'm new, btw. *waves* firefoxusers has suddenly disappeared, so I seek refuge here.

    Source: http://community.livejournal.com/mozilla/393292.html

  20. ie Centering

    Date: 08/05/07 (Web Development)    Keywords: browser

    I'm working on a site. I am just at the main layout part and for some reason in Internet Explorer on a PC the top part is not centering. Just in IE for PC. It's not like a browser i can ignore.

    I currently have it coded in a table that is in a table that is 100% wide (so the pattern in the back can be repeated no matter what size your window). My center tags are all on...yet still it does not cooperate.

    Ideas? Suggestions? "Nikki you fool, you forgot..."?

    http://www.straightedgetest.checkoutmypage.com/

    Source: http://community.livejournal.com/webdev/425947.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home