riahc3 50 Â Team Colleague

Does the Files uploader still not work with all your extensions disabled??

FOR NOW, it seems to be working correctly....

stultuske commented: the 'FOR NOW' really shows your appreciation for those making it work ... +0
riahc3 50 Â Team Colleague

I hope you're not changing code that someone else wrote just to suit your own aesthetic preferences. That's an excellent way to introduce bugs.

Yes, I do. As of today any time I see x+=y or x++, as long as I am 100% sure of the change, I change it to x=x+y and x=x+1 the way it is suppose to be expressed. And as of today, I have never introduced a bug because of it.

I'd also argue that your preference is unconventional and will cause programmers to stumble over your code not because they don't understand it, but because they don't trust that you understand it. When a language supports x += y or x++ for example, any use of x = x + y will be viewed with suspicion; this is justified, in my opinion, because bad programmers are the ones that use such constructs without good reason.

Unconventional? I dont understand it? How can I understand code that is clearly written?

My reason is good, if not the best: Programmers should code the easiest way possible for them to understand their code.

If you think for writing x++ instead of x+1 make a programmer understand his code a lot easier, then sadly we are still stuck in that 50s-60s (I think that was the time Fortran was introduced) programming mentality where code should be as simple as possible and for the machine to understand it, not us.

riahc3 50 Â Team Colleague

Care to share?

http://www.google.com

pritaeas commented: Really? -3
riahc3 50 Â Team Colleague

you're repeating code.

In all sincerity, I have never really cared. I perfer repeating code 100 times and program takes up 100MB in memory rather than not repreat code and the program take up 1MB. To me, a program should be made so I can understand and it does what it is suppose to do.

Ive said several times I am not a great programmer, I just program (and dont like it) so....thats my point of view and Im sticking to it.

riahc3 50 Â Team Colleague

1- write a java programm which calculate the Faculity of a given numbe n (n!).
2-a) write a java programm which reads a typed number and prints it out : if n neative : "input number is negative"
if n positiv : "input number is positiv" , if n = 0 : "input number is Zero"
2-b) epand your program : if input number n is positiv then : is it odd or even ? ( use if else struct inside the posivie 2-a) )
2-c) expand your program : if the input nuber is between 1 - 7 then print out the corresponding day 1 = Monday .... 7 = sunday ( use Switch construct )
3-a) write a java program that : reads 10 numbers and gives out the max . min , and the Midvalue ( use "for loop")
3-b) implement the program from 3-a) with "while loop"
3-c) implement the program from 3-a) with "do-while-loop" in this case positiv numbers are to be typed as input and as soon as the input number is negative the program will give the results (min , max , midvalue ) and stop .
4- make a java-class which solve Question 1 (n!) with for-loop . the number n is to be typed with the keyboard.

Here we go:

1: No idea what is a Faculity
2a:

Scanner input=new Scanner(System.in);
        try
        {
            do
            {
                System.out.println("Insert a number");
                String …
ddanbe commented: first time I do this -3
riahc3 50 Â Team Colleague

There are so many JSON Java libraries that would make returned JSON marshaling so easy and simple to do Jackson, Gson, JSON and in 2 months time you didn't come up with something better...

You really did not read the thread did you?

This is a proof of conecept; NOT a real application. It was just made to show how the API interacts with different lanaguages.

This thread was made about 3 months ago and YOU didnt come up with anything, right? So then shut the fuck up :) or make "something better".

riahc3 50 Â Team Colleague

Ill give you a example:

for (int i=0;i<99;i++)
{
    if (i>0)
    {
        break;
    }
    else
    {
    //do whatever you want
    }
}

This makes it loop only once (for whatever reason you want). Do note, that this may or may not apply to your situation.

gusano79 commented: It looks like you didn't even try to understand the question. Also, that code is an example of something nobody should ever write--everything outside the "else" block is meaningless and wasteful. -2
riahc3 50 Â Team Colleague

I dont have the slightest clue what you are trying to acomplish. That said...

You can do in your Player function:

return playerChar.split("(?!^)");

Then in your main:

String[] PeopleDoSomeWeirdShit=User.Player(1);

And it will work. To access the result:

System.out.println(PeopleDoSomeWeirdShit[0]); //Will print out "W"
System.out.println(PeopleDoSomeWeirdShit[1]); //Will print out "a"
System.out.println(PeopleDoSomeWeirdShit[2]); //Will print out "r"
System.out.println(PeopleDoSomeWeirdShit[3]); //Will print out "r"
System.out.println(PeopleDoSomeWeirdShit[4]); //Will print out "i"
System.out.println(PeopleDoSomeWeirdShit[5]); //Will print out "o"
System.out.println(PeopleDoSomeWeirdShit[6]); //Will print out "r"

For prettier stuff:

for (int i=0;i<PeopleDoSomeWeirdShit.length();i++
{
    System.out.print(PeopleDoSomeWeirdShit[i]); //Will straight out print "Warrior"
}
riahc3 50 Â Team Colleague

Stacktrace. I thought it was obvious that foldername was a placeholder, sorry.

riahc3 50 Â Team Colleague

Thank you for the quick response bguild. That was carelessness on my part about the Play method naming.

Personally, dont listen to bguild; In most cases, noone sees your code except you. You dont need to write how a set of code conventions state. You write the code however it is clearest/makes sense to you. First, write the code how it is clearest to you, the developer. THEN do things to better the code, optimize, etc.

I think a precomplied jar/exe would have been nice to test your program out...Was your program free choosing (you choose to do this) or assigned?

riahc3 50 Â Team Colleague

Hello

I want to make some shortcut keys (example Alt+K) to do a "onclick" on a button. How can I do this?

Daniweb for example has that "Ctrl+B" makes the text bold.

Thanks

Troy III commented: A correct answer has been given to you - you need to say "THANK YOU!" and mark your thread as "Solved!" -2
riahc3 50 Â Team Colleague

Please, don't think that I an advocating the attitude of the original poster. I would be very happy to repost my comments in a new and constructively titled thread.

No attitude at all. I like the helpfulness of the members but I hate the pig behind the lipstick.

It troubles me that just because of this thread you posted a problem though :( I hope this is not all cases....

riahc3 50 Â Team Colleague

Read the full sentence before getting insulted. Nobody can seem to reproduce the issues to the severity that you suggest.

Man Im really trying to stay calm but your stupidity grows and grows.....

pritaeas reproduced the exact issue with the severity that I suggested. He shows screenshots. What else do you want? Pay me a plane ticket and Ill show it on your PC if thats what you need!

Oh, the irony.

The curious thing is that you can "read everything" but you dont understand a picture....

In IE only, which we've confirmed and are working on

In this thread, in that post if the only moment you confirmed it and are working on it. If its in another thread, I apoligize.

However, you say it happens all the time regardless of browser, which I cannot reproduce or find anyone aside from you who can do so. I'll also note that the confirmed problem is only a subset of the problems you claim work together to make Daniweb completely unusable for you. I'm truly sorry, but I can't fix a bug that I can't reproduce. At this point (and until there are reproduction steps) I can only conclude one of two things, neither of which you'll like: You're exaggerating about the severity of the problems, and it's really nothing more than the confirmed cursor bug in IE. The problems as stated are real, and as bad as you say, but they're environmental in …

happygeek commented: Trolls should not be fed... +0
riahc3 50 Â Team Colleague

A great example just happened to me of the shitty posting system here.....

I typed up a long post and for some reason, Daniweb logged me out. First, why does Daniweb allow me to write a post if I cant post unless Im logged it? Flaw. Anyways....

I noticed this and I tried to "Select All.........Copy" the textbox. ITS IMPOSSIBLE TO DO. Keyboard shortcuts, select with mouse and right click select/copy, edit select all copy, etc. IT DOESNT SELECT IT AND/OR COPY. And now I have to rewrite the entire post again.

And now a new bug is happening, when I post code, if I click on a certain area in the reply box, text Ive typed before, moves around to the bottom. Its just horrible.....

riahc3 50 Â Team Colleague

OK, please relax everybody. @Rutu3
Please show some evidence of having completed some work yourself. Your question is not specific enough either. This is not spam, just a poorly thought out question. So, please rephrase the original question and show any relevant work you've produced so far.

My post was not a "attack" in any way. Posts sadly dont have tones of voices :P

I was simply stating that there is no way to help and no base to help from if more information is not given.

riahc3 50 Â Team Colleague

1st, spamming is not allowed here and one of the reasons you have been ignored by many is that reason.
2nd, DETAILS. "website as a project so how to create database ,and connect asp page to C# code" is not a explaination of what you are trying to do. Do you want to print information from the database on the page? Do you want to read information from the page and insert it into a database? What database is this? What version of .ASP? DETAILS
3rd, We are not your mother and you are not our child: Spoonfeeding is not something that occurs here.

I hope that my post helps you make your post a lot better. Maybe then someone will help you....

Zorrro commented: Spamming?? Are u nuts? +0
riahc3 50 Â Team Colleague

Quoting on a cell phone is a bitch so ill just reply as normal

Dant - What I use to delete the BMP is that simple function from the Apache commons library. And the BMP is generated in the same program as I call that simple function.

Stul - First, calm the fuck down. That's first off. I haven't in any moment demanded anything or replied with a attitude until now. If you notice, I generate a BMP. Why on earth would I open that in Notepad?

More so, I never said "give me code". I have code and I know what it does but it won't delete it. I tried with the delete function in the File class as well, in case you think I still NEED code. I asked for tips why my code might not work

And last, I just said I went on my lunch break and that's why I couldn't put any code. As soon as I get back ill put some code.

Here is a tip for you: Next time instead of treating everyone with a attiude and like newcomers, READ THE ENTIRE THREAD. It will help you not look like a fool.

Thanks to the rest helping out :)

stultuske commented: wow-wee ... aren't we the adult. next time READ the actual posts, not just the ones you like -3