]> Something Witty Goes Here

codedread

Archive for the ‘Questions’ Category

Linking To An Arbitrary Section Of A Web Page

Tuesday, October 9th, 2007

Today I wanted to send a link to a specific location in this web page. If you’re curious, go to the link and search in the page for “square bracket notation”. Unfortunately, the web page does not identify that section in the source. Is there any way to do this with today’s modern browsers (Firefox, Opera, Safari)?

What I’m looking for is something like SVG Fragment Identifiers where you can use XPointer syntax in the URL to navigate to a specific section of a document. Before I spend time learning XPointer syntax, can anyone tell me if any HTML browsers support it as fragments in the URLs?

Another option is to link to a cached page from a specific Google Search, but it still requires the user to scroll down to the highlighted section. It’s a shame that Google doesn’t insert specific anchors into the web page for this very purpose. It might make some web authors angry that Google mucks about with their source, but this is a case where I don’t mind - authors should learn to properly identify portions of their documents. This becomes increasingly important for mobile devices with those smaller screens.

Re-Sourcing Environment Variables in Windows

Wednesday, October 3rd, 2007

I added some Environment Variables to my Windows operating system recently (right-click on My Computer, Properties, Advanced, Environment Variables). I was wondering if there is any way from an existing Command Prompt to pick those up. I know that all Command Prompt instances after this point will have those new environment variables defined, but I was just curious if there was an easy way to get an existing Command Prompt instance to “re-source” its environment variables.

On the other hand, is there any way to add a System Environment Variable to Windows from the command prompt?

How To Create Binary Downloads For Linux Users

Thursday, July 19th, 2007

Ok, so I’ve got a little game I’ve been coding in my spare time. It uses SDL and Boost so that it’s pretty cross-platform compatible. In fact, I’ve built, ran and tested the game in OpenSuse Linux. However, I’m not clear on an easy way of packaging the game up in a download for Linux users. The game has run-time dependencies on expat as well as many SDL libraries (specifically SDL_ttf, SDL_image, SDL_mixer, SDL_gfx, and of course, SDL itself). I’d like something simple, akin to what I do with Windows (which is a batch file that bundles up every file needed, including DLLs, into one ZIP file for download). Can anyone out there help me?

Switching Display of a Running Application in X-Windows

Saturday, June 23rd, 2007

Simple Question: Is there a way to change a running window from Display A to Display B? For instance, if I have an instance of an application running on my Linux box at home, is there a command that will remove the window from the display at home and re-route it my Windows laptop running Xming and PuTTY? Or am I forced to use some VNC to get what I want?

codedread codedread