Items filtered by date: December 2014

Sunday, 06 May 2012 11:49

Command Prompt from DVD Boot

This is useful to get the command prompt on windows vista and windows 7 without having to go all the way through the startup check.

  • press Shift and F10
Published in Windows Vista

These are key combinations to activate System Recovery/Factory Restore so you can restore a laptop or desktop to factory settings with the onboard system recovery image.

System Recovery is not system restore. System restore is a windows only system

these key presses and procedures vary from brand to brand.


  • Acer - Alt + F10
  • Dell - Ctrl + F11 , Ctrl + F10
  • HP - F10
  • HP/Compaq - On startup, press f11 to launch Recovery Manager
    Pressing the f11 key during the startup on a computer with an HP factory image will start the system recovery process even if the prompt is not displayed
  • Fujitsu -
Published in Hardware
Sunday, 06 May 2012 00:00

KSOD - Black screen of death

KSOD (Black Screen of Death) issues can be caused by many different issues, the quickest and easiest method of fixing this is running system restore if possibly. This error is a kernel level error and are very tricky for the end user to fix, even if it is possible because this error cannot always be fixed. I think 'K' in ksod stands for kernel.


Things i have tried

  • chdsk
  • chkdsk /r
  • could be windows event log service
  • virus hook on shell
  • black screen virus
  • faulty update - remove recent updates
  • run system restore
  • disable all services and reboot (this did not make any difference)
  • disable msconfig items manually
  • try permission reset with SubInACL command line thing and that batch file in console
  • try reset registry permissions
  • try adding the prevx fix url in to the start up group thing in the registry so it autoruns itself
  • "C:\Program Files\Internet Explorer\iexplore.exe" "http://info.prevx.com/download.asp?GRAB=BLACKSCREENFIX"
  • try injecting updated graphics drivers
  • check HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit   make sure it says
    C:\Windows\system32\userinit.exe
    it could be as subtle as a . on the end ie C:\Windows\system32\userinit.exe.
  • is it loading a corrupt hibernation file. delete the hibernation file to remove this issue
  • malware scan

Other Things To Try

What Worked For Me

KSOD is cause by incorrect permissions from a failed update usually. Fix the file permissions and the update will complete allowing windows to run.

  • scan with malware and comodo CIS - remove all shit
  • then add everyone to C:\ (of the client drive) permissions and apply to all (i also include administrators)
    or
    use a permissions utility to restore permissions such as the one from tweaking.com or SubInACL
  • put back in client machine when you can read the files

when i put it back in the client machine a windows update carried on and might explain why i could not run sfc or indeed why the PC failed.

Links

Published in Windows Vista
  • to get universal printing PCl6 to work, make sure that the 1300 PCL driver is installed and working
  • then install universal printer driver PCL6 and select the port the 1300 PCL6 is printing on.
  • even if it is installed, it must alter some printer files of the 1300
Published in Printers

To have all my emails downloaded and stored locally i need to use pop3. I also want to have the benefits of IMAP and PUSH email so i instantly get my messages on my phone. The following settings are the best.

  • setup email in outlook with pop3, with the setting leave on server for 14 days
  • setup all the required emails on the phone via IMAP using K-9 Mail (or GMAIL for the inbuilt Google account)
  • when setting up the IMAP accounts on the Android phone with K-9 use the PUSH email option
  • setup all shared pop3 accounts up as IMAP in outlook aswell. This is so sent items can be copied into outlooks sent folder if required

These settings give the best of both worlds and cover me if Googles servers go down, and i can use my own email accounts with PUSH email.

Published in Email

The following code should work on all php setups.

The following code needs to be entered on the file/thread you want the variables to be altered for. This code will on temporarily alter the enviromental variables and they will revert to what they were after the file has finished running. There is also some additional code to display the php info so you can see the variables have been altered, this section can be deleted.

<? 
$phptemp = "/var/www/vhosts/example.com/httpdocs/php.ini";
putenv("PHPRC=$phptemp");

/* the one below works */
apache_setenv("PHPRC", $phptemp);
$yo = getenv('PHPRC');
echo $yo;
phpinfo();
?>
Published in PHP
Sunday, 06 May 2012 00:00

Setting the timezone with PHP

because webservers can be located anywhere in the world yet be used predominately in one region you need to be able to cahnge the timezone on the webserver, however the time stamp never changes.


You can set a default time zone for your server from the configuration file (php.ini) at the line:

Timezones are available here http://www.php.net/manual/en/timezones.europe.php

http://php.net/date.timezone

[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York

Published in PHP
Sunday, 06 May 2012 00:00

Disable Magic Quotes in a PHP script

Magic quotes are the bain opf any programmers life. If you commit something to a my sql database that has unescaped characters, php by default will escape them with a backslash '/' and this can mess all your code up.

The following shows you how you can detect if magic quotes are running and how to disable them.


Detect if magic quotes are running

Run this php code on your web server

<?php
if(get_magic_quotes_gpc())
	echo "Magic quotes are enabled";
else
	echo "Magic quotes are disabled";
?>

Disable magic quotes

If you alter the following code in your php.ini will disable magic quotes. You might als be able to use a php variable declaration but this will be less permanent.

; Magic quotes

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

 

Published in PHP
Sunday, 06 May 2012 00:00

HTC Universal wont boot after flash

for all those stuck in the boot screen

step by step

get the tools attached (mtty 1.42.zip), as mamaich told, you have to use it in bootloader mode, (power + light bulb + reset)

  1. stop activesync USB connection
  2. Uni : Reboot bootloader then connect USB
  3. PC : Run mtty1.42.exe
  4. choose USB in "port" (reconnect if can't find.recognise USB and try remove sim and SD card)
  5. type : task 28 55aa
  6. press enter
  7. cause DOC reformatted, so there's no rom in DOC, try reflash any rom that you like

Done.

Published in Windows Mobile
  • try other programs to see if they have tray select issue aswell
  • unprotect document if needed
  • setting is in file/page setup

Select top option in this list. This is a dynamic option supplied by the printer (selected in the printer properties, will not change everytime)

  • select print options
  • set default tray to 'use printer settings'
  • protect document again if needed
Published in Microsoft Office
Page 68 of 96