Slavi 94 Master Poster Featured Poster

bake

Slavi 94 Master Poster Featured Poster

Well, what you are doing is setting a couple of veriables to some initial values during creationg of objects of the type of your class. I assume you want to create an object of class EmployeeInfo and then set what the user enters to his existing variables. Is that right?

If so - in the main method you basically have to fix it completely
First create new object of type EmployeeInfo and name is for example employeeSlavi

Then if you want to set the wage of that employee you call the newly created object employeeSlavi and access its methods for setting its variables.

For example employeeSlavi.setWage(int number) , by doing so you can set the wage of the employee. In your case if you enter it manually you could get the value of variable number using the scanner object.

EDIT: - To answer your question - How would you know if the constructor has set your variables. Create an object of that type such as the employeeSlavi one. Then use System.out.println(employeeSlavi.getWage()); If this returns the value that you have initialized newly created objects to be, then it works

Slavi 94 Master Poster Featured Poster

You have already imported Scanner at the very beggining comment out/remove line 83

Slavi 94 Master Poster Featured Poster

Thank you, James . I guess it comes to preferrences whether to use 1 or other

Slavi 94 Master Poster Featured Poster

Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. I am wondering what is the actual difference between those methods?

Slavi 94 Master Poster Featured Poster

Do you have an Activation(product) key?

Slavi 94 Master Poster Featured Poster

“Strength does not come from winning. Your struggles develop your strengths. When you go through hardships and decide not to surrender, that is strength.”
- Arnold Schwarzenegger

Slavi 94 Master Poster Featured Poster

@Rubber, I have problem with Eclipse, apparently there is something wrong having Luna on debian 64 bit, they've given a solution where I had to manually change something in a file but I never found the file and gave up :( Installed windows 8 and I have to go on it everytime I code now >.>

Slavi 94 Master Poster Featured Poster

sake

Slavi 94 Master Poster Featured Poster

Show us your latest version of the code

Slavi 94 Master Poster Featured Poster

Yh ;( Do you have to use IE or is the problem solved and moved to Chromium?

Slavi 94 Master Poster Featured Poster

fame

Slavi 94 Master Poster Featured Poster

You could've told us what errors you get but from a first look, a/b/c are not deficed in the readData method

Slavi 94 Master Poster Featured Poster

Have you tried using a different browser, or try to select multiple characters at a different environment, such as text editor or something? Can't tell whether it is software or hardware problem w/o info :p

Slavi 94 Master Poster Featured Poster

Ok, so in order to find out whether it is a multiple, you can use the % operator, if it returns 0 then it is. If so, just divide the second number to the first number and u'll get the number you want. if you want to get all multiples of a number , up to 10 for example, you could do this

private int multiple;

public void findMultiples(int firstNumber){
     for(int i = 1; i<11; i++){
         multiple = i*firstNumber;
         System.out.println("Multiple at position "+ i+1 +"is "+ multiple);
     }
}

Is this what you need? I am sorry but as the others I am having troubles understanding the question

Slavi 94 Master Poster Featured Poster

So basically you enter first number 5, second 20 and you are trying to find which multiple it is? how about 20/5 = 4?

Slavi 94 Master Poster Featured Poster

I am not sure how to help you out but as you mentioned you've checked out about text editors, I am using SublimeText 3 , I found it really REALLY good, it highlights great, supports possibly 90% of all existing languages, it has AI involved and autofills every existing variable/method/like everything. If you have the time, and you haven't looked into it yet, go for it

Slavi 94 Master Poster Featured Poster

Not sure if @laah would work for you but if it doesn't perhaps you could give us some more information, if you could "ipconfig" and present us with the results and also "ping google.com" and also show that

Slavi 94 Master Poster Featured Poster

care

Slavi 94 Master Poster Featured Poster

I think stultuske's algorithm will give you a basic behaviour to satisfy your idea, perhaps you need a finish line or something as well? The algorithm won't be anything to worry about, its something really basic and will take no time to do, if you get stucked you can always ask in here for help. I think you'll have to spend quite some time though looking into game engines and desgining the cars (I assume you'd want them different models BWM,Mercedes :D etc ) I'd probably make the graphics first and then start the coding. Also, to begin with, go for 2D game I guess and have only 1 track to reduce the complexity. Wish I could point you to a game engine but I really can't remember what I used

Slavi 94 Master Poster Featured Poster

Unless you are going for an engine, cool graphics and things, wouldn't that be similiar to a maze solver? If so, you can start from there

Slavi 94 Master Poster Featured Poster

That example doesnt make much sense to me either but perhaps this will give you more look into the big O notation, it is part of a book "Data structures and algorithms in Java"

You might think that in comparing algorithms you would say things like “Algorithm A is twice as fast as algorithm B,” but in fact this sort of statement isn’t too meaning- ful. Why not? Because the proportion can change radically as the number of items changes. Perhaps you increase the number of items by 50%, and now A is three times as fast as B. Or you have half as many items, and A and B are now equal. What you need is a comparison that tells how an algorithm’s speed is related to the number of items




Insertion in an Unordered Array: Constant Insertion into an unordered array is the only algorithm we’ve seen that doesn’t depend on how many items are in the array. The new item is always placed in the next available position, at a[nElems], and nElems is then incremented. Insertion requires the same amount of time no matter how big N—the number of items in the array—is. We can say that the time, T, to insert an item into an unsorted array is a constant K: T = K In a real situation, the actual time (in microseconds or whatever) required by the insertion is related to the speed of the microprocessor, how efficiently the compiler has generated the program …
Slavi 94 Master Poster Featured Poster

Metasploit was meant to be one of the things to go through of my course Practical Network Security, that took place in June this year. However, the course was ruined a bit as a company that was meant to teach us didn't show up and the teachers had to do day to day schedules to cover the course with some basic things and we didn't get to play around with quite many things that we were promised to. However, I just came across This video of how to gain access to windows 8 using Metasploit. I am wondering would that also work for windows 7? or Linux? Why?

Also, I guess its one of the Must Know things to be a pentester, so I guess i'll have to learn to use it, therefore, if you have/know any good guides, please DO share it/them :)

Slavi 94 Master Poster Featured Poster

dare

Slavi 94 Master Poster Featured Poster

And if you decide to go for keylogger in java, read this

I'd go for C instead if I had to, although spying is not a good thing! :D

Slavi 94 Master Poster Featured Poster

?

Slavi 94 Master Poster Featured Poster

Are you using a DNS assigned by your ISP? Did you get a static IP by your ISP or is it dynamic?
And you answer your question, nop haven't experienced that before, in fact never had any DNS issues

Slavi 94 Master Poster Featured Poster

Cheers James

Slavi 94 Master Poster Featured Poster

I think g++ (g++ filename)is inbuilt but for starters it might be a good idea to take a look in an IDE, for example Code Blocks it is out of charge and is one of the best C++ IDEs I've came across

Slavi 94 Master Poster Featured Poster

Oh, just a question. How can I make the animations? Do I make them in a video editting software?

Slavi 94 Master Poster Featured Poster

Love it James, especially the part with the animation. I haven't done anything animation wise in JavaFX and I think this is amazing idea, thanks!

Slavi 94 Master Poster Featured Poster

Hey guys,
I made the game Rock Paper Scissors where 2 players can play against each other. Here is my client's GUI ( The server doesn't need 1) and I was wondering what else to do to make it better looking/more "advanced". Any feedback is appreciated - The entire GUI and styling is done using SceneBuilder (JavaFX) . The game works great

e4ca9769b5176af920baa4dfd7bd0f93

Slavi 94 Master Poster Featured Poster

sick

Slavi 94 Master Poster Featured Poster

Not sure if vulnerability or just a bug but this guy passed over 7000 points on the activity stream lol

c6be4f5bc91fa7c125939e9b01f1a062

Slavi 94 Master Poster Featured Poster

I find it pretty easy to navigate through although I am not a windows fan. I barely use it mainly because I can't make eclipse luna to run on my linux but windows button + "S", makes life easier, you can just search for everything you need and all the system tools, just right click the start button. You don't really have to go to the start menu now at all, the search will bring you up any app you are looking for

Slavi 94 Master Poster Featured Poster

How about after each element added to the list check its size, if the size says it has 3 elements print it and set the list back to empty. Once all elements from the original big string/array are passed through, stop execution

Slavi 94 Master Poster Featured Poster

soap

Slavi 94 Master Poster Featured Poster

slim

Slavi 94 Master Poster Featured Poster

Turn off -> Turn on fixed it, weird stuff

Slavi 94 Master Poster Featured Poster

Uh, just woke up and for breakfast I got to run into a Linux problem .. I turned on my pc (Kali Linux) and it has no sound? Ik weird .. used to work until I went to bed ... I have xfce DE. The error I get when I click on the mixer is GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.

If I run alsamixer in terminal I get the following:

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied

cannot open mixer: Connection refused

I checked drivers, I have gstreamer1.10-good/bad/ugly/base already installed (It was working until this morning). After about 2 hours of google world I am about to give up as nothing really comes close to solve this .. any suggestions?

Slavi 94 Master Poster Featured Poster

extends keyword is part of the syntax showing that you are inheriting from a class. Why would you do that? Although you can go without it, once a smart person said, don't reinvate the wheel once it has been. With that said, no point of rewriting an existing code while you could use something that is already done. The example with the chair is very good. A more human one probably is about mammals. All mammals have common things, eyes, legs, arms, organs etc, we all move, jump etc but we do it in different ways. Instead of explaining in every class the same information we can just inherit it from a class that already has defined it. Further, in other languages such as c++, inheriting from multiple classes is allowed, while in java it is not. A walk around is to an interface, as many classes can inherit from a single interface

Slavi 94 Master Poster Featured Poster

Did you make a new user and it doesn't have sudo permissions?

Slavi 94 Master Poster Featured Poster

^Although they seem to like those that are out of that area, and sell daughnuts near by :p

Slavi 94 Master Poster Featured Poster

@Xlphos, Pretty sure that linux(in general) doesnt have troubles with NFTS although, it is meant to perform slower in some cases compared to Ext4 for example. Actually, If I were you I'd give it a go and format one of the existing empty partitions to EXT4 and see if SUSE can see it for installation. Something else quick that you can do is get ubuntu(or w/e else) on bootable flash and try to install it, check whether it is able to detect your partitions without asking to make 1(or multiple) automatically

Slavi 94 Master Poster Featured Poster

Did you try extracting your rar file? It is possible that the ISO image is inside as rar is a compression format

Slavi 94 Master Poster Featured Poster

Microsoft announced that support for windows 7 will stop in 2015, so if you are into windows os, it will probably be better go to after windows 8, as for new applications and additional features exist for it. Also, it comes to a personal point of view which of those 2 microsoft windows versions comes easier for you to use, give it a go and have a look at them is best answer you'll probably get

Slavi 94 Master Poster Featured Poster

You can start by looking at data types, and Scanner class used for interactions with users. If you have further questions, don't hesitate to ask. Would by nice to show what you have done so far

Slavi 94 Master Poster Featured Poster

Good articles get destroyed by weird spam, keep sharing @Geek thanks

Slavi 94 Master Poster Featured Poster

During the step where it asks you to create a partition, you can just select (an empty) already existing one instead

EDIT: Uh, not sure why SUSE won't list them, is that the actual problem you are facing?

Slavi 94 Master Poster Featured Poster

I just found out about Google location history, wtf it has track of my location during the past couple of years. Is there any way to remove that track from their servers? I assume the "Delete all history" will just disable my access to it?