15,909,546 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by lewax00 (Top 200 by date)
lewax00
18-Oct-13 18:33pm
View
Ah, I wasn't aware IsNullOrWhiteSpace wasn't available until .NET 4.0, good point then.
lewax00
18-Oct-13 17:29pm
View
I agree, that is a much cleaner option.
lewax00
2-Aug-13 17:23pm
View
I wanted to +5 this too, but then realized you were the answerer. You might want to edit that information into your answer though, it's kind of important.
lewax00
25-Jul-13 10:07am
View
In what context? A C++ server with JavaScript client side in a web browser? A C++ program that can be scripted with JavaScript? This makes no sense as it's written.
lewax00
23-Jul-13 12:03pm
View
Does that even compile? I'm pretty sure when passing arrays as parameters you have to specify the size in the parameter list or use a pointer. [e.g. void callbyvalue1(char a[10],char b[10]) or void callbyvalue1(char *a, char *b)]
lewax00
17-Jul-13 10:06am
View
Sorry, but you're just going to have to make that effort if you want real help.
lewax00
16-Jul-13 11:09am
View
Then it sounds like it's an internal problem, you need to find out who's changing it and why. Or decide if everyone really needs access to sa.
lewax00
16-Jul-13 11:09am
View
Then it sounds like it's an internal problem, you need to find out who's changing it and why. Or decide if everyone really needs access to sa.
lewax00
16-Jul-13 10:23am
View
Make sure no one else has the password to sa (and make sure it's sufficiently secure as to not be guessed easily), and make sure no other account has authority to change it.
lewax00
12-Jul-13 14:23pm
View
I mean I don't have Chrome installed. I know it has a debug console by default, I just can't confirm the shortcut.
lewax00
12-Jul-13 14:09pm
View
But did you fix that on your page? Could be related.
As for debugging JS:
Firefox: Ctrl+Shift+K
IE: F12
Chrome: (from comment below, I don't have it installed) Ctrl+Shift+I
Any of those should give you the errors from JS.
lewax00
12-Jul-13 13:41pm
View
Are your jQuery and jQuery UI scripts actually in different folders? Because they're pointing to different paths.
lewax00
11-Jul-13 12:53pm
View
If you have a question, please post your own question instead of bumping up a 2 year old question (I'm assuming that's what you were going for, because I see no relation to the question in your "solution").
lewax00
11-Jul-13 12:32pm
View
I think that covers most of the options, +5.
I'm a little hazy on the details, but could you also use a union for this?
lewax00
11-Jul-13 10:05am
View
If you need to edit your question, use the "Improve question" button at the bottom of your post. Please don't repost it, and please don't add it as a solution.
lewax00
10-Jul-13 16:33pm
View
Like I said, if it is an option, it would be in your BIOS. I don't know what's in your BIOS, each one is different. For example: my home PC's has many options relating to over clocking, my work PC does not. But my work PC allows me to have my computer automatically boot everyday at the same time, an option my home PC doesn't have. Of course, such logging could still be disabled the same way a locked BIOS could be.
If you really can't remove the CD drive, then your best option is really to lock the BIOS, then physically lock the case. (The thing I'm talking about is visible in this image: http://archive.benchmarkreviews.com/images/reviews/cases/Ultra_m998/ULT40069_ExtLock.jpg it's the thing with the hole that's sticking through the slot in the case.)
lewax00
10-Jul-13 14:47pm
View
Encrypting the hard drive is no good if the user in question has the key of course. It's awfully difficult to secure a computer from it's primary user (if that is the asker's goal).
lewax00
10-Jul-13 14:44pm
View
That's become a surprisingly viable option recently. My home PC has no CD drive, and I rarely miss it. The one in my work PC has never been used by me either.
And yes, the USB is still an issue, if the mobo supports that option (not all of them do, I had a new laptop about 4 years ago that didn't, but it was a rarity even then).
lewax00
10-Jul-13 14:40pm
View
That's a more interesting question...I'm not aware of a BIOS with that capability, but it's not infeasible (which is where the logging would have to be triggered I would think). You'd have to look around in your machine's BIOS to determine if it had such a feature.
Would another option be physically locking the cases? Most cases have a small metal loop that prevent the case from opening when something is put through it (usually a lock or metal cable). Then the BIOS password might still be viable, because they wouldn't be able to get inside the case.
lewax00
10-Jul-13 14:07pm
View
Trying to program your own BIOS or editing the existing one is a bad idea. If you make one mistake, your motherboard could be completely bricked. And for something this complex and delicate, if you have to ask how, then you aren't ready to do it. You're better off taking Richard's advice and just changing the settings, which should allow you to do what you want. As far as resetting the BIOS by removing the battery, if someone has physical access to your machine there's nothing you can do to stop them. They could just pull out your hard drive and put it in another computer and do whatever they want to it, same with any other piece of hardware.
If you want a better answer, why do you want to create this restriction? Maybe there's another way to accomplish your goal.
lewax00
8-Jul-13 15:58pm
View
If you need clarification, please use the "Have a Question or Comment?" button below the question, do not add it as a solution.
lewax00
5-Jul-13 18:18pm
View
Try opening it via a command line window and see if there are any errors. (Go to the directory it's in, hold shift + right click, and select "Open command window here", then type in the file name and press enter. If the option doesn't show up, make sure you're not highlighting any files.)
lewax00
5-Jul-13 18:14pm
View
+5, but for mobile applications, don't forget Java as well, considering Android is a major player in that space.
lewax00
27-Jun-13 19:00pm
View
Any reason you aren't using the % operator instead of a function? Should be faster than function call.
lewax00
27-Jun-13 18:57pm
View
Exactly. +5
lewax00
27-Jun-13 9:58am
View
Are you sure your data isn't entirely non-ASCII characters (this is a more accurate term for what you want, technically all of them are Unicode)? Also, what format of Unicode is it? UTF-8, UTF-16...?
lewax00
26-Jun-13 23:47pm
View
I highly doubt Java was used in writing any Windows OS. Especially considering there is no JVM installed initially.
lewax00
26-Jun-13 20:09pm
View
Assuming of course it is well formed XML, but not all HTML is. I think a plain TextReader/TextWriter would be more appropriate, if you don't plan on using related XML structures.
lewax00
25-Jun-13 11:15am
View
What kind of files? The method would be completely different for every kind of file, and with some it will not be possible.
lewax00
24-Jun-13 10:07am
View
Hmm...I guess the first thing to check here is: does CurrentThread.CurrentCulture return the same value in both cases? Could be coincidence that it worked in the first place.
lewax00
20-Jun-13 13:00pm
View
Not entirely relevant, but why are you making a browser that would most likely be run inside another browser? Seems like a strange design decision to me.
lewax00
20-Jun-13 12:58pm
View
Best practice seems to be putting scripts at the end now, so the page can finish loading before the scripts are run.
lewax00
18-Jun-13 18:19pm
View
Care to add a source for that? It could be useful information to have as part of the answer.
lewax00
14-Jun-13 20:13pm
View
Well without having access to the code, and with no error logs, its impossible to know. So here's another shot in the dark that was the cause of similar errors I've encountered: you're trying to access some file, registry key, etc that requires administrator permission, and you've only tested on computers with UAC disabled, so it worked in your test environment, but not on the client machine that has UAC enabled. Get them to try running it as admin, if it works, then I'm likely right.
lewax00
14-Jun-13 19:18pm
View
By "here in the U.S." do you really mean "on my machine"? Or have you actually tested it on other computers?
lewax00
11-Jun-13 17:35pm
View
Technically speaking, there are no ASCII characters above 127. ASCII is a 7-bit encoding, only capable of representing 0-127, anything higher requires an eighth bit, which makes it extended ASCII, and is not standard across platforms.
lewax00
6-Jun-13 12:38pm
View
Then it's a problem with the API. I can write to HKCU without elevation on Windows 7 just fine; this is how it's supposed to work. If the API requires elevation for HCKU that's a problem with the API, not UAC.
lewax00
6-Jun-13 12:37pm
View
Deleted
You didn't specify which section it's in there, it's probably going to HKLM, which like I said, requires elevation.
lewax00
6-Jun-13 12:16pm
View
Current user doesn't require elevation.
EDIT: Try it again in HKLM, it won't work. HKCU is intended to be used by any and all programs without admin permissions.
lewax00
6-Jun-13 11:44am
View
Depends, what is in DisableTaskManager.reg? Some areas of the registry do not require elevation, others do. Or since you aren't checking the output of of your process, it might just be failing completely and you ignore the error message.
lewax00
3-Jun-13 13:26pm
View
I don't think this is the appropriate place for this. Rule 10 that appears right next to the box you typed your question into: "Do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will get you kicked off and banned. Play nice." Specifically the part about ads.
lewax00
23-May-13 9:34am
View
This should not be a solution, please add it as a comment instead, and delete it from the solutions if possible. ("Have a Question or Comment?" button below the question.)
lewax00
22-May-13 17:50pm
View
Can you add the code that you generate that value in, and the code from that point to where this function is called (i.e. I assume it's a function, so the point from that function call to the call to this one)? I've seen some similar problems in the past, so it might be related (and if it is, I know how to fix it).
lewax00
16-May-13 16:14pm
View
You're probably better off just making the child window part of the Silverlight application instead. I'm not sure how feasible it is to have them communicate directly.
lewax00
15-May-13 14:25pm
View
Alright, you seem to have missed the point: we need the line of code it occurs on. The error should mention a line number, or if it shows up in the "Error List" tab, you can just double click it and it will take you to the line the error is occurring on. Add that line to your question (and maybe the whole class or function it's in) using the "Improve question" button. Then we might be able to figure out what's wrong.
lewax00
15-May-13 9:57am
View
You asked this yesterday, and I'll tell you the same thing I told you then: we can't help you without seeing the line causing the error. You can re-ask the question all you want, but without the relevant details, no one can help you.
lewax00
14-May-13 18:19pm
View
We need more information, specifically the line of code (and related lines) that is giving you this error.
lewax00
14-May-13 17:37pm
View
Honestly, it's just too vague. Your requirements will changed based on what you want to do, a "web app for lawyers" could be pretty much anything. Choices like language, hardware, etc. will really depend on the details.
lewax00
3-May-13 17:35pm
View
I added something to my solution that may help, see above.
lewax00
3-May-13 17:06pm
View
I don't really get what you're trying to do here, but integer division always truncates. So: -5/20 = -0.25 which will truncate to -0, which is the same as 0. As far as checking if a value is negative though, just check if it's less than 0.
lewax00
3-May-13 1:52am
View
Are you sure YOU have the rights to do that? You can't very well give a program the proper permissions if you don't have them yourself (e.g. on a work computer, if it's you're own personal computer it's probably not an issue).
lewax00
1-May-13 11:15am
View
I'm not familiar with "nltk", but assuming "str2tuple" returns a tuple, you're never creating the second level of the list, you're just appending to "tuplelist". So you'll only end up with a list of tuples. At some point you're going to need to create a new list, append that to tuplelist, then add tuples to that new list instead.
lewax00
1-May-13 11:14am
View
Deleted
I'm not familiar with "nltk", but assuming "str2tuple" returns a tuple, you're never creating the second level of the list, you're just appending to "tuplelist". So you'll only end up with a list of tuples. At some point you're going to need to create a new list, append that to tuplelist, then add tuples to that new list instead.
lewax00
1-May-13 10:03am
View
If you want to use C#, then an .html page isn't really an option. C# won't run in a plain .html page. So that leaves you with two options if the file extension matters that much to you: use Javascript, which would require to leave your database open to everyone, some of which will have malicious intents, or write your own HTTP server in C#.
lewax00
25-Apr-13 16:22pm
View
To my knowledge, no video file formats have region codes. Physical media, like DVDs, do however.
lewax00
25-Apr-13 16:10pm
View
Just a note: to use double quotes in a literal string, you need use two, e.g. @"grep ""^cpu MHz.*"""
lewax00
24-Apr-13 18:54pm
View
Please do not post in all caps. It's considered yelling on the Internet, and is rather rude.
lewax00
22-Apr-13 21:10pm
View
You're closer now. The next problem is this: you still haven't assigned anything (besides 0) to x, y, or z. That's what "a.nextInt()" is for, it reads the next number from the command line. Instead of assigning it to s, assign it to x, y, and z (individually), then calculate s and print it.
lewax00
22-Apr-13 17:58pm
View
So what is the problem? Again, without knowing what the difference between what you expect it do do and what it is doing, we can't help.
lewax00
22-Apr-13 17:20pm
View
So...what is your question? All I see is a code dump. Please tell us what the program is doing, what you expect it to do, and any exceptions it may have thrown. Otherwise, we probably won't be able to help.
lewax00
20-Apr-13 3:44am
View
Please do not repost your question, if you need to make a change, click the "Improve question" button.
lewax00
19-Apr-13 18:30pm
View
There is a report for that, "Not an Answer". It helps keep clean these out.
lewax00
19-Apr-13 18:28pm
View
Read his question more carefully, he says he's calling it from the command line. C# syntax won't help.
lewax00
16-Apr-13 17:53pm
View
You might also want to look into String.IsNullOrEmpty ( http://msdn.microsoft.com/en-us/library/system.string.isnullorempty.aspx ).
lewax00
12-Apr-13 18:25pm
View
Are you sure the text box is set to allow multiple lines? And what happens if you don't do the replacement?
lewax00
11-Apr-13 22:59pm
View
If it's C++/CLI, then you won't be able to run your application without .NET installed anyways. Unless you compile it for .NET 1.1, you'll be all set if it even runs in the first place.
lewax00
11-Apr-13 18:37pm
View
The doesn't look valid/complete to me. Where is minimum declared? What is ">< minimum"? You never use rnd anywhere. How about the COMPLETE set of relevant code?
lewax00
11-Apr-13 18:16pm
View
Impossible to say without seeing your code.
lewax00
9-Apr-13 17:13pm
View
If I had to guess, it's that "f + 1". Everything else is based on f. (Fixed the variable name, though you seemed to get what I meant.)
lewax00
9-Apr-13 0:57am
View
What are you entering for names? Keep in mind, cin.getline null terminates strings, so you actually only have room for 9 characters.
lewax00
9-Apr-13 0:55am
View
No, that would index the array to size (5 in this case), which would be beyond the bounds of the array. That would be unsafe code, as you have no idea what's being stored there.
lewax00
8-Apr-13 18:08pm
View
In JS you can declare functions inside of functions, it is perfectly valid.
lewax00
4-Apr-13 16:41pm
View
Have you confirmed it's not the server? e.g. is the server only sending data to one thread at a time? Some servers only allow one file download at a time.
lewax00
3-Apr-13 20:02pm
View
Have to agree with this, XML is the wrong format to be using when performance is a concern. And files are a poor choice in general if it needs to be able to be edited by multiple threads/processes simultaneously (as it probably would be in the case of a website).
lewax00
3-Apr-13 19:56pm
View
I'm not sure I understand the problem, is only one thread completing? If so, have you made sure a) all threads have actually finished executing and b) there are no errors in the other threads?
lewax00
3-Apr-13 17:47pm
View
You'll need to be more specific than "have some problems and didn't work connections together". How is it not working exactly? Specifically, what do you expect it to do, and what is it actually doing? Also, include any error messages, if there are any.
lewax00
2-Apr-13 15:52pm
View
I'm guessing you either don't have your network/firewall properly configured to allow your phone to access the server (don't ask me how, I've never been good with configuring networks properly), or you're using the wrong address from your phone. Impossible to tell without more details though. (Have you tried pinging your server from your phone? That's always a useful first step for these kinds of things, and there are multiple free apps that can do it.)
lewax00
22-Mar-13 16:52pm
View
It's pretty simple: if 1 = 0, then using basic arithmetic, you can prove any number equals any other number. (e.g., to prove 4 = 2, multiple both sides by 2, then add 2 to both sides). If every number is equal to every other number, then equality means nothing. Without equality, even arithmetic is useless. (What's 1 + 1? Anything I want it to be, since 1 is equal to anything else.) It basically ends up with meaning: math is completely wrong (because the rules are wrong) or math is completely meaningless (because any arbitrary statement is true).
lewax00
22-Mar-13 0:53am
View
If you can prove that 3 + 5 = 9 though, you might want to write a paper on how, because you could use that to prove 1 = 0, which basically destroys mathematics as we know it...
lewax00
20-Mar-13 18:30pm
View
And why would you want to do that? Sounds a little suspicious to me...if you have a hash and you don't know what it was originally, it sounds like you're trying to crack passwords.
lewax00
18-Mar-13 16:18pm
View
Right, but unfortunately, as far as I'm aware, the form does not track what steps you took to get the current visual state, so you cannot simple undo a step, you just clear the custom drawn part and redraw it with your new image. But you did mention something that gave me an idea...have you considered a PictureBox with a transparent background?
lewax00
15-Mar-13 18:39pm
View
If I asked you how to add an event handler to a button would the answer require instructions on how to click a button to make the event fire? Of course it's required, but it's not what's being asked. Nothing in his question suggests he's having difficulty getting to that point, he's asking what do do once he's already there. If he also has difficulty getting it to repaint, it's his responsibility to ask for further clarification.
lewax00
15-Mar-13 18:31pm
View
Where do you see in his question that his issue is getting the function to trigger? That's not at all what he asked.
lewax00
1-Mar-13 17:33pm
View
In button2_Click, the loop should be "for(int i = 0; i < index; i++)", since you ignore all higher values anyways, then you don't need the if statement. Otherwise, looks good.
lewax00
13-Feb-13 9:54am
View
It's hard to say without seeing what's in main. But 0 is the default return value if main doesn't return a value.
lewax00
12-Feb-13 19:11pm
View
It's in an example that isn't obvious, but check: http://bitmiracle.com/libtiff/help/add-page-to-existing-tiff.aspx it shows how to render strings onto it. In the future, if you need clarification on an answer, please use the "Have a Question or Comment?" button below the answer it's in reference too, otherwise that person will not get a notification (I only checked back because I had a new comment from someone else). It works out better for everyone that way :)
lewax00
30-Jan-13 18:52pm
View
That is not 2 links, that is the same link twice, and it doesn't appear to have anything to do with the question...
lewax00
27-Jan-13 23:43pm
View
Repost of http://www.codeproject.com/Questions/535083/concatationplusqueryplusisplusnotplusworkingplusin
If you have additional details to add, please edit your original question. If not, be patient, we aren't paid to do your job, so you might not get an answer right away.
lewax00
27-Jan-13 23:40pm
View
You aren't likely to find anyone on this site who would help you with that. (And PHP is a terrible choice for that task...)
lewax00
25-Jan-13 11:27am
View
Didn't know code had a flavor...
lewax00
19-Jan-13 15:30pm
View
Please do not add comments as answers. If you do, a) no one knows who you're talking to and b) they won't be notified of your comment. If you're replying to a comment, use the "Reply" button, if you're commenting on an answer click "Have a Question or Comment?" below that question.
lewax00
19-Jan-13 14:13pm
View
This disagrees with you (second paragraph in the linked section): http://en.wikipedia.org/wiki/Permutation#In_combinatorics technically it's a partial permutation, but it is still referred to as a permutation.
lewax00
17-Jan-13 16:44pm
View
What do you mean by "navigate like"? Do you mean like having one windows that the controls change on instead of multiple windows?
lewax00
14-Jan-13 19:32pm
View
It varies from phone to phone, my Droid Razr dropped Flash when I upgraded to ICS and it isn't available in the App Store for me. From what I can tell, if you have Flash, you can continue to use it, but if your phone doesn't have it, you have to install it manually (and in my case, it doesn't work on my phone even then). Additionally, Adobe has announced they are no longer going to develop Flash for Android ( http://www.pcmag.com/article2/0,2817,2406507,00.asp ) Basically, even if you can, unless you only want to support a limited number of phones (and not even the newest ones), I wouldn't recommend it. If it's just for you, you could try, or use the opportunity to learn something new (Flash does seem to be on the way out...).
lewax00
14-Jan-13 19:07pm
View
I don't know for sure, but I highly doubt it. From what I can tell Flash support ended with Android 4.0 (Ice Cream Sandwich).
lewax00
13-Jan-13 20:08pm
View
Alright, you've defined what you're trying to do, and you've posted your code...but you've neglected to mention what you're having difficulty with. Is it not compiling? Not doing what you expect it to do? Something else?
lewax00
11-Jan-13 16:33pm
View
That's slightly different. If you use pointers to ints instead it will work (I'm pretty sure anyways).
lewax00
10-Jan-13 1:54am
View
That's perfectly normal when opening an XML file in your browser. What are you expecting it to do?
lewax00
8-Jan-13 14:54pm
View
Wow, I hope "the next release of Visual Studio" doesn't mean VS2013+... (not that I've ever used them, but it would probably be irritating to those who do).
lewax00
8-Jan-13 14:27pm
View
I fail to see how this is programming related. It's clearly a homework problem, and no one here is going to do it for you. Also, please refrain from posting in all caps, it's irritating to the reader.
lewax00
20-Dec-12 10:20am
View
If you're using it a lot, using dynamic might cause a performance hit (I'm pretty sure it uses reflection, which from what I've heard can be a little slow), otherwise it should be fine (and should even work if you later pass in a custom class, as long as it has an integer property called Length).
lewax00
20-Dec-12 10:16am
View
Hard to say...how are you storing the XML structure? Is it in a string, a file, some data structure?
lewax00
19-Dec-12 20:56pm
View
In that case, you may want to check out Prey ( http://preyproject.com/ ) it's open source so the source code should be around somewhere, and they have an Android version.
lewax00
19-Dec-12 17:35pm
View
Do you mean like a button in a web page viewed in a browser embedded in the app, or something else? Because I've seen examples for the former...
lewax00
19-Dec-12 14:21pm
View
What do you mean by "it didn't work"? Did it throw an exception, did it return the wrong value, something else?
lewax00
19-Dec-12 11:07am
View
In all honesty, you probably can't...not from the float itself anyways. Floats cannot represent every number, in many cases it is only an approximation. You can change how it's displayed however (like Stefan_Lang's answer below), or find a library for scientific/mathematical purposes that allows greater/arbitrary precision (I don't know of any for C/C++, so I can't help you there).
lewax00
19-Dec-12 10:26am
View
That sums it up pretty well. I work on a product with a similar feature, and I can add that even if the PDF is not scanned in (i.e. the text can be stripped from it) they still aren't easy to process. PDF is only good for one thing: printable documents that don't change based on the reader. They are terrible as a data source.
lewax00
19-Dec-12 10:21am
View
What do you mean by "credit of mobile"?
lewax00
18-Dec-12 19:27pm
View
Unless "this" is "lblCurrentTime" it may still be disposed. I recommend debugging it and checking if "this" or "lblCurrentTime" have been disposed when the exception is thrown.
lewax00
18-Dec-12 19:22pm
View
Which kind of IPC? Files, client/server, pipes, stdin/stdout...you'll need to be a bit more specific. Also, start it on your own, no one here is going to write the whole thing for you, but we'll help if we can if you get stuck on something specific.
lewax00
18-Dec-12 19:19pm
View
I prefer using String.Format for this type of thing myself, it seems a bit easier to read. +5
lewax00
17-Dec-12 13:38pm
View
Help you how? There's no question here, nor enough details to even guess what you're trying to do...
lewax00
17-Dec-12 10:20am
View
The same way you would do it with any other text. You'll need to add some more details if you want a more detailed answer.
lewax00
8-Dec-12 2:14am
View
What does that even mean? And what does it have to do with "mobile"? Add some more details.
lewax00
7-Dec-12 10:59am
View
Never mind, you're right, because it increments it before checking it, and never uses 7 as an index.
lewax00
7-Dec-12 10:06am
View
Stop trying to access indexes >= length of the string. Without seeing the code that's all I can figure out.
lewax00
6-Dec-12 10:13am
View
Please do not add additional comments as solutions. If you want to modify your original question, use the "Improve question" button. If you want to respond to a comment, use the "Reply" button next to the comment.
lewax00
4-Dec-12 10:11am
View
Sorry, but basically everyone here will give you the same answer: we don't do your homework for you. And with an attitude like that you might find it difficult to get any help.
Now, if you want help, start your assignment, and if you get stuck on something specific, come back and ask then. Or continue to be rude and get nowhere. The choice is yours.
lewax00
3-Dec-12 22:21pm
View
I don't know anything about ASP.Net and very little about networking, so I don't have any answers on that topic.
lewax00
3-Dec-12 12:13pm
View
If you're having a similar problem, please create your own question instead of adding a solution to someone else's. And use more detail than "it's not working" when you ask your question.
lewax00
3-Dec-12 11:35am
View
"I am facing some problem Creating this applicaiton" and what problem would that be? We can't read your mind.
lewax00
3-Dec-12 11:00am
View
The assignment seems pretty detailed, what are you stuck on?
lewax00
3-Dec-12 10:56am
View
In a few places while accessing C you use "i <= k", this should be "i < k", because the indexes for an array of size k will be 0 to (k - 1). Replacing those should fix that problem I think.
lewax00
3-Dec-12 10:49am
View
That sounds like you're writing something after the end of C, it's hard to say without seeing the rest of the code.
lewax00
3-Dec-12 10:30am
View
If it's a small program it probably won't matter (i.e. if this function is only run a few times) because the memory will be reclaimed when the program exists, but what is the error?
lewax00
1-Dec-12 0:16am
View
Help you with what? All you've done is post your assignment. Start working on it, and if you get stuck, ask for help then. No one here is going to write it for you.
lewax00
30-Nov-12 21:59pm
View
I don't see why he'd "have to" use either 21 labels or 21 string variables...he could just as easily use 1 multiline label and a single string collection...
lewax00
30-Nov-12 21:54pm
View
What have you tried so far? We aren't going to do your homework for you, but we will help if you have a specific problem.
lewax00
29-Nov-12 16:57pm
View
Then seek to 0. Did you read the page he linked to at all?
lewax00
29-Nov-12 14:25pm
View
That's not what they were looking for...try reading their question again. Plus your solution adds an extra UserInput1 to the Sum (the first iteration will add that amount, but it was already set to that amount).
lewax00
29-Nov-12 14:21pm
View
Are you sure you really need a Regex for this? Why not just check the length of the string?
lewax00
29-Nov-12 14:19pm
View
So is it C# or Objective-C? Those are two entirely different languages...please fix your tags unless you really mean both.
lewax00
27-Nov-12 12:37pm
View
Then you'll have to be a bit more specific because "generate variables" doesn't make any sense to me.
lewax00
27-Nov-12 12:21pm
View
I love how all three answers capitalize the name of the array differently, but all have the same name. But the use of a variable for the length is a good idea.
lewax00
27-Nov-12 12:12pm
View
Great minds think alike? :P (A little cleaner than mine though.)
lewax00
27-Nov-12 12:03pm
View
That's why you switch on the ID of the menu item, not the item itself.
lewax00
27-Nov-12 10:55am
View
Using a switch isn't going to make this shorter, in fact it would actually make it a little longer...why do you want to use a switch for it?
lewax00
26-Nov-12 15:05pm
View
I don't think there's much he can do about that, it's how scanf works. If you put in a number that large it rolls over into negatives (of course he could check for numbers less than 0, but maybe he wants to allow negative numbers).
lewax00
26-Nov-12 12:57pm
View
He told you where it's located, "/boot/grub/". And it's not just one file, but many. Linux does not work the same way as Windows, configuring the boot loader will be a different process. You could probably get better help at a forum dedicated to Ubuntu or GRUB, I'm sure there are many of both.
lewax00
26-Nov-12 12:51pm
View
What do you mean "did not work"? Did it fail to compile, or did it not do what you expected it to do? You need to add some more details.
lewax00
25-Nov-12 0:59am
View
There's not enough information here to tell, but I'm guessing you are probably trying to get it before it's created. A little more context would help (if I'm right, then specifically which overridden method this is in or called from).
lewax00
21-Nov-12 13:21pm
View
By "brand new" do you mean you created an empty project, or you opened an existing project you downloaded from somewhere else?
lewax00
21-Nov-12 13:16pm
View
What does a protein have to do with a file system? You really need to add more details...
lewax00
21-Nov-12 12:52pm
View
Or a binary search. (Assuming it is sorted or can be sorted without impacting the requirements, of course.)
lewax00
21-Nov-12 10:12am
View
"where i have made the code BIG" I think your attempt to format the code broke the way it displays. Add a comment where you're having your error instead, that way we can actually see the code.
lewax00
21-Nov-12 10:06am
View
I updated it to match only whole lines. You should take the time to learn regular expressions, they can be very useful.
lewax00
21-Nov-12 0:28am
View
You might want to try asking there, the author likely knows it best.
lewax00
20-Nov-12 17:38pm
View
There's a lot of code there so I haven't looked at all of it, but are you sure the calc process is returned by Desktop.GetInputProcesses()?
And just a point of simplification, your method for launching new processes seems a little over done, you don't need to access to Windows API to do it, you can just use the Process class (which you are using in some places), unless there's something you're doing with the Windows API call that isn't done by Process.
lewax00
20-Nov-12 10:30am
View
That depends, are you trying to run Python or IronPython?
lewax00
19-Nov-12 11:54am
View
Don't use Direct X11. If you need it to run on XP, you'll probably want to use DirectX 9.
lewax00
15-Nov-12 12:51pm
View
To comment on another person's answer, press the "Have a Question or Comment?" button, to edit your question, use the "Improve question" button, and to reply to a comment use the "Reply" button. Don't add a solution unless it is actually a solution to the question...
lewax00
14-Nov-12 11:40am
View
I'm sure someone here is willing to help you. The key word here is "help", you will have to do something yourself before anyone can help you though, no one here is going to do your homework for you.
lewax00
14-Nov-12 11:35am
View
Please do not repost your question. If you need to add clarification to the original use the "Improve question" button.
lewax00
13-Nov-12 13:12pm
View
That looks like it should work. See, you can figure it out! :)
lewax00
13-Nov-12 12:01pm
View
I love the analogy. :)
lewax00
13-Nov-12 10:28am
View
Open the Logcat window in Eclipse and you will see it, if you don't, change your filter level on Logcat (I don't remember how off the top of my head, but if you Google for "logcat eclipse" you should find some information).
lewax00
13-Nov-12 9:45am
View
Then what you read is mistaken. In an PC CPU a byte is 8 bits. Period. This is a limitation that exists on a physical level. 8 bits only have 256 possible values, and since one of those is 0, the maximum is 255.
lewax00
12-Nov-12 21:37pm
View
Well for starters, you can't represent 256 with a single byte...
lewax00
12-Nov-12 19:51pm
View
You don't have to convert anything to binary. Everything on a computer is binary already, that's how computers store data (all data, all the time).
lewax00
12-Nov-12 11:56am
View
Not sure why it would work with one but not the other, but you can simplify some of this using the System.IO.File class (specifically, ReadAllBytes and WriteAllBytes), the documentation is here: http://msdn.microsoft.com/en-us/library/system.io.file.aspx
Specifically:
FileStream fs = new FileStream(pathold, FileMode.Open);
Byte[] Doc = new Byte[fs.Length];
fs.Read(Doc, 0, (int)fs.Length);
fs.Close();
Can be shortened to:
byte[] Doc = File.ReadAllBytes(pathold);
And:
FileInfo fi = new FileInfo(LaunchedFile);
FileStream fs = fi.Create();
byte[] Data = new byte[0];
Data = ((byte[])doc);
int ArraySize = new int();
ArraySize = Data.GetUpperBound(0)-1;
fs.Write(Data, 0, ArraySize);
fs.Flush();
fs.Close();
Can be:
byte[] Data = new byte[0];
Data = ((byte[])doc);
File.WriteAllBytes(LaunchedFile, Data);
Less steps makes it easier to diagnose.
lewax00
12-Nov-12 11:27am
View
"As many other there is not problem with the file if it doesn't have the .*x ending. But if you have the .docx etc you get a file corrupt message"
Are you saying that you're changing a file from (for example) "abc.doc" to "abc.docx" and it doesn't open?
lewax00
7-Nov-12 11:21am
View
It's an emergency for you perhaps, but I don't think anyone else here sees it as an emergency. Next time, plan ahead, because we aren't here to do your work for you.
lewax00
5-Nov-12 12:24pm
View
You know, it might be easier to have just one account. (I find it very unlikely that you are not the same person, considering this account only has comments on questions from the OP's account...)
lewax00
5-Nov-12 11:03am
View
Please add additional information by editing your question (click "Improve question"), if you add it as a solution it will look like your question has already been answered.
lewax00
31-Oct-12 11:56am
View
It depends on the device, for example I install a printer driver as part of a product installation this way:
rundll32 printui.dll,PrintUIEntry /if /b "Printer" /r "PORT:" /f "path\to\driver.inf" /m "Name of Driver"
But this is specific to printers obviously (the printer driver does make use of .dlls and some other files as well, it's not just the .inf).
lewax00
30-Oct-12 12:29pm
View
The total is 16 exabytes (I don't think there is even a super computer today with that much RAM, but I might be wrong). This is assuming that each byte has an address, but addresses may just as easily be for words (which can differ my architecture) so you might reasonably expect as much as 128 exabytes (assuming each word was 8 bytes/64 bits). Of course both of these numbers are ridiculously high for today's computers, but maybe someday we'll utilize it fully.
lewax00
30-Oct-12 12:17pm
View
I'm not sure that's entirely true. The compiler also as to store the value, and it probably makes some assumptions about how large that value can be (for example, it seems unlikely that a 32-bit compiler would allow for array sizes greater than 2^32-1).
lewax00
19-Oct-12 10:03am
View
I know this is late, but it does not compare only the first character, you should look up what inet_pton does: http://www.kernel.org/doc/man-pages/online/pages/man3/inet_pton.3.html
lewax00
17-Oct-12 16:36pm
View
The link doesn't seem to work. But a picture isn't what we need, we need to see some context, primarily in the form of code.
lewax00
17-Oct-12 11:36am
View
VB.Net is heavily reliant on the .Net framework, so you aren't going to get any simple conversion from VB.Net to anything that doesn't run on .Net (C#, F#, IronPython, C++/CLI, etc.), but that won't solve your problem from the sounds of it. You will probably have to rewrite your application, unless you can run it on Mono.
lewax00
17-Oct-12 11:33am
View
Make a struct with real and imaginary fields instead of doing multiple arrays, it will probably be easier.
lewax00
17-Oct-12 11:32am
View
Python supports complex numbers as a basic type, if you aren't stuck with C (wasn't sure from your post): http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex
lewax00
15-Oct-12 12:36pm
View
You might want to change your display name, using your email is basically putting out an invitation for spammers.
I've heard it's possible (in either VMWare or VirtualBox), but I've heard it's difficult to get it working properly. Google will be of more help. (And this is primarily a programming site, so you may not get an answer to your question, which is not a programming issue, just a heads up.)
lewax00
9-Oct-12 11:07am
View
For staters it doesn't matter if you use Visual Studio or not, that has no effect on how you would handle an XML file. And what is "Visual C++"? Do you mean native C++, or C++/CLI (C++ with .Net)?
lewax00
29-Sep-12 17:03pm
View
Yup.
lewax00
28-Sep-12 19:12pm
View
It didn't when I installed it to my machine. I think what happens is the first so many programs that add their icon there get marked that way, and any after that don't (I had a lot of programs in my tray already).
lewax00
26-Sep-12 15:04pm
View
Is Google broken? These problems have been explored in detail by many people, if you don't want to do your homework yourself at least make an effort to copy the answers yourself.
lewax00
26-Sep-12 14:32pm
View
No one here is going to help you with that. We're developers, not script kiddies. Not to mention, that's probably illegal. Reported.
lewax00
24-Sep-12 11:30am
View
So what exactly is your question? You provided a link to a question with a solution, and pasted the solution, but you haven't asked anything.
lewax00
21-Sep-12 13:02pm
View
Not sure if it's related to your problem of not, but I'd like to point out in these lines:
u[k].q[i].token_bucket_min_depth = u[k].q[i].MRTR * 1000 * 5/8;
u[k].q[i].token_bucket_avg_depth = u[k].q[i].STR * 1000 * 5/8;
u[k].q[i].token_bucket_max_depth = u[k].q[i].MSTR * 1000 * 5/8;
5/8 will evaluate to 0 as it's written. So all three of them become 0 (0 * 1000 * other value = 0). You should change it to "5./8.", "5.0/8.0", ".625", replace "1000 * 5/8" with "625", or something along those lines if you actually want something other than 0.
lewax00
20-Sep-12 11:39am
View
If you haven't found an error, why do you think there is one?
lewax00
20-Sep-12 11:28am
View
How are we supposed to know? What is it doing that you don't think it should? What do you expect it to do? We aren't mind readers.
lewax00
17-Sep-12 16:50pm
View
You'd probably have better luck at http://forum.unity3d.com/ , probably a lot more people there familiar with it.
lewax00
17-Sep-12 13:28pm
View
From the page he linked to: "When opening a volume or removable media drive (for example, a floppy disk drive or flash memory thumb drive), the lpFileName string should be the following form: "\\.\X:". Do not use a trailing backslash (\), which indicates the root directory of a drive."
There's your answer, it's just used to tell the function you're opening a drive. It has no meaning on its own, just in the context of the function.
lewax00
17-Sep-12 13:02pm
View
Regardless, as a normal path it makes no sense. I may be something special for that function, read the documentation for it (I did see mention of "\\?\" but not "\\.\"
lewax00
17-Sep-12 12:22pm
View
But if I use Google instead, how will I ever become a platinum enquirer?! :P
lewax00
17-Sep-12 11:56am
View
Yeah the command line spit an error about that when I tried to use it as a path, I'm not sure what a UNC path is but I did get that Windows didn't like it...and now I'm off to Google to learn. (Edit: never mind, I've used those before, just didn't know the name...)
lewax00
17-Sep-12 11:30am
View
Ah the makes more sense, it sounded as if you were trying to make a file on each machine to store information about the sockets and IPs of all the other machines. In that case you might need to use something to control access to the file you're writing to if each thread writes to the file, or just use a database, because those generally handle multiple incoming writes well.
lewax00
17-Sep-12 11:03am
View
I see what you're doing, I just have no idea why. It looks like you're basically creating the same file in 100 different machines, there are easier ways to accomplish that (like just copying the file).
lewax00
17-Sep-12 11:01am
View
You realize the person you're responding to is not the person asking the question right? Directing questions at him won't help much, he has the same information you do...
lewax00
13-Sep-12 12:44pm
View
Only for creating accounts usually, not logging in.
lewax00
12-Sep-12 14:33pm
View
I've done some weird tricks to avoid duplications in the case of re-used using statements with lambdas, it can be a bit awkward though. In the end it doesn't save you much typing, but it can make refactoring easier.
lewax00
12-Sep-12 14:27pm
View
Sure it does: there is a data structure called a heap. Asking why such a data structure is useful makes plenty of sense.
lewax00
12-Sep-12 13:12pm
View
Based on his question title, I don't think he meant "the heap", just the general data structure.
lewax00
11-Sep-12 23:13pm
View
This is certainly not a "mini-project". What you're looking for is OCR (optical character recognition), and that is a rather complex subject. Currently there is no perfect solution (even the most accurate OCR engines tend to make quite a few mistakes). Google OCR if you want more information.
lewax00
11-Sep-12 23:10pm
View
I have to agree with Mohibur, that doesn't look valid. It's probably a typo (but if it does compile...then it's very interesting because it's the first I've heard of it).
lewax00
10-Sep-12 14:17pm
View
A.C to use the one in namespace A, B.C for the one in namespace B.
lewax00
10-Sep-12 11:09am
View
You can't. Think about how big of a security risk that would be.
lewax00
4-Sep-12 11:47am
View
It's impossible to know without seeing the code you're using to create the dialog...
lewax00
31-Aug-12 13:17pm
View
That's not necessary, if the grade is 85 it would fails the first condition (>= 90), then the second condition will be checked (>= 80), then it will assign the grade and exit the if-block. Nothing else will be evaluated. Those less than statements are already handled implicitly (e.g. a grade cannot make it to the check for B unless it is less than 90, so that will always evaluate to true in any case the evaluation occurs, because in any case where it is false the evaluation is never made).
Show More