I use XSLT at work for two purposes (currently). 1 is to take an XML document and translate it into a PDF (using Apache FOP), the second time I use XSLT is to transform an XML document I received from a web service to translate it into xhtml to display it to our users. I find it very useful and...
I figured it out. Unfortunately, my eyes aren't as good as they used to be. I installed all of the jumpers vertically instead of horizontal (or horizontal instead of vertical, depending on how you want to look at the board). The little tiny numbers on the motherboard weren't as clear as they...
I have an Antec Sonata III case and I just installed the Intel Intel BOXDG33TLM motherboard. I just cannot get the HD LED to work. No matter how which direction I install the jumper the LED never comes on (and I know my disks are in use).
Anyone have any ideas?
Thanks,
Mr_Superstar
Hi All,
I've got a question about returning a std::string in C++.
I have a function defined roughly as:
std::string doSomething(std::string input) {
std::vector<char> buffer(1000);
...
return std::string(buffer.start(), buffer.end());
}
As a java programmer, I've...
I've noticed something weird with the trackpad on my macbook pro. I didn't think anything about it until I decided to search for it. My issue seems pretty much identical to this post [1] on the macrumor forums, except it's on the right side of my trackpad. For a while I thought it was in my...
This is a very good point that no one has yet replied too. If lf + rt > INT_MAX (assuming signed int's, as in java), the result will overflow and return a negative value. Then, dividing by two will still result in a negative number. Using this as an array index will cause an...
Well, depending on how you write the code, you'll either need a loop & a conditional statement or multiple conditional statements.
You'll also need some way of building the final string.
It looks like you are on the right track. Perhaps the language of the problem is tripping you up. You're not really "decrypting" the string, rather you're just pulling out some characters in certain positions of the string.
Take a look at the String API [1]. Look for methods that deal with...
Sorry for the delay..
In Resin (from reading the docs), there are two directories that contains web applications. One is called ROOT, which is a special application that's used when you access "/" (or /index.(html|jsp) etc). Other web applications are deployed in the webapps directory. You...
I haven't tried this and I'm not 100% sure it'll work. But, you could try adding this to your web.xml
<welcome-file-list>
<welcome-file>FCMS/PageView?name=index</welcome-file>
</welcome-file-list>
I installed the keyboard fix a few weeks ago, but I still seem to notice an issue of dropping keys, particularly in iChat. I'll hit a key or two, and sometimes (randomly) it doesn't show up. It's not extremely frequent, but frequent enough to annoy me. Does this happen to anyone else?
I just got the Radtech Screensaverz and it was a little bit thicker than I expected. I was able to close the lid just fine without feeling any resistance, I just wonder if the unnecessary pressure on the LCD over time will damage it (assuming it does actually touch the LCD when closed).
Do any of you guys have a problem with shocking your macbook pro? I've shocked mine quite a few times now... hopefully it's not hurting anything. The aluminum case looks so nice.. but damn, it hurts. Perhaps I need to quit wearing socks around the house.
I don't want to push my luck, but I just upgraded from 10.4.10 to 10.5 and everything seems to be working fine when running on AC power. I haven't tried unplugging the laptop yet, I'm afraid to push my luck...
I just got a macbook pro. Whenever it is running on battery, when my network connection is idle for a few minutes, my wireless network goes down. It takes out the whole wireless network, my other laptop (an HP running WinXP) can no longer connect to anything as well. I have to go upstairs and...
I'll be getting my macbook pro sometime this week (or so says the order status). I've seen a few "Screen Protector" products for the macbook pro. Do any of you use and/or recommend them?
Thanks.
Yeah, you can do that with packages without any troubles. The compiler needs to be told where all of your classes live. You need to specify the classpath setting using -cp.
You might try the following:
javac -cp . -d . .\command\*.java
I was able to get it to work with the following:
<html>
<head>
<script type="text/javascript">
function init() {
node = document.createElement("div");
node.id = "myNode";
document.body.appendChild(node);
alert(node);
// try and find the node...
I know you want a straight-up answer, but that seems to violate the spirit of helping out students on the forum. Anyway...
I think you're over analyzing the problem. It doesn't matter if you know which element's priority changed, you can still update the heap in log(n) time. There is one...
I don't know about "dog slow". Have you used java lately? Sure, there is a one-time hit when the program starts, but after that, it's fast. Also, it's not entirely interpreted from byte-code. The JIT compiler uses runtime analysis to compile commonly used methods to native code, which makes it...
The document says it returns an array of the same type passed in populated with the elements of the List. It doesn't necessarily use the same array (for example, if the input array is too small, it will create one at runtime of the same type that can accommodate the correct number of items)...
You have to pass it an array because because the URLClassLoader requires a specific type of Array. The URLClassLoader takes an array of URL, not an array of Object.
If you look at the documentation of toArray, you will see that the toArray with zero arguments returns an array of type...
No problem. I was just trying to offer an alternate 15.4" laptop with a nice resolution. Another laptop I've been looking at is the HP Compaq nc8430. It has an ATI Mobility Radeon X1600 with 256MB of memory. It only has a WSXGA+ (1680x1050) max resolution, but I still consider that very nice...
I have Dell Latitude D810 from work and I love it (15.4" screen with a 1920x1200 resolution). I'd highly recommend the Dell D820 (the D810 is the old model). Plus, I've heard that if you buy from Dell Small Business, the support is in the US.
I just customized a Dell Latitude 820 with the...
I thinking about doing this in Java and using Tomcat as the servlet container. If I go this route, my work is basically done because I can use container managed security to handle the sessions for me.
My 'users' table will have a password column hashed by SHA-256. I'm not really worried about users forgetting their password, generating a new one and sending an email to the user is simple enough (although not the most secure system).
Hi. I've recently decided to develop a website as a personal project. I will be creating a website, and I wanted to know what the best way to store user authentication details.
I've seen a few examples that use a 'session' table that stores the session ID, the username, and the IP address...
Don't give up! (yeah, I know I said I wouldn't be online, I just felt bad leaving someone stranded).
Ok, I just re-wrote my solution. Have you learned about 'letrec' yet?
I'm going to be getting off of the computer now, so I won't be able to help any more tonight. I do have to say though, one of the great things about scheme is the ability to use simple functions, like tree-reduce and use map, apply, reduce, etc. to build bigger/better functions.
One thing you...
Yup, write a function called 'flatten' to flatten the list and then use 'apply' to apply the function to the flattened list. Although, this will work on more than just trees.
Edit: Ths is actually the wrong solution, because it will ignore one of the two input functions.