Archive for June 16th, 2009
Posted on June 16, 2009 - by admin
Sudo Command Not Supporting Useradd In Linux?
I had configured visudo with a user to enable it to run commands on behalf of ROOT.
but the problem is that the local user who was given sudo power was not able to run useradd command. it shows an error that USERADD is not a command.
I had added user1 all=/usr/sbin/useradd in visudo but in vain.
please tell me what the problem is?
Posted on June 16, 2009 - by admin
Is It Possible That Someone Can Add You As A Friend On Yahoo Messenger And Then Hack Into Your Stuff?
I broke up with this guy and his cousin added me on Yahoo! messenger so i was gonna be nice and add him. But when i said something to him he said that now he could hack into my stuff. Is that possible. Because now my boyfriend is mad at me for no reason and i think he may have. If so what can i do to make sure that he dont do it again?
Posted on June 16, 2009 - by admin
Problem Accessing Hashtables From Another Class?
Hi everyone,
Very new to Java, I’m trying to access a set of Hashtables (in the Timeseries class) from my main method (in the Engine class).
but keep getting all kinds of error messages stating that:
myTimeseries cannot be resolved
and
Type mismatch: cannot convert from Timeseries to Hashtable
I dont know how to do it, could some one offer me a hand please.
I have not set any data get as I thought it a good idea to get this to work first
Many thanks
[code]
package StatPairsModel;
import java.util.Hashtable;
public class Engine {
public static void main(String[] arguments) {
Instrument stock1 = new Instrument();
Instrument stock2 = new Instrument();
int numberOfPairs = 3;
stock1.setStock("0015425", "Vodafone", "VOD LN", "UK", "TELECOM",
"GBP", "VOD LN", "FTSE");
stock2.setStock("0045125", "Telecom Italia", "TIM IM", "IT", "TELECOM",
"EUR", "TIM IM", "MIB");
int i=0;
for ( i = 0; i < myTimeseries.length; i++) {
//**Problem is on the next two lines of code**
Hashtable myTimeseries = new Timeseries();
myTimeseries.setTimeseries(mnemonic... myIdMapln, myDateMapln, myClose_price_euroMapln,
myClose_volumeMapln, myClose_market_capMapln, myCorp_action_indMapln,
myBetaMapln, myClose_price_localMapln);
}
}
}
package StatPairsModel;
import java.util.Hashtable;
public class Timeseries{
Hashtable mnemonicMap = new Hashtable();
Hashtable idMap = new Hashtable();
Hashtable dateMap = new Hashtable();
Hashtable close_price_euroMap = new Hashtable();
Hashtable close_volumeMap = new Hashtable();
Hashtable close_mcapMap = new Hashtable();
Hashtable close_corp_actionMap = new Hashtable();
Hashtable betaMap = new Hashtable();
Hashtable close_price_localMap = new Hashtable();
public void setTimeseries(Hashtable mnemonicMapln,Hashtable idMapln,Hashtable dateMapln,Hashtable close_price_euroMapln,
Hashtable close_volumeMapln,Hashtable close_mcapMapln,Hashtable close_corp_actionMapln,
Hashtable betaMapln,Hashtable close_price_localMapln) {
mnemonicMap = mnemonicMapln;
idMap = idMapln;
dateMap = dateMapln;
close_price_euroMap = close_price_euroMapln;
close_volumeMap = close_volumeMapln;
close_mcapMap = close_mcapMapln;
close_corp_actionMap = close_corp_actionMapln;
betaMap = betaMapln;
close_price_localMap = close_price_localMapln;
}
public void setMnemonic(Hashtable mnemonicMapln) {
mnemonicMap = mnemonicMapln;
}
public Hashtable getMnemonic(Hashtable mnemonicMap) {
return mnemonicMap;
}
public void setIdMap(Hashtable idMapln) {
idMap = idMapln;
}
public Hashtable getId(Hashtable idMap) {
return idMap;
}
public void setDate(Hashtable dateMapln) {
dateMap = dateMapln;
}
public Hashtable getDate(Hashtable dateMap) {
return dateMap;
}
public void setClose_price_euro(Hashtable close_price_euroMapln) {
close_price_euroMap = close_price_euroMapln;
}
public Hashtable getclose_price_euro(Hashtable close_price_euroln) {
return close_price_euroMap;
}
public void setClose_volume(Hashtable close_volumeMapln) {
close_volumeMap = close_volumeMapln;
}
public Hashtable getclose_volume(Hashtable close_volumeMapln) {
return close_volumeMap;
}
public void setClose_market_cap(Hashtable close_mcapMapln) {
close_mcapMap = close_mcapMapln;
}
public Hashtable getclose_market_cap(Hashtable close_market_capln) {
return close_mcapMap;
}
public void setCorp_action_ind(Hashtable close_corp_actionMapln) {
close_corp_actionMap = close_corp_actionMapln;
}
public Hashtable getcorp_action_ind(Hashtable corp_action_indln) {
return close_corp_actionMap;
}
public void setbeta(Hashtable betaMapln) {
betaMap = betaMapln;
}
public Hashtable getbeta(Hashtable betaln) {
return betaMap;
}
public void setclose_price_local(Hashtable close_price_localMapln) {
close_price_localMap = close_price_localMapln;
}
public Hashtable getclose_price_local(Hashtable close_price_localMapln) {
return close_price_localMap;
}
void display(int i) {
System.out.print(Timeseries.this.mne... + "\t");
System.out.print(Timeseries.this.idM... + "\t");
System.out.print(Timeseries.this.dat... + "\t");
System.out.print(Timeseries.this.clo... + "\t");
System.out.print(Timeseries.this.clo... + "\t");
System.out.print(Timeseries.this.clo... + "\t");
System.out.print(Timeseries.this.clo... + "\t");
System.out.print(Timeseries.this.bet... + "\t");
System.out.print(Timeseries.this.clo... + "\t");
System.out.println();
}
}
Posted on June 16, 2009 - by admin
Msn Not Working Due To ‘keyport’ Problem?
Hey, recently got back from college, and I found msn live no longer works on my PC, =/ it says there is a keyport problem, funny thing is, is it worked when I left for college
I have windows XP, and I haven’t done any changes to my pc. I have NO idea what to do
also =/ my pc wont even load msn with ‘windows messenger’ either, yet e-buddy DOES work, and if I use my wireless 3G vodafone connection on my laptop msn works too
it’s just my pc….
I have tiscali broadband if that helps any… and I use windows XP
feel free to ask me anything to help me solve this VERY annoying problem
I also get error code - 80072efd
if that helps any….
Posted on June 16, 2009 - by admin
Is Their A Site That Shows You How To Mod Game Systems And Other Electronics?
i wont to know if their is any sites that can show me like step by step how to mod into my xbox 360 or psp or any technology and that shows how to hacks things. so yeah if you can give me a site like that thanks.
Posted on June 16, 2009 - by admin
Iphone????????
I have verizon right now, and i want to get the iPhone from AT&T. Is there any way i can buy the iPhone, and then switch it so that the iPhone is under verizon coverage?
Posted on June 16, 2009 - by admin
How Do I Mod A Mongoose Into Halo 2?
I barely know anything about modding so I need lots of help. I really want to ride a Mongoose on halo 2 but I have got no idea how. I would like to do it in multiplayer and do it as a soft mod but a hard one if I really have to.
P.S. Any information you can give me on how to start modding or good links would help.
P.P.S I don’t want to do this on Xbox live.
Posted on June 16, 2009 - by admin
What Is The Program/website That Tells You What Hardware Is On Your Computer?
I’m troubleshooting a friend’s computer who doesn’t know very much about computers. I need to know all the hardware specs of the computer but it will take a long time to get her to find all the necessary specs.
I have seen a website (or program, i cant remember which) that runs something on the computer, and it will show what all the specs of the computer are.
What is it called?
Posted on June 16, 2009 - by admin
How Do I Get Tftp Started In Linux 2.6.9? ?
It’s got me beat. Help please.
[root@wiaki2 xinetd.d]# uname -a
Linux wikai2.pcmt.local 2.6.9-55.0.12.EL #1 Wed Oct 17 08:06:32 EDT 2007 i686 i686 i386 GNU/Linux
[root@wiaki2 xinetd.d]# pwd
/etc/xinetd.d
[root@wiaki2 xinetd.d]# cat tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
/etc/rc.d/init.d/xinetd reload
ps -ef | grep tftp
[root@wiaki2 xinetd.d]# ps -ef | grep tftp
root 3859 3697 0 22:54 pts/3 00:00:00 grep tftp
/var/log/messages:Aug 28 22:46:24 wiaki2 xinetd[3796]: readjusting service tftp
/var/log/messages:Aug 28 22:50:59 wiaki2 xinetd[3796]: readjusting service tftp
Posted on June 16, 2009 - by admin
Antivirus!!?
i want to DOWNLOAD the LATEST version of NORTON ANTIVIRUS for free……and for WINDOWS VISTA……it will be more suitable for me if u give me direct links for it…..plz…..plz….plz!………pls dont give answers like “go to google”…..etc…etc…….so pls help me out!!!!
Thanx for ur help!