Your Ad Here

Friday, February 20, 2009

calling a inherited over-ridding function

In my programming class today we started touching onto class inheritance, and the professor posed a question he couldn't answer off the top of his head.

In a hierarchical chain of classes where each one extends the previous, and overrides the same function lets say foo(), how would you call a foo from several steps up the chain, were super.foo() would only call 1 above.


Code:
---------
class A
{
foo(){}
}

class B extends A
{
foo(){}
}

class C extends B
{
foo(){}
}

class D extends C
{
foo(){}
}

D obj = new D();
---------
How could obj call foo defined in B or A?

Read More...
Your Ad Here

Help me how can i expert in PHP

Hi,

I want get more knowledge in PHP so give me the tips what are the important books must I should learn ?


_________________
website design kelowna (http://www.atomic55.net)

Read More...
Your Ad Here

Detect ARP poisoning(ARP spoofing) & ARP flooding

Address Resolution Protocol (ARP), because of its simpleness, fastness, and effectiveness, is becoming increasingly popular among internet raggers, thus causing severe influence to the internet environment.
ARP spoofing, also known as ARP poisoning or ARP Poison Routing (APR), is a technique used to attack an Ethernet wired or wireless network which may allow an attacker to sniff data frames on a local area network (LAN), modify the traffic, or stop the traffic altogether (known as a denial of service attack). The attack can obviously only happen on networks that indeed make use of ARP and not another method.

First, let me introduce you the tools I use are Ax3soft Sax2, there are many such tools, such as Sniffer, Snort, Ethereal, etc, I do not think that the Sax2 is the best tool, I just think that Sax2 is easy-to-use, it can quickly and accurately locate ARP source when ARP attack happens to the network, so as to ensure normal and reliable network operation.

Solution:
First, launch sax2 and switch to the Diagnosis View.
Diagnosis View is the most direct and effective place to locate ARP attack and should be our first choice. Its interface is displayed as picture1.

Image (picture1)

Picture 1 definitely points out that there are two kinds of ARP attack event, ARP Scan and ARP MAC address changed, in the network, and the attack source is clearly given at the bottom. Meanwhile, Sax2 NIDS will provide reasons of such ARP attacks and corresponding solutions.

Read More...
Your Ad Here

dynamically get values form database using ajax ?

Hello,

I want to dynamically get values from database for my form. Its possible without page reloading using ajax ?

________________
website design kelowna (http://www.atomic55.net)

Read More...
Your Ad Here

what is smarty PHP?

Hello,

What is smarty PHP? Any books available to learn it ?


_________________
website design kelowna (http://www.atomic55.net)

Read More...
Your Ad Here

Please check my log

Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 9:46:29 PM, on 2/17/2009
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)
Boot mode: Normal

Running processes:
C:WINDOWSSystem32smss.exe
C:WINDOWSsystem32winlogon.exe
C:WINDOWSsystem32services.exe
C:WINDOWSsystem32lsass.exe
C:WINDOWSsystem32svchost.exe
C:WINDOWSSystem32svchost.exe
C:WINDOWSsystem32spoolsv.exe
C:WINDOWSExplorer.EXE
C:Program FilesAviraAntiVir PersonalEdition Classicsched.exe
C:WINDOWSRTHDCPL.EXE
C:WINDOWSsystem32RUNDLL32.EXE
C:Program FilesAviraAntiVir PersonalEdition Classicavgnt.exe
C:WINDOWSvsnp2std.exe
C:Program FilesHPhpcoretechhpcmpmgr.exe
C:Program FilesHewlett-PackardHP Software UpdateHPWuSchd.exe
C:Program FilesJavajre6binjusched.exe
C:Program FilesiTunesiTunesHelper.exe
C:Program FilescFosSpeedcFosSpeed.exe
C:Program FilesSUPERAntiSpywareSUPERAntiSpyware.exe
C:Program FilesStardockObjectDockObjectDock.exe
C:Program FilesAviraAntiVir PersonalEdition Classicavguard.exe
C:Program FilesCommon FilesAppleMobile Device SupportbinAppleMobileDeviceService.exe
C:Program FilesBonjourmDNSResponder.exe
C:Program FilescFosSpeedspd.exe
C:Program FilesJavajre6binjqs.exe
C:WINDOWSsystem32nvsvc32.exe
C:WINDOWSsystem32svchost.exe
C:Program FilesiPodbiniPodService.exe
C:Program FilesGarenaGarena.exe
C:Program FilesMozilla Firefoxfirefox.exe
C:Program FilesYahoo!MessengerYahooMessenger.exe
C:Program FilesTrend MicroHijackThisHijackThis.exe

O2 - BHO: Adobe PDF Link Helper - {18DF081C-E8AD-4283-A596-FA578C2EBDC3} - C:Program FilesCommon FilesAdobeAcrobatActiveXAcroIEHelperShim.dll
O2 - BHO: Skype add-on (mastermind) - {22BF413B-C6D2-4d91-82A9-A0F997BA588C} - C:Program FilesSkypeToolbarsInternet ExplorerSkypeIEPlugin.dll
O2 - BHO: Java(tm) Plug-In SSV Helper - {761497BB-D6F0-462C-B6EB-D4DAF1D92D43} - C:Program FilesJavajre6binssv.dll
O2 - BHO: Java(tm) Plug-In 2 SSV Helper - {DBC80044-A445-435b-BC74-9C25C1C588A9} - C:Program FilesJavajre6binjp2ssv.dll
O2 - BHO: JQSIEStartDetectorImpl - {E7E6F031-17CE-4C07-BC86-EABFE594F69C} - C:Program FilesJavajre6libdeployjqsiejqs_plugin.dll
O4 - HKLM..Run: [RTHDCPL] RTHDCPL.EXE
O4 - HKLM..Run: [Alcmtr] ALCMTR.EXE
O4 - HKLM..Run: [NvCplDaemon] RUNDLL32.EXE C:WINDOWSsystem32NvCpl.dll,NvStartup
O4 - HKLM..Run: [nwiz] nwiz.exe /install
O4 - HKLM..Run: [NvMediaCenter] RUNDLL32.EXE C:WINDOWSsystem32NvMcTray.dll,NvTaskbarInit
O4 - HKLM..Run: [NeroFilterCheck] C:WINDOWSsystem32NeroCheck.exe
O4 - HKLM..Run: [avgnt] "C:Program FilesAviraAntiVir PersonalEdition Classicavgnt.exe" /min
O4 - HKLM..Run: [Adobe Reader Speed Launcher] "C:Program FilesAdobeReader 9.0ReaderReader_sl.exe"
O4 - HKLM..Run: [tsnp2std] C:WINDOWStsnp2std.exe
O4 - HKLM..Run: [snp2std] C:WINDOWSvsnp2std.exe
O4 - HKLM..Run: [HP Component Manager] "C:Program FilesHPhpcoretechhpcmpmgr.exe"
O4 - HKLM..Run: [HP Software Update] "C:Program FilesHewlett-PackardHP Software UpdateHPWuSchd.exe"
O4 - HKLM..Run: [HPDJ Taskbar Utility] C:WINDOWSsystem32spooldriversw32x863hpztsb09.exe
O4 - HKLM..Run: [Adobe_ID0EYTHM] C:PROGRA~1COMMON~1AdobeADOBEV~1ServerbinVERSIO~2.EXE
O4 - HKLM..Run: [DAEMON Tools-1033] "C:Program FilesD-Toolsdaemon.exe" -lang 1033
O4 - HKLM..Run: [SunJavaUpdateSched] "C:Program FilesJavajre6binjusched.exe"
O4 - HKLM..Run: [QuickTime Task] "C:Program FilesQuickTimeqttask.exe" -atboottime
O4 - HKLM..Run: [iTunesHelper] "C:Program FilesiTunesiTunesHelper.exe"
O4 - HKLM..Run: [cFosSpeed] C:Program FilescFosSpeedcFosSpeed.exe
O4 - HKCU..Run: [SUPERAntiSpyware] C:Program FilesSUPERAntiSpywareSUPERAntiSpyware.exe
O4 - HKCU..Run: [Yahoo! Pager] "C:Program FilesYahoo!MessengerYahooMessenger.exe" -quiet
O4 - HKCU..Run: [Skype] "C:Program FilesSkypePhoneSkype.exe" /nosplash /minimized
O4 - Startup: Adobe Gamma.lnk = C:Program FilesCommon FilesAdobeCalibrationAdobe Gamma Loader.exe
O4 - Startup: Stardock ObjectDock.lnk = C:Program FilesStardockObjectDockObjectDock.exe
O8 - Extra context menu item: E&xport to Microsoft Excel - res://C:PROGRA~1MICROS~2OFFICE11EXCEL.EXE/3000
O9 - Extra button: Skype - {77BF5300-1474-4EC7-9980-D32B190E9B07} - C:Program FilesSkypeToolbarsInternet ExplorerSkypeIEPlugin.dll
O9 - Extra button: Research - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:PROGRA~1MICROS~2OFFICE11REFIEBAR.DLL
O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:Program FilesMessengermsmsgs.exe
O9 - Extra Tools menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:Program FilesMessengermsmsgs.exe
O18 - Protocol: skype4com - {FFC8B962-9B40-4DFF-9458-1830C7DD7F5D} - C:PROGRA~1COMMON~1SkypeSKYPE4~1.DLL
O20 - Winlogon Notify: !SASWinLogon - C:Program FilesSUPERAntiSpywareSASWINLO.DLL
O23 - Service: Adobe LM Service - Adobe Systems - C:Program FilesCommon FilesAdobe Systems SharedServiceAdobelmsvc.exe
O23 - Service: Adobe Version Cue CS3 - Adobe Systems Incorporated - C:Program FilesCommon FilesAdobeAdobe Version Cue CS3ServerbinVersionCueCS3.exe
O23 - Service: Avira AntiVir Personal - Free Antivirus Scheduler (AntiVirScheduler) - Avira GmbH - C:Program FilesAviraAntiVir PersonalEdition Classicsched.exe
O23 - Service: Avira AntiVir Personal - Free Antivirus Guard (AntiVirService) - Avira GmbH - C:Program FilesAviraAntiVir PersonalEdition Classicavguard.exe
O23 - Service: Apple Mobile Device - Apple Inc. - C:Program FilesCommon FilesAppleMobile Device SupportbinAppleMobileDeviceService.exe
O23 - Service: Bonjour Service - Apple Inc. - C:Program FilesBonjourmDNSResponder.exe
O23 - Service: cFosSpeed System Service (cFosSpeedS) - cFos Software GmbH - C:Program FilescFosSpeedspd.exe
O23 - Service: FLEXnet Licensing Service - Macrovision Europe Ltd. - C:Program FilesCommon FilesMacrovision SharedFLEXnet PublisherFNPLicensingService.exe
O23 - Service: iPod Service - Apple Inc. - C:Program FilesiPodbiniPodService.exe
O23 - Service: Java Quick Starter (JavaQuickStarterService) - Sun Microsystems, Inc. - C:Program FilesJavajre6binjqs.exe
O23 - Service: NVIDIA Display Driver Service (NVSvc) - NVIDIA Corporation - C:WINDOWSsystem32nvsvc32.exe

--
End of file - 6526 bytes

Read More...
Your Ad Here

help with intel x86

hello

It is possible to do something like this?: add ax,bl (adding registers of different sizes?)

(apparently no, because it gives me an error when a try to compile :D)

I'm a beginner and I need some help plz.

Read More...
Your Ad Here

Send HTML page as an HTML email

Hi,

The following form allows the user to provide a subject for an email, and browse for an file. Upon clicking the "Send Email" button, how do I send the HTML page as an HTML email?


Code:
---------















---------


Read More...

[Source: Code Forums - Posted by FreeAutoBlogger]
Your Ad Here

Act 6.0 & Winfax - Symantec End Point - HELP!!!!!!!!!!!!!

I need some big time help here. I will try to explain the issues, and hope that someone can help me sort thru this. I am running Windows XP Pro on my PC.
This all began with installing Symantec End Point. I had problems with the installation, so it was suggested that I use Clean Wipe 4 to remove remnants of old log files. All seemed to go well. Then I attempted to send a fax using Winfax. I have it integrated with Act 6.0. The first problem I noticed was a Fax/Modem Alert Message: Failed to read message variables. The only option there is an OK button. Behind that was a WinFax Pro Logging Warning: Phonebook Act Gary (this is my database). Opening the Act file Gary failed. Database failed to open. Event sent successfully. The faxes are being delivered, and the data is being recorded in Winfax, but not in Act. I have checked the settings in Act, and they all seem to be correct to make this happen, as it has been happening for several years. Upon inspection of WinFax, I discovered that all phonebooks, with the exception of My Phonebook were now inaccessible. When attempting to access any other phonebook from other Act database files, a call failed message is displayed. I tried all the tricks from the Symantec Forum, with no success. I uninstalled and reinstalled WinFax, with the same result. I hope this will make sense to someone, as I am completely frustrated with this entire situation.

Gary.

Read More...
Your Ad Here

Annoying File won't Delete!?

*This is the message you will see "Cannot delete file: Cannot read from the source file or disk".

*The files properties to check permissions presented a very blank properties dialog.

*Its not a virus or anything because antivirus, anti-spyware, adware and even the CHKDSK wont work.

*The filename ended with a dot. For example "C:Documents and SettingsuserDesktopmyfile.". As far as Windows is concerned this is an invalid file name.

*how did this file get created? The file was on a file share which had been accessed by a Mac user. Macs tend to write all sorts of metadata to extra ._DSStore files and suchlike and had left this file behind.

*How to solve it? By prefixing your file paths with ?, (ie. C:Documents and SettingsuserDesktopmyfile.. becomes ?C:Documents and SettingsuserDesktopmyfile..)

*Using a command prompt I was able to delete the file using:
del "?C:Documents and SettingsuserDesktopmyfile.."

*If it is a folder/directory:
change "del" to "rd /s"

*How to use command prompt?
C:Documents and SettingsuserDesktopmyfile..
type:
c:
cd Documents and Settings > cd user > cd desktop etc.
cd.. == means back

Hope its Help!!

Read More...
Your Ad Here