Infarction 503 Posting Virtuoso

uhh... details? :P

I work on software.

Infarction 503 Posting Virtuoso

That's just really weird. I have no idea why it would do that. Maybe double-check your configs, but other than that I'm out of ideas. Sorry I can't help :(

Infarction 503 Posting Virtuoso

I think it has to have the <%@ Page ... > directive so that the ASP parser knows to interpret it. Just make a Default.aspx and you'll see how it's got that at the very beginning of the page. And if you've got VS, then there's no reason not to just use it to create your pages; doing it the hard way will just get in the way and cause silly things like this. :icon_wink:

Infarction 503 Posting Virtuoso

Reading through the blogs today, I read two distinct entries that struck me as odd. There were not tech-related, and furthermore it was the first activity by either member on Daniweb. Also, they both tended to focus on some type of product and had a link to it. My guess is that it's a new form of spam, so I though I'd mention it... hopefully this is the right place to do so :sad:

That said, the blog content seems to be a little thin on quality the last week or so... :P

Infarction 503 Posting Virtuoso

A very phenomenal build, and only $400. I seriously don't know how they are going to survive when I go off to college this fall..

Assuming that's a legal copy of a recent version of Office, and a legal license for XP as well, nice build. :P And they'll probably survive about like mine did: no updates, call me for tech support. Mine're still running with a 1.2GHz and a 2500+ that I built well before going to college...

Infarction 503 Posting Virtuoso

if program execution starts and ends in main then what is the point? main calls other mothods and receive return types so why does main have to return something itself?

Like others have said, main's return value is used to determine if the program ran successfully or what the errors were. As to why the mechanism is a return value, when your program runs, something in your OS is calling main. When your program finishes, main returns an int to the OS function which called it.

Infarction 503 Posting Virtuoso

but, the gui builder is nothing like visual studio. It is horrendous. Eugh!

LOL! Did you expect it to be? :D

Infarction 503 Posting Virtuoso

If you're using Strings in C#, I think the Format method will be fine. quick example:

String s = String.Format("Card serial: {0} {1} {2} ...", ResultSN[0], ResultSN[1], ...);

I don't know that this will do the formatting as you want, but there might be ways to do that as well; I've hardly used C# before :P

Infarction 503 Posting Virtuoso

My parents let me do the computer thing. I built one in 9th grade for a school project, and I've been tech support ever since. It's not always fun :P

Infarction 503 Posting Virtuoso

I think one reason to not let you go back is if a later question would help you on an earlier one. This way you can smack yourself, but you can't go back to fix it based on the information you've learned since answering the question.

'Grats Duki, although I scored better back when I took it (920 or so) :P

Infarction 503 Posting Virtuoso

You shouldn't need both, but you might try the CCP if you want to compare. Personally, I just use VLC.

Infarction 503 Posting Virtuoso

Nah, you'll be fine. I think... maybe... :P

Infarction 503 Posting Virtuoso

aravindkishore, please use code tags when you post code. :icon_wink:

Infarction 503 Posting Virtuoso

I have a 17" LCD at home and a 20" LCD and 19" CRT at work. And 15.4" on my laptop.

Infarction 503 Posting Virtuoso

Read, knit, and a small variety of other things. I'm spending less free time at the computer now that I stare at a screen at work everyday...

Infarction 503 Posting Virtuoso

Well, that's a digital signal. If you're picking up a radio station, you'll be able to hear it just fine.

Infarction 503 Posting Virtuoso

i'm not a windows basher but billy gates sure does love his visual basic even though it works better for scripting.

Are you trying to make an ass out of yourself?

Infarction 503 Posting Virtuoso

Could definitely be interference. One of my friend's speakers were so bad, she could hardly hear the sounds from her own computer... :P

Infarction 503 Posting Virtuoso

Show some effort. It's one of the rules.

Infarction 503 Posting Virtuoso

Have you even tried? It looks like all your posts are just asking us to do work for you. Show some effort please.

Infarction 503 Posting Virtuoso

July 12th here :icon_wink: Happy B-day! :icon_biggrin:

christina>you commented: Happy belated birthday! :) +21
jamello commented: close enough +2
Infarction 503 Posting Virtuoso

Could you please just elaborate and give example.

No. Look it up yourself.

Infarction 503 Posting Virtuoso

If it were me, and mind you I'm still quite new to ASP, I'd put it in the master page and store the change in a cookie or session variable. The master page is for material (including layout) that will be rendered on every page, and you just specify parts of it wherein the content will vary by page. Do some research on how to use them. :icon_wink:

Infarction 503 Posting Virtuoso

Most companies (at least around here) don't worry about your expertise in any particular language but how you solve problems. Like ProgrammersTalk said, go through a lot of practice problems, and try to always come up with the most efficient solution. Have a good grasp of algorithms and how to measure their efficiency. When it comes down to it, learning a programming language is the easiest part... :icon_wink:

Infarction 503 Posting Virtuoso

I don't know that it'd be the most efficient, but you could save the Excel document as XML and use that as a data source on your website. You could then set up permissions to edit the XML data through a web interface. Like I said, this might not be the best way, but it should be functional.

Infarction 503 Posting Virtuoso

If you're developing in ASP.NET, you'd use the .css file ProgrammersTalk mentioned on a master page, and have all your content pages use the same master, so as to ensure that the style is employed on all of your pages.

Infarction 503 Posting Virtuoso

VB is not like java but C# is (c# and java both have roots in C)

Aside from dot syntax (which most likely preceeds C), how are they related?

Infarction 503 Posting Virtuoso

Hm... I guess in a way the moderators have been so knighted. Dani's way ahead of you :P

Infarction 503 Posting Virtuoso

You can get by with just VB. Each time you add a page to your project, you can simply select whether to add it with VB or C# as the backend code. Note that you can add references (such as libraries) written in other languages and it will interoperate with your VB code just fine.

(another note: my screenshot shows J# as an option, but don't bother with it. I'm pretty sure it'll be gone in VS2008 anyways.)

Infarction 503 Posting Virtuoso

USA ftw :icon_biggrin:

Infarction 503 Posting Virtuoso

If you have no programming experience, you might find VB (not VB Script) to be easier to learn. I'd recommend that you try both and see which one makes more sense to you. I personally prefer C#, but I have more of a background with similar languages, whereas I think VB looks funny since I've never really used any thing with a similar syntax.

If you go through some of the ASP.NET and Visual Web Developer walkthroughs on MSDN they should have equivalent samples in both C# and VB so you can see code segments side by side and try to determine which language fits you better.

Infarction 503 Posting Virtuoso

... because they're serial drives... :icon_wink:

Infarction 503 Posting Virtuoso

/dev/hdX is a PATA drive, /dev/sdY is a serial (SATA or SCSI) drive. My USB drive also comes up as an sdY even though the HD itself is PATA.

Infarction 503 Posting Virtuoso

When I was a kid, my parents were shopping for a car and the car salesman got ticketed for jaywalking between car lots... :P

Infarction 503 Posting Virtuoso

My dad's leather belt worked wonders on my upbringing... :P

Infarction 503 Posting Virtuoso

i was smacked a little and i turned out just fine

++ :P

Infarction 503 Posting Virtuoso

American football :P

Infarction 503 Posting Virtuoso

I wasn't saying that corporal punishment is always necessary; however, it does get the point across that some actions are not to be tolerated. Obviously one can't go around beating their child for every misbehavior. But strong discipline backed by solid consequences (timeouts don't count here) go a long ways in training behavior. Sure, a timeout is sometimes the appropriate measure to take; there are also times when it's not.

Infarction 503 Posting Virtuoso

The problem is that you're using integer division, which returns an integer value. Cast the numerator to a double and it should work: daysOffAvg = (double)totaldayoff / numemployees;

Also, try to write your program without using global variables. Their use is considered very poor style.

Oh, and please use code tags when you post your code. :icon_wink:

Infarction 503 Posting Virtuoso

If there's not a penalty for misbehaving, then there's no incentive not to misbehave. After a few years as a child, it becomes a trained habit, and a very difficult one to break at that.

Infarction 503 Posting Virtuoso

A spelling and grammar checker should also be employed (by the way, it's "dissertation") :icon_wink:

Infarction 503 Posting Virtuoso

Maybe the function isn't defined in any of your source code files?

Infarction 503 Posting Virtuoso

*itr returns a string, not a char*. Use the .length() for the string instead.

Infarction 503 Posting Virtuoso

Glad you got it working :)

Infarction 503 Posting Virtuoso

This might help.

if [ -L "$fullpath" ]; then #fullpath="`ls -l "$fullpath" | awk '{print $11}'`" fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'` fi dirname $fullpath } # Set the home if not already set

Next time please post your code more readably, or with a brief explanation of what it does. I can't imagine how it pertains to the OP's problem.

Infarction 503 Posting Virtuoso

My broker has one; I'd guess most others do as well. I think it's a fairly popular tool for testing out new strategies these days.

Infarction 503 Posting Virtuoso

First, your problem: you can't use the same file for input and output (using > at least; using >> will work, but it will append the data which you also don't want).*

Second, sed takes a file as a final parameter, so you dont need cat <file> | sed ...

* sed also has an in-place option, allowing you to use the same file for input and output. If you use the -i option, it will do this. The actual form (copying from the man page on my other comp) is -i[SUFFIX] where SUFFIX is optional, but when given it will copy the original file to fileSUFFIX, e.g. sed -i.bkup s/a/b/ somefile will create a file somefile.bkup without the changes.

Infarction 503 Posting Virtuoso

Most of the distros people will throw out will be pretty similar for a beginner; they'll have slightly different installers, slightly different administrative software, and very little difference in available packages. Ubuntu, CentOS, Fedora, and SuSE will all probably do about as well for you.

If you like to start by jumping in the deep end and trying to swim out, I'd recommend Gentoo or Slackware (Gentoo was my first distro). These are not so easy but you will learn a lot more just from the install process. I would note, however, that Gentoo makes you compile all of your software from source code, so if you want to try it be aware that it will take the longest time by far...

Good luck with whichever distro you choose! :)

Infarction 503 Posting Virtuoso

Hope your install goes well :icon_wink:

Infarction 503 Posting Virtuoso

XP was pretty good. Vista's not been bad for me yet either. Certainly an improvement over 98 and ME... :icon_wink: