Wikipedia:Reference desk/Archives/Computing/2006 November 22

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Computing desk
< November 21 << Oct | November | Dec >> November 23 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.

November 22[edit]

Bypassing blocked website[edit]

Hi, my school has blocked te video site YouTube. It uses the Novell Server blocking program. Is there anyway I can bypass this? The Ayatollah 01:33, 22 November 2006 (UTC)

While I don't encourage bypassing of blocking programs, which are probably in place for a reason, you can possibly access YouTube by using www2, www3, or www4 instead of www before the main URL. --McMillin24 contribstalk 04:33, 22 November 2006 (UTC)
Google for a cgiproxy server. [1] also has info.-- 19:13, 22 November 2006 (UTC)

Java: Finding invalid dates given a monthly pattern[edit]

I'm doing an outlook-style scheduling type thingy (best way I can think of to explain it). Given a date range:

[start,end] or
[start,) or
[start,x occurrences]

and a pattern of day y every z months (y=1..31, z=1..99), determine whether or not all days can be represented in the gregorian calendar. So if I chose to say, "the 29th day every 2 months starting December 1999 ending December 2002," February 29th, 2000 would be fine (since it's a leap year), but February 29th 2001 doesn't exist.

Things get even more complicated given the 30th (or something) day every 7 months starting March 2006 occurring indefinitely, as by my quick calculations there wouldn't be an issue until February 2009 (which doesn't have a day 30).

I could always run through an arbitrary number of days, adding months upon months to an instance of java.util.Calendar until I either reach a certain number of occurrences or calendar.get( Calendar.DAY_OF_MONTH ) != originalDayOfMonth (The Calendar object rolled over), but that's no fun!!! :). Ideas on how to approach this? --Silvaran 01:41, 22 November 2006 (UTC)

I'm curious what you want to get back from this method. A collection of dates in the pattern you want? Your title suggests you want to know the invalid dates. - (Nuggetboy) (talk) (contribs) 01:52, 22 November 2006 (UTC)
I'd like to get back either a true or a false :). true meaning that at least one invalid date will be encountered (and maybe include the first invalid date encountered), false meaning we're guaranteed not to hit an invalid date all parameters considered. --Silvaran 04:00, 22 November 2006 (UTC)
So then for y, it appears your sore spot is only going to be the three outliers: 29, 30, 31, right? 28 and below you can assume will always be OK. 0 and >=32 are invalid. Assuming this, you probably want to look at Leap Year and get the algorithm for that. Then, if it were me, I'd use a 12-cell int array pre-populated with the day-counts of each month (which will be constant through each year) to check for the existence of months without 31 days and check isLeapYear() for when you run into February. To me, I think you're going to have to do some sort of boring iteration (in increments of z) through months, checking to see if it's February and, if not, if it has 31 days, etc. Tell me if I'm way off from what you're looking for. I will say this: unless you are doing this for an assignment or as a trivial exercise, it's always best to use the available libraries if they will fit your needs. Don't reinvent the wheel. - (Nuggetboy) (talk) (contribs) 04:19, 22 November 2006 (UTC)

My two cents: if I entered something like those examples into your program, I'd be expecting any event on "February 29" when February 29 doesn't exist to be placed onto February 28, wouldn't it? Because it would be weird to have an event that just disappears for a month. enochlau (talk) 12:29, 22 November 2006 (UTC)

It sounds like Silvaran wants the function to just return a boolean. True meaning there was an "invalid" date encountered within the range indicated. I see value in what you suggest as well. - (Nuggetboy) (talk) (contribs) 14:14, 22 November 2006 (UTC)

My take on this: As noted above, the cases where the day is <= 28 are trivial. For cases where the day is 29, 30 or 31 a bit of work is needed. While you can do all sorts of clever tricks (for example, if the frequency z is coprime with 12 then given a long enough run, every month will be hit) it is worth noting that for implementing this the brute-force-and-ignorance approach would be fine as you only every need to look forward at most 12 repetitions, as the 13th event will always be an integer number of years after the first: if we number the events starting from 0, then the ith instance is months after the first, thus the 13th event (i=12) is 12z months = z years after the first. -- AJR | Talk 14:16, 22 November 2006 (UTC)

Actually, my "12 repetitions are enough" idea fails when one of the repetitions falls on 29 February in a leap year, but it is fine when the day is 30 or 31, or when the day is 29 and no February is encountered in the 12 repetitions. Leap year handlign needs a bit more thought (especially with the "years that are multiples of 100 are not leap years unless they're multiples of 400" rule to complicate things.) -- AJR | Talk 15:05, 22 November 2006 (UTC)
These are some fantastic responses. I like Nuggetboy's suggestion about pre-populating day counts for each month (and a special case for February)--I think I can coerce something out of the Calendar class so I don't need to implement any of my own leap year logic. I'm also going to explore the AJR's coprime suggestion (lcm maybe?), though I'd likely still need a special exception for February. February might get hit, but it might always be on a leap year for the first 19 hits (2000, 2004, 2008), but I wouldn't encounter a non-leap year divisible by 4 until 2100 :). I think I'll request a revision to restrict the interval length to < 12 (ie: You can say every 11 months, but not every 12+ months, as the utility of this "feature" would be in question). Thanks everyone! --Silvaran 14:51, 22 November 2006 (UTC)


I have been programming in Java for about a week now at school. For the holiday break, I am at my mom's and am able to use a Windows based computer to use JCreator, the easiest JDK editor I have tried (plus, it's what's used at school). To test if it was working on this computer, I made a quick "Hello World!" program. I was surprised to get an error saying

Error : Invalid path, \bin\javac.exe -classpath "C:\Program Files\Xinox Software\JCreatorV4LE\MyProjects\hello\classes" -d C:\Program" Files\Xinox "Software\JCreatorV4LE\MyProjects\hello\classes @src_hello.txt"

I don't really know what it means and I have looked over my program several times and it has all the necessary components. What's wrong? schyler 01:55, 22 November 2006 (UTC)

Is that exactly how the error looks? Because it looks like there are too many quote marks (") in that error, I'm only guessing but there should not be quote marks after Program and before Software. Don't know how you can fix it but that might be enough of a clue. Vespine 02:54, 22 November 2006 (UTC)

That is exactly how it looks, minus the italics and being on several lines. Any thoughts? schyler 05:40, 22 November 2006 (UTC)

It looks like it's not finding a file needed to do the compilation. First, make sure all those directories really exist. Then try to figure out what files it's looking for in each directory and if they are there. Does it come with a sample program and instructions on how to compile that ? If so, see if that works, then figure out what you're doing differently. StuRat 06:39, 22 November 2006 (UTC)
Also, if those extra double quotes really do display in the error message:
C:\Program" Files\Xinox "Software\JCreatorV4LE\MyProjects\hello\classes
...then that might be a sign that you're having a problem with long file name support, specifically spaces in directory names. It looks like the compiler is taking a space in the name to mean one compiler argument has ended and a new compiler argument has started. Try putting each of the file names inside double quotes to prevent this. You could also try single quotes. StuRat 06:46, 22 November 2006 (UTC)
See jCreator FAQ. (Hint: when you get an error like "Error : Invalid path" just type it into google, with the quotes. Someone else must have had the same problem earlier.) Weregerbil 11:20, 22 November 2006 (UTC)

Took some trial and error, but it "works" now. Only thing is, when I choose to run the program, it outputs it in some "General Output" box in JCreator. How can I get it to run in an MSDOS kind of window? Schyler 14:22, 22 November 2006 (UTC)

Aren't you going to tell us what the solution was ? StuRat 18:39, 22 November 2006 (UTC)

Oh yes. I guess that would be nice of me. The problem was that on the computer with JCreator (I have my MacBook and a Windows based desktop computer sitting right here next to eachother because NetBeans sucks) did not have Java SDK, it only had Java Runtime Enviroment. schyler 23:38, 22 November 2006 (UTC)

In terms of the "General Output" error - just looks like you don't have javac or one of the other three primary Java runtime files installed.

Stuck Memory Card[edit]

I have a Toshiba Satellite T1300 laptop. I tried putting in a Memory Stick Duo into its memory card slot on the front. It apparently can handle both the big memory sticks (like the one from my digital camera) and SD cards which are much shorter, but don't go all the way in. When I tried putting the Memory Stick Duo in, it went all the way in. How should I get it out?--the ninth bright shiner talk 02:30, 22 November 2006 (UTC)

I'm not sure this will work, but have you tried gently pushing it in again? In some cases they pop out like a toggle switch. --Kjoonlee 02:35, 22 November 2006 (UTC)
No, I don't think that works. Even if it did pop out, I doubt it would pop out enough to actually be grabbed.--the ninth bright shiner talk 02:42, 22 November 2006 (UTC)
My mom's cameraphone uses a microSD for storage, and it goes all the way in so that you can't grab it. If you push (instead of pull) it pops out enough to be grabbed. --Kjoonlee 03:08, 22 November 2006 (UTC)
Well, the slot on the laptop seems rather snug, and nothing really moves around unless you pull or push it...--the ninth bright shiner talk 03:27, 22 November 2006 (UTC)
Haha, believe it or not. I'm having a similar problem. There is a remote for my laptop that is supposed to fit in the memory card slot when not in use. Now I can't get it out!!! --Wooty Woot? contribs 08:45, 22 November 2006 (UTC)

Optical disc authoring[edit]

I'm releasing an album soon (independently), and I was wondering if anybody here knew the best options for CD-Rs, that is, the best brands, the best software for writing, the best software for reading. Many thanks. Someoneinmyheadbutit'snotme 03:27, 22 November 2006 (UTC)

What kind of run are you looking at? If you want more then 50 you are definitely better off looking at having it pressed. Get a few local music magazines and you should find heaps of places advertising that master and press CDs. This used to be quite expensive but these days prices are very reasonable and places have deals, like package artwork, sleeve printing and the like. You'll get pro looking results and trust me, there are things you would rather be doing then manually burning 100 CDs, even if you get a 'system' going. Vespine 22:00, 22 November 2006 (UTC)
Well, regardless, I'd still like to know for mastering at least the first few. Someoneinmyheadbutit'snotme 18:16, 23 November 2006 (UTC)

Computer problem[edit]

Hi I bet you're always taking the brunt of people's computer problems, but I've got a tricky one and wouldn't mind peoples opinions. A friend of mine asked me to come and have a look at her computer as it wasn't booting windows.
Here are the symptoms: Boots XP up to the point when you'd normally get the login welcome screen (when it finishes loading with the black screen) At that point it restarts

Does the same thing when booted in safe mode

When it restarts there is a click noise, almost as if a switch is being flicked (this could however be the fans suddenly turning off and on)

The system seems to be adequetly cooled and isn't that hot so I don't think it's some kind of heat safety switch.
Computer specs: The computer is fairly new (purchased last year) and I can provide exact specs if you want. Running windows XP Pro

Personally I suspect it's software rather than hardware failure.

Thanks for any help, --Fir0002 07:24, 22 November 2006 (UTC)

I would have to agree with you. Reinstalling XP should fix it. --Wooty Woot? contribs 08:44, 22 November 2006 (UTC)
  • Of course, reinstalling could fix it, but a lot of a-technical people don't keep backups. Only reinstall as a last resort. Did you ask Microsoft about this? What was the last piece of installed software? - Mgm|(talk) 09:52, 22 November 2006 (UTC)
    • Pray tell, how do you "ask Microsoft"? There are Microsoft-run support forums, but it's a little hard to speak to Microsoft per se. :) enochlau (talk) 12:23, 22 November 2006 (UTC)

I wouldn't jump to a conclusion that it's software-related so quickly. When you boot it up in safe mode, all unnecessary drivers are turned off - and it's usually drivers that have the chance of causing the computer to reset (on the software side of things). Quite possibly it's to do with a faulty power box, or something else to do with the power supply. It might just be stopping at the log in screen because it just so happens that the power supply holds for long enough to get to log in screen before dying. enochlau (talk) 12:22, 22 November 2006 (UTC)

You can try using Windows's "Last Known Good Configuration" startup option - there should be an option for this from the boot menu where you select safe mode. The last known good mode uses the settings from the last time Windows successfully completed a log in, and is always worth trying before resorting to a reinstall. -- AJR | Talk 15:16, 22 November 2006 (UTC)
Sounds like something mine has being doing lately, except i've turned off automatic restart so I get the BSOD. If there is any way you can log on to the computer without crashing; then try reinstalling the hard disk controller driver: go to Device Manager -> navigate to IDE ATA/ATAPI controllers (or equivalent) -> Right-click Primary IDE channel (or whatever, just make sure it's Primary) and select 'uninstall' -> Reboot. Windows will install a fresh driver at next boot, and it won't do any harm even if this isn't the same problem. The click noise is, I think, the hard drive messing about with something (resetting from UDMA to PIO? Just an observation; after trying this trick my HD stopped doing this). I did that and it hasn't happened to me since. Is there any way of doing this outside Windows people? Or maybe disabling automatic restart outside Windows so we can see what the BSOD has to say? Also Fir, what was the last thing changed before this all started? CaptainVindaloo t c e 17:18, 22 November 2006 (UTC)
It is useful to see if it happens with the BIOS set to default settings for all the parameters. If that gives no joy, something quite early on in your hard disk windows startup sequence is causing a soft reboot. XP Floppy boot disks (FAT32 and NTFS) can be downloaded from Microsoft, and their use is explained here. Follow the web page and screen instructions. I have not seen that one can do harm using these, as long as you do not reformat or partition a disk. If that does not work, in as much as you can restore settings, you are unlikely to get away without reformatting. Seejyb 22:28, 22 November 2006 (UTC)
Well it wasn't my computer, and I can't access add/remove programs obviously (doesn't even get to the welcome screen!); the owner can't recall installing anything new prior to the problem, but then again she might not have been paying attention. I submitted this to another forum and they suggested that it might be a graphics card failure (only using VGA 16 colors before the welcome screen). I plan to test this using a Suse live disc to boot from. If it boots then it's not the graphics card. I'm not sure how easy testing the power supply is, but there shouldn't be a problem (shouldn't!). The computer was purchased less than a year ago with a Superflower Xion case + 350 W power supply. Another thing that I'll try is taking her HDD out of her computer and mounting it as slave in mine and running some antivirus scans over it. --Fir0002 22:58, 22 November 2006 (UTC)
On the Live CD note, I don't recall SuSE making a LiveCD... they do, however, make a LiveDVD. (Someone correct me if I'm wrong). I think you should get Knoppix anyway (just Google for it). It probably has some more computer rescuing utilities anyway.

windows movie maker xml codes[edit]

where i can find a xml code for adding picture to the movie (a movie and a picture at the same time), and a xml for adding a smaller movie at the same time of another movie (a example: in a movie of a person watching tv, put in the position of the tv, and with the same size of the tv screen, another movie)?

I doubt you'll be able to do that in a free program like WMM. I suggest Adobe Premiere, or editing the frames by hand (not that hard, you could do it in Paint, but it'd take a while!) --Wooty Woot? contribs 02:33, 23 November 2006 (UTC)

But he is easy to use??? I make my videos just for fun, that why i use windows movie maker, its simple, and small (in HD size).

Identifying requirements from the product[edit]

You see a software and wonder what requirements would have made someone to develop such a software. How we can identify the requirements from the working software product? What you call for this process of identifying requirements from the working software product? Reverse Engineering? V4vijayakumar 09:54, 22 November 2006 (UTC)

I don't quite understand what you mean by "requirements". Are you talking about the inspiration, or the specification that the programmers were working off? Or do you mean the minimal specs of your computer to run the software? No, reverse engineering, as the article rightfully suggests, is where you pull apart the program to find out how it worked, so that you can try to replicate it. enochlau (talk) 12:19, 22 November 2006 (UTC)
Reverse engineering complex software, like Windows, can for all intents and purposes be pretty much impossible. It is impossible to get code back after a program has been compiled. Someone who is an expert programmer can make a very good guess as to how a program works and may even be able to re write it so well that it impossible to tell apart from the original program but it will still all be guess work and estimates. It all depends on how easy the program is to replicate and how good the programmer is. Most professionally released software these days would be way too complex even for the best programmer to replicate, it took a whole team of programmers years to develop in the 1st place, that's what it would take to re create. Vespine 21:52, 22 November 2006 (UTC)
Reverse engineering software rarely requires re-implementation, and it is usually the intent of the programmer to circumvent or change only one aspect of a software's operation (typically copy protection or digital rights management). Full understanding of the code behind such systems isn't required, only an understanding of a specific aspect. Additionally, the vast majority of code uses libraries with known functionality. Droud 02:14, 23 November 2006 (UTC)
In order to reverse map requirements, you might consider taking all the known features of a software and attempt to infer the requirements, although this is hardly a scientific approach. A more scientific approach would be to test the software to failure, and infer the operational requirements from test results. Meaning, if you create a Word document that is 2.1GB in size, and it crashes Word, but a 2.0GB document does not, you can infer that one of the operational requirements was to support files up to 2GB in size. Droud 02:14, 23 November 2006 (UTC)

inatalling dos and win 98[edit]

i want to install dos in my computer can someone give me the step by step procedure.then the step by step for win 98.i already have the startup disk and emergency dos and the del part floppy diskettes

Are you sure you want to install both DOS and Windows 98? Remember you don't have to install DOS first before installing Windows 98 - Windows 98 comes with DOS. If you want to run your DOS games, you can boot into DOS from Windows 98 (it's in the shut down prompt if I remember correctly). enochlau (talk) 12:25, 22 November 2006 (UTC)
Yeah, if you already have a command line (click Start > Run, then type "cmd" and press OK) which should do everything you need it to. If you really need to run something in DOS that won't run on your computer, use DOSBox. Trying to install DOS separately is a bad idea. -- 14:03, 22 November 2006 (UTC)

i wanted for my head knowledge.the procedures for installing dos,then i uninstall n then install win 98

?Run the disk, follow the promptsVespine 21:41, 22 November 2006 (UTC)
Your question is not quite clear, but: To install DOS on its own you need the full set of installation disks, or a CD equivalent. DOS does not have "uninstall", you simply delete the files. To install Win98 you run the install from CD, and it runs itself. If your DOS version is less than 6.22, Win98 will update it to 6.22. You don't need to install and uninstall DOS to install Win98. You do need the startup diskette and the Windows 98 CD. Win98 automatically installs DOS anyway. The files for the DOS set and the Win98 CD are all available on the net. These can be downloaded from the net. Seejyb 21:54, 22 November 2006 (UTC)
  • Only install Windows 98 when you have no other option and make sure you have a antivirus software at the ready. Microsoft won't support Windows 98 issues or system updates, so a system running 98 will be a pile of security holes (one slightly larger than any subsequent Windows version). - Mgm|(talk) 10:36, 24 November 2006 (UTC)

usb 45 and usb 67[edit]

Hi, can anyone tell me what - if anything - is the difference between usb45 and usb67? I have a motherboard (Asrock 775i945GZ) and it has a connection for both. I have a usb lead coming from the front panel of my case - can I plug it onto either? thanks Spiggy 13:21, 22 November 2006 (UTC)

USB45 and USB67 simply mean USB ports 4 & 5 and 6 & 7, respectively. Possibly you'll find 0, 1, 2 and 3 somewhere else on the board, too. I guess you can plug the cable on either one. –mysid 14:26, 22 November 2006 (UTC)
The four ports 0&1 and 2&3 are already installed at the back. It may make a difference if you connect to 6&7, if 4&5 is still open, but that you would have to try yourself (or first use 4&5 anyway). Seejyb 15:12, 22 November 2006 (UTC)


Can I save a video from YouTube onto my hard-drive? if not can someone tell me where i can get a video of David Hasselhoff singing "looking for freedom" on the Berlin wall? Ken 14:03, 22 November 2006 (UTC)

Go go and type in save youtube video or download youtube or similar. Weregerbil 15:24, 22 November 2006 (UTC)
1st: use firefox
2nd: use the extension, videodownloader
3rd: download what video from youtube or any other flash, etc...
Another way: Search Google for "youtube video extractor". Make sure you have the web address of the youtube video handy.

Slowing Computer[edit]

How is it that computers always seem to get slower with age? I always keep mine with minimal programmes, defragged, antivirused, everything! And it always seems to slow down! Why is that? Many thanks, -- 18:16, 22 November 2006 (UTC)

Glad i'm not the only one to notice that. Wear and tear probably, same reason cars wear out even when kept oiled, serviced and tuned. Occasional hard drive reformats and rebuilds might help. CaptainVindaloo t c e 18:29, 22 November 2006 (UTC)

I think it's due to bloatware. That is, new versions of programs are far less efficient and also try to do too much. If you could stay with all the original software, without upgrades, the computer shouldn't slow down. StuRat 18:34, 22 November 2006 (UTC)

Usually a fresh re-install of your operating system and software will clear up these types of problems, with the added benefit of removing any malware or spyware that may have infested it. If your computer is aging, be sure to look for "lightweight" applications that require less RAM and processor to run, as many alternative software is far less bloated than mainstream, do-it-all applications. Droud 01:58, 23 November 2006 (UTC)
When you install programs, they can do all sorts of things to your computer, some of which will slow it down. For instance, they may run in the background. They may lengthen the list of, for instance, shared libraries or fonts your PC has to search through. They will register additional file types (which makes opening explorer windows slower, as the computer needs to look through the whole list). They may install additional fonts or plugins. And many of these programs do not 'clean up' very well after themselves if uninstalled (mostly because it carries the risk of uninstalling something needed by another program). So even with careful management, 'junk' will start to accumulate on your computer, at which point your best bet is a reinstall of the OS.
Also, don't discout human factors - you get used to the speed at which your computer runs. So, psychologically, after you've used it for awhile it won't seem anywhere near as fast as when you first got it... — QuantumEleven 11:43, 23 November 2006 (UTC)
Sometimes I think Wikipedia would run more efficiently if we formatted it and then only re-installed the good articles ;) Then we could put in a good ad-blocker (AfC for all new articles, stable versions and edit approval system for existing articles), an anti-virus package that would heal (remove all unverified content) salvagable articles or delete (AfD) those that cannot be healed, and a firewall that would blacklist unauthorised access (ban anon edits). In this way we'd run a lean mean encyclopedic machine. Sadly the status quo will forever remain the ever-worsening bloatware nightmare we currently have. Zunaid©Please rate me at Editor Review! 14:19, 24 November 2006 (UTC)

Hard drives can become slower over time as the bearings become worn. - Rainwarrior 06:45, 25 November 2006 (UTC)

windows movie maker xml codes[edit]

where i can find a xml code for adding picture to the movie (a movie and a picture at the same time), and a xml for adding a smaller movie at the same time of another movie (a example: in a movie of a person watching tv, put in the position of the tv, and with the same size of the tv screen, another movie)?

I doubt you'll be able to do that in a free program like WMM. I suggest Adobe Premiere, or editing the frames by hand (not that hard, you could do it in Paint, but it'd take a while!) --Wooty Woot? contribs 02:33, 23 November 2006 (UTC)

uploading picture from; need technical + copyright expertise[edit]

Hello, First: I know next-to-nothing about American copy-rights regarding pictures, and I have never uploaded a picture to WP (=I`m totally clueless here). Secondly: I have just started an article on Palestinian costumes. Now, there are a lot of pictures on the web of traditional Pal. costumes, but I assume most of them have some sort of copy-right. However, I found a picture on ....which would be superb for the article. (And, as far as I understand, you can use pictures from So; A: can I use it? B: can somebody tell me how to upload it? (or even it for me.. ;-) )

I also found a beautiful picture of a Bayt Dajan dress here: ...which I would absolutely love to have in the Bayt Dajan article...but I suspect that is not possible?

Any advice/help will be appreciated, Thanks, Regards, Huldra 20:42, 22 November 2006 (UTC)

It's licenced under a "no commercial use" licence (the struck-out dollar icon), which makes its licence incompatible with Wikipedia, I'm afraid. -- Finlay McWalter | Talk 20:44, 22 November 2006 (UTC)
Hmm, I also rather suspect that the uploader doesn't really own the copyright, so even if he did have a wikipedia-compatible licence, we really shouldn't trust it. -- Finlay McWalter | Talk 20:46, 22 November 2006 (UTC)
I'd recommend that you post a request for a copyright-clean image of the same subject at Wikipedia talk:Notice board for Palestine-related topics - perhaps someone will have a family photo or something. -- Finlay McWalter | Talk 20:51, 22 November 2006 (UTC)
Regarding the second one: there's no indication that it's under a free licence, so we have to assume it isn't. You could email the website to ask them to relicence it under the GFDL, I suppose. -- Finlay McWalter | Talk 20:53, 22 November 2006 (UTC)
Thank you very much for your reply (although it was not as I hoped...;-) ) Anyway; I have some old pictures (up to 100 years old; books, prints, postcards) with ladies in local costumes, I thought of scanning them in and uploading soon as I get a scanner. Do you know how old pictures have to be before the copyright expires? Is it 50 or 70 years?
Anyway, my pictures are only from the major centers (Bethlehem, Ramallah, Nazareth), so I think I will follow your advice and email about the gorgeous Bayt Dajan dress.. Regards, Huldra 22:33, 22 November 2006 (UTC)

XSL to replace element content with other content.[edit]

It's been about a year since I've touched XSL and transformations. I'm trying to come up with a stylesheet to turn this,

<?xml...?> <document><one><two>content</two></one></document>

into this,

<?xml...?> <document><one><two>something else</two></one></document>

I'm also having trouble keeping everything else in the XML document identical. Would the XPath expression be something like "/one/two/text()"? Can I select this without mucking up anything else in the document? Thanks. --Silvaran 22:58, 22 November 2006 (UTC)

Got it... though it might not be the best way (another 10 minutes and I wouldn't have to bother anyone on wp). Basically add this to the end of your typical identity xsl:
<xsl:template match="one/two/text()">something else</xsl:template>
Though mine was a little more complex, like:
<xsl:template match="one/two[@name='whatever']/text()">something else</xsl:template>
I think I remember why I stopped playing around with XSL :). --Silvaran 23:08, 22 November 2006 (UTC)