Your Ad Here

Thursday, April 2, 2009

How To Download Tagged Facebook Pics

I accidently fount great Facebook app called Get My Tagged Pics  that allow you to download Tagged pics.
Get My Tagged Pics allow you to download tagged pics in batches of 10, rather than having to download each one separately


Related posts:Trick To Download windows vista SP2 “pre beta” Directly via windows update


Related posts:
  1. Trick To Download windows vista SP2 “pre beta” Directly via windows update


Read More...
Your Ad Here

regedit & cmd won't run...a/v won't update. Log included.

First time poster but Ive done a lot of reading here tonight!

Im getting random website redirects, regedit & cmd wont run (although msconfig will) and I cant update Avast! or install Trend Micro, either in normal or safe mode. The virus scans I have been able to run have come up clean but theres obviously something going on.

Heres my HijackThis log:

Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 12:03:47 AM, on 4/1/2009
Platform: Windows XP SP3 (WinNT 5.01.2600)
MSIE: Internet Explorer v8.00 (8.00.6001.18702)
Boot mode: Normal

Running processes:
C:WINDOWSSystem32smss.exe
C:WINDOWSsystem32winlogon.exe
C:WINDOWSsystem32services.exe
C:WINDOWSsystem32lsass.exe
C:WINDOWSsystem32ibmpmsvc.exe
C:WINDOWSsystem32svchost.exe
C:Program FilesWindows DefenderMsMpEng.exe
C:WINDOWSSystem32svchost.exe
C:WINDOWSsystem32svchost.exe
C:Program FilesIntelWirelessBinEvtEng.exe
C:Program FilesIntelWirelessBinS24EvMon.exe
C:WINDOWSsystem32spoolsv.exe
C:WINDOWSsystem32IPSSVC.EXE
C:Program FilesThinkPadConnectUtilitiesAcPrfMgrSvc.exe
C:Program FilesCommon FilesAppleMobile Device SupportbinAppleMobileDeviceService.exe
C:WINDOWSSystem32svchost.exe
c:Program FilesJavajre6binjqs.exe
C:WINDOWSsystem32PSIService.exe
C:Program FilesIntelWirelessBinRegSrvc.exe
C:WINDOWSsystem32svchost.exe
C:WINDOWSSystem32TPHDEXLG.EXE
C:WINDOWSsystem32TpKmpSVC.exe
C:Program FilesIBM ThinkVantageRescue and Recoveryrrservice.exe
C:Program FilesIBM ThinkVantageCommonSchedulertvtsched.exe
C:Program FilesThinkVantageSystemUpdateUCLauncherService.exe
C:WINDOWSsystem32wuauclt.exe
C:Program FilesIBM ThinkVantageCommonLoggerlogmon.exe
C:WINDOWSsystem32wscntfy.exe
C:Program FilesGoogleGmail Notifiergnotify.exe
C:Program FilesBillP StudiosWinPatrolwinpatrol.exe
C:Program FilesWindows DefenderMSASCui.exe
C:WINDOWSsystem32tp4serv.exe
C:WINDOWSsystem32TpShocks.exe
C:WINDOWSsystem32TpScrLk.exe
C:PROGRA~1LenovoPkgMgrHOTKEYTPHKMGR.exe
C:Program FilesJavajre6binjusched.exe
C:Program FilesAnalog DevicesCoresmax4pnp.exe
C:Program FilesLenovoPkgMgrHOTKEYTPONSCR.exe
C:Program FilesLenovoPkgMgrHOTKEY_1TpScrex.exe
C:WINDOWSsystem32rundll32.exe
C:Program FilesIBM ThinkVantageSafeGuard PrivateDiskpdservice.exe
C:PROGRA~1THINKV~2PrdCtrLPMGR.exe
C:Program FilesiTunesiTunesHelper.exe
C:WINDOWSsystem32igfxpers.exe
C:Program FilesiPodbiniPodService.exe
C:Program FilesIBM ThinkVantageCommonmndmapdrv.exe
C:WINDOWSexplorer.exe
C:WINDOWSsystem32net.exe
C:Program FilesTrend MicroHijackThisHijackThis.exe

R0 - HKCUSoftwareMicrosoftInternet ExplorerMain,Start Page = http://www.netflix.com/WatchNowMovie?mo ... 540166_3_0
R1 - HKLMSoftwareMicrosoftInternet ExplorerMain,Default_Page_URL = http://go.microsoft.com/fwlink/?LinkId=69157
R1 - HKLMSoftwareMicrosoftInternet ExplorerMain,Default_Search_URL = http://go.microsoft.com/fwlink/?LinkId=54896
R1 - HKLMSoftwareMicrosoftInternet ExplorerMain,Search Page = http://go.microsoft.com/fwlink/?LinkId=54896
R0 - HKLMSoftwareMicrosoftInternet ExplorerMain,Start Page = http://go.microsoft.com/fwlink/?LinkId=69157
R1 - HKCUSoftwareMicrosoftInternet Connection Wizard,ShellNext = http://www.lenovo.com/us/en/
R1 - HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings,ProxyOverride = *.local
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: [{0228e555-4f9c-4e35-a3ec-b109a192b4c2}] C:Program FilesGoogleGmail Notifiergnotify.exe
O4 - HKLM..Run: [WinPatrol] C:Program FilesBillP StudiosWinPatrolwinpatrol.exe
O4 - HKLM..Run: [Windows Defender] "C:Program FilesWindows DefenderMSASCui.exe" -hide
O4 - HKLM..Run: [TrackPointSrv] tp4serv.exe
O4 - HKLM..Run: [TpShocks] TpShocks.exe
O4 - HKLM..Run: [TPKMAPHELPER] C:Program FilesThinkPadUtilitiesTpKmapAp.exe -helper
O4 - HKLM..Run: [TPKBDLED] C:WINDOWSsystem32TpScrLk.exe
O4 - HKLM..Run: [TPHOTKEY] C:PROGRA~1LenovoPkgMgrHOTKEYTPHKMGR.exe
O4 - HKLM..Run: [TP4EX] tp4ex.exe
O4 - HKLM..Run: [suScheduler] C:Program FilesThinkVantageSystemUpdateUCLauncher.exe /SCHEDULER
O4 - HKLM..Run: [SunJavaUpdateSched] "c:Program FilesJavajre6binjusched.exe"
O4 - HKLM..Run: [SoundMAXPnP] C:Program FilesAnalog DevicesCoresmax4pnp.exe
O4 - HKLM..Run: [SoundMAX] C:Program FilesAnalog DevicesSoundMAXSmax4.exe /tray
O4 - HKLM..Run: [PWRMGRTR] rundll32 C:PROGRA~1ThinkPadUTILIT~1PWRMGRTR.DLL,PwrMgrBkGndMonitor
O4 - HKLM..Run: [PDService.exe] "C:Program FilesIBM ThinkVantageSafeGuard PrivateDiskpdservice.exe"
O4 - HKLM..Run: [LPManager] C:PROGRA~1THINKV~2PrdCtrLPMGR.exe
O4 - HKLM..Run: [iTunesHelper] "C:Program FilesiTunesiTunesHelper.exe"
O4 - HKLM..Run: [igfxtray] C:WINDOWSsystem32igfxtray.exe
O4 - HKLM..Run: [igfxpers] C:WINDOWSsystem32igfxpers.exe
O4 - HKLM..Run: [igfxhkcmd] C:WINDOWSsystem32hkcmd.exe
O4 - HKLM..Run: [Google Desktop Search] "C:Program FilesGoogleGoogle Desktop SearchGoogleDesktop.exe" /startup
O4 - HKLM..Run: [EZEJMNAP] C:PROGRA~1ThinkPadUTILIT~1EzEjMnAp.Exe
O4 - HKLM..Run: [cssauth] "C:Program FilesIBM ThinkVantageClient Security Solutioncssauth.exe" silent
O4 - HKLM..Run: [BluetoothAuthenticationAgent] rundll32.exe bthprops.cpl,,BluetoothAuthenticationAgent
O4 - HKLM..Run: [BLOG] rundll32 C:PROGRA~1ThinkPadUTILIT~1BatLogEx.DLL,StartBattLog
O4 - HKLM..Run: [BigDogPath] C:WINDOWSVM_STI.EXE Philips SPC 300NC PC Camera
O4 - HKLM..Run: [Adobe Reader Speed Launcher] "C:Program FilesAdobeReader 9.0ReaderReader_sl.exe"
O4 - HKCU..Run: [Wootalyzer] C:Program FilesWootalyzerwoot.exe
O4 - HKCU..Run: [WMPNSCFG] C:Program FilesWindows Media PlayerWMPNSCFG.exe
O4 - HKCU..Run: [updateMgr] "C:Program FilesAdobeAcrobat 7.0ReaderAdobeUpdateManager.exe" AcRdB7_1_0 -reboot 1
O4 - HKCU..Run: [TomTomHOME.exe] "C:Program FilesTomTom HOME 2HOMERunner.exe"
O4 - HKCU..Run: [swg] C:Program FilesGoogleGoogleToolbarNotifierGoogleToolbarNotifier.exe
O4 - HKCU..Run: [Skype] "C:Program FilesSkypePhoneSkype.exe" /nosplash /minimized
O4 - HKCU..Run: [Semagic] C:Program FilesSemagicLiveJournalU.exe
O4 - HKCU..Run: [Google Update] "C:Documents and SettingsTongaLocal SettingsApplication DataGoogleUpdateGoogleUpdate.exe" /c
O4 - HKCU..Run: [ctfmon.exe] C:WINDOWSsystem32ctfmon.exe
O8 - Extra context menu item: Add to Google Photos Screensa&ver - res://C:WINDOWSsystem32GPhotos.scr/200
O8 - Extra context menu item: Semagic - C:Program FilesSemagiclink.htm
O9 - Extra button: Software Installer - {D1A4DEBD-C2EE-449f-B9FB-E8409F9A0BC5} - C:Program FilesLenovoPkgMgrPkgMgr.exe
O9 - Extra button: (no name) - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:WINDOWSNetwork Diagnosticxpnetdiag.exe
O9 - Extra Tools menuitem: @xpsp3res.dll,-20001 - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:WINDOWSNetwork Diagnosticxpnetdiag.exe
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
O11 - Options group: [JAVA_IBM] Java (IBM)
O14 - IERESET.INF: START_PAGE_URL=http://www.lenovo.com/us/en/
O15 - Trusted Zone: http://gis.montva.com
O16 - DPF: {74FFE28D-2378-11D5-990C-006094235084} (IBM Access Support) - http://www-307.ibm.com/pc/support/IbmEgath.cab
O16 - DPF: {9059F30F-4EB1-4BD2-9FDC-36F43A218F4A} (Microsoft RDP Client Control (redist)) - http://roa.pt-usa.net/tsweb/msrdp.cab
O16 - DPF: {E598AC61-4C6F-4F4D-877F-FAC49CA91FA3} (acpRunner Class) - https://www-307.ibm.com/pc/support/acce ... ontrol.cab
O18 - Protocol: skype4com - {FFC8B962-9B40-4DFF-9458-1830C7DD7F5D} - C:PROGRA~1COMMON~1SkypeSKYPE4~1.DLL
O20 - AppInit_DLLs: C:PROGRA~1GoogleGOOGLE~1GOEC62~1.DLL
O20 - Winlogon Notify: ACNotify - ACNotify.dll (file missing)
O23 - Service: Ac Profile Manager Service (AcPrfMgrSvc) - Unknown owner - C:Program FilesThinkPadConnectUtilitiesAcPrfMgrSvc.exe
O23 - Service: Access Connections Main Service (AcSvc) - Unknown owner - C:Program FilesThinkPadConnectUtilitiesAcSvc.exe (file missing)
O23 - Service: Amazon Unbox Video Service (ADVService) - Amazon.com - C:Program FilesAmazonAmazon Unbox VideoADVWindowsClientService.exe
O23 - Service: Apple Mobile Device - Apple Inc. - C:Program FilesCommon FilesAppleMobile Device SupportbinAppleMobileDeviceService.exe
O23 - Service: Intel(R) PROSet/Wireless Event Log (EvtEng) - Intel Corporation - C:Program FilesIntelWirelessBinEvtEng.exe
O23 - Service: Google Desktop Manager 5.7.806.10245 (GoogleDesktopManager-061008-081103) - Google - C:Program FilesGoogleGoogle Desktop SearchGoogleDesktop.exe
O23 - Service: Google Software Updater (gusvc) - Google - C:Program FilesGoogleCommonGoogle UpdaterGoogleUpdaterService.exe
O23 - Service: ThinkPad PM Service (IBMPMSVC) - Unknown owner - C:WINDOWSsystem32ibmpmsvc.exe
O23 - Service: InstallDriver Table Manager (IDriverT) - Macrovision Corporation - C:Program FilesCommon FilesInstallShieldDriver11Intel 32IDriverT.exe
O23 - Service: iPod Service - Apple Inc. - C:Program FilesiPodbiniPodService.exe
O23 - Service: IPS Core Service (IPSSVC) - Lenovo Group Limited - C:WINDOWSsystem32IPSSVC.EXE
O23 - Service: Java Quick Starter (JavaQuickStarterService) - Sun Microsystems, Inc. - c:Program FilesJavajre6binjqs.exe
O23 - Service: MioNet Service (MioNet) - Unknown owner - C:Program FilesMioNetMioNetManager.exe
O23 - Service: ProtexisLicensing - Unknown owner - C:WINDOWSsystem32PSIService.exe
O23 - Service: IBM PSA Access Driver Control (PsaSrv) - Unknown owner - C:WINDOWSsystem32PsaSrv.exe (file missing)
O23 - Service: Intel(R) PROSet/Wireless Registry Service (RegSrvc) - Intel Corporation - C:Program FilesIntelWirelessBinRegSrvc.exe
O23 - Service: Intel(R) PROSet/Wireless Service (S24EventMonitor) - Intel Corporation - C:Program FilesIntelWirelessBinS24EvMon.exe
O23 - Service: ThinkPad HDD APS Logging Service (TPHDEXLGSVC) - Lenovo. - C:WINDOWSSystem32TPHDEXLG.EXE
O23 - Service: IBM KCU Service (TpKmpSVC) - Unknown owner - C:WINDOWSsystem32TpKmpSVC.exe
O23 - Service: TSS Core Service (TSSCoreService) - IBM - C:Program FilesIBM ThinkVantageClient Security Solutionibmtcsd.exe
O23 - Service: TVT Backup Service - Unknown owner - C:Program FilesIBM ThinkVantageRescue and Recoveryrrservice.exe
O23 - Service: TVT Scheduler - Unknown owner - C:Program FilesIBM ThinkVantageCommonSchedulertvtsched.exe
O23 - Service: ThinkVantage System Update (UCLauncherService) - Unknown owner - C:Program FilesThinkVantageSystemUpdateUCLauncherService.exe
O23 - Service: VNC Server Version 4 (WinVNC4) - RealVNC Ltd. - C:Program FilesRealVNCVNC4WinVNC4.exe

--
End of file - 11031 bytes

Thanks, I really appreciate the help.

Robin

Read More...
Your Ad Here

bad sound driver

I opened up my window media player 5.01, and tried to play a song. I got an error that says:

Bad Direct Sound Driver. Please install proper drivers or select another device in configuration.


waht is the wrong in my drivers . all the drivers are installed well

Read More...
Your Ad Here

logo for autotext

Hi

Im new here and I would like to know if its possible to save a logo together with a text as Autotext?

I have a template and I would like to save the content of the template as one entry in the autotext. What happened if I mark all and save it as autotext is: The text will only be copied and the logo not.

How can I save the text and the logo together? Im not really sure if this possible.

Thanks and regards

Read More...
Your Ad Here

Problem with encrypted and compressed files on NTFS.

Hi All,

I am using raw data-structures of NTFS to copy contents of a file in to other file.
I am traversing the data runs and copy the contents of the clusters in to other file.

It works for normal files, but if a file is encrypted or compressed it fails as new file does not have setting (Attributes) that tell File System that this file is encrypted or compressed. So file system treats this file as normal file and it does not decrypt or decompress it while reading the new file.

I want that this new file behave same as of original file.
Can any one tell me how I can achieve it?

Thanks.

Read More...
Your Ad Here

Message Box Picture

Everyone,

I was wondering if anyone knew how I could make a message box/pop up appear. But instead of text I want an image I made to take up the whole box. Any suggestions/ideas?

I am trying to use VBScript.

Read More...
Your Ad Here

Display Reapeat Region in 2 columns, how to do it?

Hi there!
I am a newbie into PHP language and I am using Dreamweaver to learn some basics and so I am doing myself a database administration with records display or list as test.
So, on dream weaver I managed to make a list using repeat region but only with one column of data... here is the code:


Code:
---------

if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "10";
$MM_donotCheckaccess = "false";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;

// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && false) {
$isValid = true;
}
}
return $isValid;
}

$MM_restrictGoTo = "../error_success/access_denied.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$currentPage = $_SERVER["PHP_SELF"];

$maxRows_modelos = 20;
$pageNum_modelos = 0;
if (isset($_GET['pageNum_modelos'])) {
$pageNum_modelos = $_GET['pageNum_modelos'];
}
$startRow_modelos = $pageNum_modelos * $maxRows_modelos;

mysql_select_db($database_pachecos, $pachecos);
$query_modelos = "SELECT * FROM modelos ORDER BY Modelo ASC";
$query_limit_modelos = sprintf("%s LIMIT %d, %d", $query_modelos, $startRow_modelos, $maxRows_modelos);
$modelos = mysql_query($query_limit_modelos, $pachecos) or die(mysql_error());
$row_modelos = mysql_fetch_assoc($modelos);

if (isset($_GET['totalRows_modelos'])) {
$totalRows_modelos = $_GET['totalRows_modelos'];
} else {
$all_modelos = mysql_query($query_modelos);
$totalRows_modelos = mysql_num_rows($all_modelos);
}
$totalPages_modelos = ceil($totalRows_modelos/$maxRows_modelos)-1;

$queryString_modelos = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_modelos") == false &&
stristr($param, "totalRows_modelos") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_modelos = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_modelos = sprintf("&totalRows_modelos=%d%s", $totalRows_modelos, $queryString_modelos);
?>





PM - Lista de Modelos




























 



Logotipo

























    F�brica
Pachecos  
     
Departamento
 
 








Lista de modelos














    Editar Apagar  
 















  NOVO 0) { // Show if not first page ?>
">
0) { // Show if not first page ?>
">

">

">
 Registo do n� at� de


*
 
   




mysql_free_result($modelos);
?>
---------
Is it possible to make this work displaying two columns of records instead of just one?

thank you in advance for your time and patience. :^o

Read More...
Your Ad Here

Should Competent Programmers be "Mathematically Inclined"?


One of the more famous Edsger Dijkstra quotes is from his 1972 Turing award lecture, How do we tell truths that might hurt?



Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.


Note that he specifically says native tongue, not English. Which makes me wonder why all of Dijkstra's most important writings were in English, not his native Dutch.


But I digress. Let's consider the first part of the Dijkstra quote. Should competent programmers be "mathematically inclined"? It might be instructive to think of programming as a form of mathematics, at least for one reason: to resist localization. Although there have been attempts to create localized programming languages, as far as I know, nobody has ever tried to localize π or the number 3. They're universal. So in that sense, programming languages bear a vague, passing resemblance to mathematics. Learn the symbols once and use them everywhere in the world, no matter what your native tongue is.


On the other hand, I have not found in practice that programmers need to be mathematically inclined to become great software developers. Quite the opposite, in fact. This does depend heavily on what kind of code you're writing, but the vast bulk of code that I've seen consists mostly of the "balancing your checkbook" sort of math, nothing remotely like what you'd find in the average college calculus textbook, even.



{
i = j++ / (x + v);
}


Not exactly the stuff mathletes are made of.


I never understood the desire to formally equate skill at mathematics with skill at programming. While being a math wonk certainly won't hurt you as a programmer, it's very hard for me to draw a direct line from "good at math" to "good at programming". Like Rory, I believe that software development requires some markedly right-brained sensibilities.



When I was growing up, I remember hearing people say things like, "If you like computer programming, then you'll love math." I always thought that these people were absolutely nuts. While there is something intrinsically similar about certain types of math and computer programming, the two are different in many more ways than they are similar.


With math, and I'm not talking about the crazy number-theory math philosophy "Do numbers really exist?" side of things, but with the applied stuff, there are correct answers. You're either correct or you're incorrect.


With coding, the best you can hope for is to do something well. With so many different ways to effect a single outcome, it's up to some very right-brained sensibilities to determine if you've met your goal, as there isn't anybody (except [another more experienced developer]) who can tell you if you're right or not.


If you ignore your right brain, and I'm talking generally about abstraction and aesthetics, then you can slap some code together that might work, but it also might be one hell of a maintenance nightmare. If you focus only on the right brain, you might have something that works, but is so utterly inefficient and personalized that you're the only person on Earth who could make sense of the code and maintain it.



All those caveats aside, people still advocate the idea that math alone has the power to make you a better programmer. Steve Yegge makes the best case I've read for the programmer-mathematician, with his five points:




  1. Math is a lot easier to pick up after you know how to program. In fact, if you're a halfway decent programmer, you'll find it's almost a snap.


  2. They teach math all wrong in school. Way, WAY wrong. If you teach yourself math the right way, you'll learn faster, remember it longer, and it'll be much more valuable to you as a programmer.


  3. Knowing even a little of the right kinds of math can enable you do write some pretty interesting programs that would otherwise be too hard. In other words, math is something you can pick up a little at a time, whenever you have free time.


  4. Nobody knows all of math, not even the best mathematicians. The field is constantly expanding, as people invent new formalisms to solve their own problems. And with any given math problem, just like in programming, there's more than one way to do it. You can pick the one you like best.

  5. Math is... ummm, please don't tell anyone I said this; I'll never get invited to another party as long as I live. But math, well... I'd better whisper this, so listen up: (it's actually kinda fun.)




To me, this reads like a broad recipe for becoming intellectually curious and building skill at solving abstract problems. Important programming skills, to be sure, but not necessarily exclusive to the study of math. If math is your preferred way to sharpen your saw, then have at it -- but it's hardly the only way.


I recently received this email:



I run a small (4 people) web dev shop and I'm finding that younger coders haven't had the pleasure of writing assembler or managing without library functions. I've always found strong math skills to be one of the most useful skills for coding, and when one has Google and a massive library of functions, one doesn't have to be good at math to get things working, until it either breaks, has edge cases, or brings out OS or library bugs.


Some quick examples: simplifying tricky equations to determine array indicies or memory offsets; trigonometry to help with physical calculations; mental hex/bin/dec conversion; logic equalities such as DeMorgan's theorem.



He's got the right idea; if we're going to talk about math, let's get out of the abstract and into the specific. Let's talk details. Examples. What could be more math-y than that?


What code have you personally written where a detailed knowledge of math made your work easier? I can think of some broad categories. Writing a 3D game. Or a physics simulation. Or low-level image filters. Or compression algorithms. The list goes on and on. But if you're in those situations, you'll know it.


Maybe I'm a hopeless optimist, but I think most programmers are smart enough to learn whatever math they need just in time to attack the problem at hand.





[advertisement] Improve Your Source Code Management using Atlassian Fisheye - Monitor. Search. Share. Analyze. Try it for free!



Read More...

Your Ad Here

Help a newbie pls!

Hello all from Greece (Sorry for my English)!
If anybody can help me with this problem please make a post!
I am having trouble with my php script when i am trying to redirect the users of my contact form to the thank you page and this think drives me crazy.
I know that the is not working because i output somethink on the browser before the header command.
Is there any other way to do this with php? No meta redirection.

Here are the 3 php scripts that are needed for the form to work!

1)Prosses.php :

PHP:
---------



if(isset($_POST['submit'])){
$problem = FALSE;
if(empty($_POST['name'])){
$problem = TRUE;
echo "Παρακαλώ εισάγετε το όνομά σας!\n";
}
if(empty($_POST['email'])){
$problem = TRUE;
echo "Παρακαλώ εισάγετε το email σας!\n";
}
if(empty($_POST['message'])){
$problem = TRUE;
echo "Παρακαλώ εισάγετε το μήνυμά σας!\n";
}

if(!$problem){
$n = $_POST['name'];
$l = $_POST['last'];
$e = $_POST['email'];
$m = $_POST['message'];
$s = "Name: $n \n";
$s .= "Last name: $l \n";
$s .= "E-mail: $e \n";


if(mail("admin@megaweb.gr", "Your Contact Form", $m . $s)){
echo " Το μύνημά σας έχει σταλεί.\n\n";
echo ' Επιστρέψτε στο http://www.megaweb.gr ';
#"Your email was successfully sent!\n";
}
else
{
echo "There was an error sending the message, please try again!\n";
}
}
}
else
{
echo "Oops, looks like you didn't submit the form, go back and fill it in!\n";
}

?>
---------


2) form.php



PHP:
---------
session_start();
if(isset($_POST['submit'])) {
if(isset($_POST['captcha_code']) && isset($_SESSION['captcha_code'])) {
if(md5($_POST['captcha_code']) == $_SESSION['captcha_code']) {
echo ' ';
}else{
die('Ο κωδικός ασφαλείας ήταν λάθος. Γυρίστε πίσω και ξαναπροσπαθήστε.') . '
';
}
}else{
if(!isset($_POST['captcha_code'])) {
echo 'Δεν έχετε εισάγει κωδικό ασφαλείας.
';
}
if(!isset($_SESSION['captcha_code'])) {
echo 'Result: No CAPTCHA was viewed.
';
}
}
}
?>
---------


Read More...
Your Ad Here

Strange Behaviour in IE7 - Javascript only refreshes dropdown once

Strange little issue. Using Javascript and AJAX to pull in a drop down box for car models when a car make is chosen. Here's what happens: if I choose Ford, the Ford models appear. I choose Honda, the Honda models appear. But if I choose Ford again - the update doesn't happen. Essentially, anything that's already been selected will not reappear.

Here are the code snippets:


Code:
---------




Select a Make..

---------

Code:
---------
<%
If Request("Make") & "!" = "!" Then
%>
Select a Make..
<%
Else

%>

<%
End If
%>
---------
Your thoughts on why this is happening are most appreciated!

Cheers..
Drew

Read More...
Your Ad Here