Tampilkan postingan dengan label can. Tampilkan semua postingan
Tampilkan postingan dengan label can. Tampilkan semua postingan

Various Packages That A Person Can Find In IT Support Department

Rabu, 02 April 2014

0 komentar
By Mary Baker


The IT Support department is an important one in all organization given the fact that the world is making major development concerning technology. Organizations are now using various advanced systems that help them run different services and functions that they deliver to the public. The other main reason for the inclusion of the aforementioned section is that, there are other incompetent staff members when it comes to computer issues.

As such, it becomes important for the managers of an organization to think of incorporating the above section. The people who work under this area are individuals who have the knowledge and skills in dealing with different computer and telephony issues. The mention of this immediate point makes it clear that not once, do employees have difficulties when making or receiving calls. In order to sort out the issue, an individual has to check if there is a signal and if all the cables are in place.

As simple as it may seem, there are people who do not know all the steps that one should implement in installing a software. If you that type of person, you should not worry. So long as your organization has a section that has specialists who deal with such issues, go ahead and ask for help. The problem will be sorted within a short time.

The issue of networking is an extensive area that results to various problems that face staff members working in an organization. When there is such a problem, an individual cannot connect to the internet while using his or her computer. A wrong internet protocol address and faulty cables are the main causes of such problems.

An organization or institution should have people who know how to go about assembling new personal computers. This procedure is usually challenging to many people who do not have much information about these machines. The services that the above specialists offer prove how important they are to the company. For the personal computer to work, all the components have to be on their correct slots and ports.

Although it seems an easy task, there are people who do not know how to update their software and systems. They usually encounter such problems since they do not know where to set the proxy addresses that can allow the software to connect to the internet in order to search for the new versions. The work of the responsible is to show and set such variable for these people. This is another services offered under the mentioned section.

The mentioned section is the one that is responsible for developing software and systems that the company can use during its service delivery to its subscribers. Being in a position to make such systems, an organization is able to come up with customized systems for internal use. The aim of such systems is to make other staff members to find it an easy task to do their work.

The importance of having an IT Support department are many. This department offers different services. These services are crucial.




About the Author:



Read More..

Wonderful Things You Can Do On Your Ipad

Minggu, 30 Maret 2014

0 komentar
By Johnny McDaniels


iPads are very simple for people to use. Simply touch, add apps, and be on your way, right? There is a lot to learn about iPad usage and this article can help you learn everything you need to know.

Did you know that you can create folders on your iPad? Just drag on app onto another one to create a folder. Doing so creates a folder containing both of these apps. You can rename the folder whatever you want.

Are you finding it annoying to receive constant messages from your iPad asking if you are interested in accessing a wifi network that it has detected? Get rid of this by going into the settings menu. Select Wi-Fi and then turn the Ask option off.

Shortcuts will help you send messages quickly. Just tap your space bar two times as you type a sentence, and a period and space will appear at the end. This means you do not have to do it yourself manually, and you have more free time to compose messages to those you know.

Do you get annoyed by the battery charge icon on your iPads screen? It is easy to turn off. To turn off, simply enter the Settings menu. Look under the General section to locate Usage. You can quickly turn on or off the battery display.

It is possible to easily change the default search engine from Google to your preferred search engine on your iPad. Simply navigate to Settings, Safari, and then Search Engine. From here, you can change your search engine preference to Yahoo, Bing, etc. if you wish.

Its now possible to quickly mute the iPad. When iPads were first out, there werent any buttons on it specifically for mute. With the iOS 4.3, you can now use the lock switch to mute the sound. Hold down the volume-down button to mute your iPad.

If you are a person that needs to have a manual with whatever you buy, you need to download the iPads one should you need it. Apple doesnt include manuals with their products in order to maintain a minimalistic image.

It can be irritating hearing a chime every time you get an email on your iPad. You can get rid of this feature, if you find it annoying. Go to Settings then General. Then select Sounds. Now you can disable the mail sounds or fix the level.

You can mute your sound quickly on your iPad. The original iPad did not have a mute button. Now the lock switch can be used to mute the iPad. To quickly mute your iPad now, just press and hold the volume-down button.

Now you can get started with your iPad since you understand it. To take advantage of everything the iPad has to offer, use the advice provided in this article. Be sure youre aware of everything it has to offer so you can get the most out of your investment!




About the Author:



Read More..

The Corrs What Can I Do

Selasa, 04 Maret 2014

0 komentar








Lyrics



I havent slept at all in days

Its been so long since weve talked

And I have been here many times

I just dont know what Im doing wrong



What can I do to make you love me

What can I do to make you care

What can I say to make you feel this

What can I do to get you there



Theres only so much I can take

And I just got to let it go

And who knows I might feel better

If I dont try and I dont hope



What can I do to make you love me

What can I do to make you care

What can I say to make you feel this

What can I do to get you there



No more waiting, no more aching

No more fighting, no more trying



Maybe theres nothing more to say

And in a funny way Im calm

Because the power is not mine

Im just gonna let it fly



What can I do to make you love me

What can I do to make you care

What can I say to make you feel this

What can I do to get you there



Love me


Read More..

Can you write a program in Java for beginner to intermediate level coding

Rabu, 05 Februari 2014

0 komentar



Q. Can you write code to generate a 4 digit number, where the same number cannot be repeted? For example, 1234 is valid, but 1124 or 1214 are invalid because the value 1 is repeated.
A. Firstly, write some pseudo code

1. Have an array or list of numbers - 0,1,2,3,4,5,6,7,8,9
2. Shuffle these numbers randomly in a list or array.
3. Pick the first 4 number from the list or array
4. concatenate these 4 randomly selected numbers and return them as a 4 digit result.

Now, you can write the code as shown below:


import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class GenerateRandomNumber2 {

private static final int GENERATION_COUNT = 10;
private static final int NUMBER_OF_DIGITS = 4;

public static void main(String[] args) {
for (int i = 1; i <= GENERATION_COUNT; i++) { //e.g. generate 10, 4-digit numbers
System.out.println(generateNumber(NUMBER_OF_DIGITS)); //e.g. generate a 4 digit number
}
}

public static String generateNumber(int size) {
//input validation -- i.e. precondition check
if(size <= 0 || size > 10) {
throw new IllegalArgumentException("Invalid size: " + size);
}

//power of varargs to create a list of 10 numbers from 0 to 9
List<Integer> listOfNumbers = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);

//shuffle the numbers using the Collections utility class
Collections.shuffle(listOfNumbers);

StringBuilder sb = new StringBuilder(4);

//get the size - for e.g first 4 shuffled numbers
for (int i = 0; i<size; i++ ) { //e.g. loops 4 times
sb.append(listOfNumbers.get(i)); //string builder is used for mutation
}

return sb.toString(); //convert to string object
}
}



Q. What if you didnt have the shuffle method in the Collections class?
A. Here is the pseudo code

1. Have an array  - 0,1,2,3,4,5,6,7,8,9
2. Loop through these numbers 4 times and randomly pick an index.
3. Once a number from an index is used, set the number on that index to say -1 so that the same number cannot be picked again.
4. If the same index was randomly picked, try again.
5. concatenate these 4 randomly selected numbers and return them as a 4 digit result.

public class GenerateRandomNumber {

private static final int GENERATION_COUNT = 10;
private static final int NUMBER_OF_DIGITS = 4;

public static void main(String[] args) {
for (int i = 1; i <= GENERATION_COUNT; i++) { //e.g. generate 10, 4-digit numbers
System.out.println(generateNumber(NUMBER_OF_DIGITS)); //e.g. generate a 4 digit number
}
}

public static String generateNumber(int size) {
// input validation -- i.e. precondition check
if (size <= 0 || size > 10) {
throw new IllegalArgumentException("Invalid size: " + size);
}

int[] myNumbers = new int[10];

//store numbers 0 to 9 in an array
for (int i = 0; i < myNumbers.length; i++) {
myNumbers[i] = i;
}

StringBuilder sb = new StringBuilder(4);
int index;

for (int i = 0; i < size; i++) {
index = (int) Math.floor(Math.random() * 10); // pick a random index
if (myNumbers[index] >= 0) {
sb.append(myNumbers[index]);
myNumbers[index] = -1; // mark it as used with -1
} else {
i--; //try again if this index was already used i.e. value is -1
}
}
return sb.toString();
}
}


Some follow up questions:

Q. Was the above method thread-safe?
A. Yes, as it uses local variables and there is no shared data.

Q. How will you extend the above code so that each number generation happens on its own thread?
A. Spawn new threads as shown below


public static void main(String[] args) {
for (int i = 1; i <= GENERATION_COUNT; i++) { //e.g. generate 10, 4-digit numbers
Runnable r = new Runnable() { //e.g. generate a 4 digit number in its own thread
@Override
public void run() {
System.out.println(generateNumber(NUMBER_OF_DIGITS));
}
};

Thread t= new Thread(r, "thread-" + i);
t.start(); //executes the run( ) method
}
}

Q. How will you extend the code to retry when there is a duplicate 4 digit number?
A. Here is the added code to return only unique 4 digit numbers


    private static final int GENERATION_COUNT = 10; 
private static final int NUMBER_OF_DIGITS = 4;

private static final Set<String> setOfGeneratedNumbers = Collections.synchronizedSet(new HashSet<String>(10));

public static void main(String[] args) {
for (int i = 1; i <= GENERATION_COUNT; i++) { //e.g. generate 10, 4-digit numbers
Runnable r = new Runnable() { //e.g. generate a 4 digit number in its own thread
@Override
public void run() {
System.out.println(getUniquelyGeneratedNumbers(NUMBER_OF_DIGITS));
}
};

Thread t= new Thread(r, "thread-" + i);
t.start(); //executes the run( ) method
}
}

public static String getUniquelyGeneratedNumbers(int size) {
// input validation -- i.e. precondition check
if (size <= 0 || size > 10) {
throw new IllegalArgumentException("Invalid size: " + size);
}

//generate a number first
String genNumber = generateNumber(size);

//check if the generated number was already generated, if yes -- generate another number
while(setOfGeneratedNumbers.contains(genNumber)) {
genNumber = generateNumber(size);
}

//store the generated number in the set
synchronized(setOfGeneratedNumbers) {
setOfGeneratedNumbers.add(genNumber);
}

return genNumber;
}



Q. Can you see any flaw(s) in the above code?
A. Mathematically you can only generate  5040 numbers. This was calculated as described below:

1. There are 10 numbers from 0 to 9.
2. You cant repeat the same number, so first digit can be chosen from 10 possible numbers, the second digit from 9 possible numbers, the third digit from 8 possible numbers, and the final and fourth digit from 7 possible numbers.
3. Hence, the number of 4 digit number combinations you can have is -- 10 * 9 * 8 * 7 = 540.

Flaw 1:

So, if the GENERATION_COUNT  is set to 5041, the while loop in the getUniquelyGeneratedNumbers(int size) method will never return false, and you will end up with an endless loop.


Flaw 2: 

The above code generate a new thread for each execution. This can potentially create 5040 new threads, which can be expensive new real production code and also can adversely impact performance as the CPU spends more time in context switching. It is best to use the Java 5 executor framework that lets create a pool of thread and reuse them.
Read More..

Copyright © 2010 Computer Tips and Trick | Powered By Blogger