Monday, November 19, 2012

Restore Windows 8 from a .wim file

1) Download the WAIK (W7 version is fine) 2) copy file IMAGEX.EXE from the WAIK to a directory -- use the correct IMAGEX file for the Windows you want to restore -- it sits in the TOOLS directory of the WAIK. (AMD64 for Windows 8 x-64, or the version in x-86 for 32 bit version. Don't use the one in the IA directory). 3) then simply run the command : imagex.exe /apply install.wim 1 d:\ (d is the assumed drive you are using for your target system and the .WIM is the name of your .WIM file --I've just taken as an example the standard "INSTALL.WIM' file that exists on the install media for Windows 8 Consumer Preview). Note this must be a device (can be a USB etc) which already has an ACTIVE partition on it. You'll also need to create the Boot image after the WIM has restored run bcdboot.exe d:\windows /s d: /f ALL (assumed d is the device where you have restored the WIM image via imagex). You will actually need a Windows 8 system to create the boot record --the W7 version of this program has slightly different parameters So the easiest way if you don't have a Windows 8 system is just quickly install a "Mickey Mouse" one -- takes about 10 mins - 15 mins -- doon't bother with finding drivers etc -- all you want it for is to run the bcdboot command and then you can get rid of it. You could even use a VM.

Sunday, November 18, 2012

Wednesday, November 14, 2012

Unexplained black screen using Windows 8

This may be why. Okay I just came across some new information that I think explains the random black screens I get sometimes in Windows 8. I've seen it trying to start Flight Simulator X for example. Makes sense since in Windows 7 starting FSX you always get message that aero has been temporarily disabled but not in Win8 because it's not possible to turn it off Application fails due to graphics and display issues Since Desktop Window Manager (DWM) is always on in Windows 8, some older Windows XP era apps can fail if the app uses mixed mode graphics APIs, as in using both GDI and DirectX APIs to draw to the screen (mostly older games), and tries to use full screen mode: DWM will prevent painting directly to the desktop and the game or app will either fail, or draw a black screen on to the desktop and none of the graphics will be visible In such cases, when the app quits, Windows detects that the app or game has a problem with full screen mode, and applies the DXMAXIMIZEDWINDOWEDMODE compatibility mode that allows the app or game to run in a maximized windowed mode instead of a full screen mode.

Gen Petraeus dead drop email and Skype

I always knew Skype employed it's own encryption so the following is an easy way to make use of it if you don't want to end up like Gen. David Petraeus and have all your secrets revealed to the work. Petraeus and his mistress should have taken far more measures than the rudimentary ruses they used that were already well known and ineffective. The dead drop email account works well if the server where the account resides is in a nation that has no diplomatic relations with the USA or any of its allies. That way, any requests from US authorities will be ignored. So the only way that US authorities can get into the account and examine it is to know the actual URL and the username and password. That can easily be hidden from authorities. Petraeus and his girlfriend should have taken the following measures and I would advise anybody else to do this: 1. Set up the email dead drop account on a server out of any US jurisdiction. 2. Ensure that your computer does not have any malware such as keyloggers. 3. Access the dead drop email account via an anonymous proxy server in another nation. 4. Encrypt the actual message with strong encryption software that has no backdoors. Only problem with above scheme is that with cloud computing servers could be spread across the globe and you have no idea if it's using one in the US or Amazon. There is another very good way of exchanging messages and it's so crude and simple that I'm surprised that Petraeus and his mistress didn't think of it. It is literally unbeatable. Here is the way: 1. Set up a Skype connection to your target. 2. Call your target and establish a video call. 3. When connected, make innocuous conversation. 4. While talking, write your message on a piece of paper and hold it up to the webcam. 5. Your target can respond with her own message held up to her webcam. How simple is that? Unless the authorities actually intercept the actual video feed, which is highly unlikely, as Skype is encrypted on the fly, then nothing is sent or received and the paper that the messages are written on can be destroyed on the spot. So folks, there's a couple of ways to avoid scrutiny by anybody. Good luck

Wednesday, November 7, 2012

Windows 8 and Linux mounting bug

Just came across this bug by accident now that I'm running Windows 8 24/7. ntfs-3g refuses to mount Windows8 not using hibernation HOW TO REPRODUCE: 1) Boot into Windows8, use its "Restart" button 2) From Ubuntu 12.04, try to mount the Windows8 partition: sudo mount -t ntfs-3g /dev/sdb8 /media/Windows8partition EXPECTED RESULT: The Windows partition is mounted in write/read mode. OBSERVED RESULT: The partition is not mounted. The output of the command is: Windows is hibernated, refused to mount. Failed to mount '/dev/sdb8': Opération non permise The NTFS partition is hibernated. Please resume and shutdown Windows properly, or mount the volume read-only with the 'ro' mount option, or mount the volume read-write with the 'remove_hiberfile' mount option. For example type on the command line: mount -t ntfs-3g -o remove_hiberfile /dev/sdb8 /media/Windows8partition Remarks: - this bug is not present in 11.10 - this bug is severe as it makes Wubi fail on Win8 ( Bug #1042159 ) Hopefully it'll get fixed soon. p.s. I think the most interesting thing I've learned out of the whole thing is how Windows 8 gets it's faster boot times is by lying to you and not actually shutting down your pc at all when you tell it to "Also, the fact that Microsoft consider "Restart" a true restart and "Shut down" a hidden, system hibernation is not intuitive or logical" Delivering fast boot times in Windows 8

Sunday, November 4, 2012

How to deactivate your Windows key if you ever have the need to: "slmgr.vbs –upk" command Note: Yes you can reuse the key on another computer, but phone activation will be required.

Thursday, November 1, 2012

Windows 8 first impressions

Okay I've been running Windows 8 Pro for the last couple of days and wanted to give my initial impressions of the top of my head as someone that's been using Windows forever i.e. Win 3.11 First, it's not as bad as I thought it was going to be and then again not really impressed either. First I ran the compatibility checker of course and it said all hardware was compatible and only had a couple of software problems like it said I had to uninstall security essentials and wireshark not compatible. Not bad I thought. First impressions are important and the Windows 8 setup program I had to use since I bought the download version didn't give a good impression. It was more confusing that the older Win7 installer. I mean I couldn't tell if I could install on separate partition. Only options were erase everything or upgrade everything. Later I figured out you can get the more familiar win 7 installer where it lets you choose what partition to install on and let's you erase, create new partitions only if you rerun the win8 setup program and choose to burn it to dvd or make bootable usb stick! Anyways, I did a dual boot install just to play it safe and keep Win7 around if needed and sure enough I did The reason is that after finishing the install ,which didn't really seem much faster than Win7, and actually I thought it locked up at one point but hard to tell now with the new plain blue 4 square logo which doesn't even pulsate anymore like the Win7 did when you booted After the install finished I found out that my wireless didnt' work That's right even though it said my wireless was compatible it didn't work and I just got yellow exclamation next to it. I was about to give up but I figured I just try the trick I did when Vista first came out which is use another wireless usb stick to connect to the net and see if windows could find any drivers for it and sure enough that worked, well sort of, I got a message earlier today saying windows disabled it even though it seemed to be working fine last couple of days so I went back into device manager and disabled and enabled it and seems to be working again Also, I noticed before the first time you log into Windows 8 it plays a video showing you how to use Windows by moving your mouse to the edges. I thought this is pretty bad that they have to show a video just so people can figure out how to use the GUI! If you don't want to waste time fumbling around trying to figure out where everything went disappeared to I recommend watching this great video they explain all the new changes and tips and tricks like the Win+X shortcut! Windows 8 Jump Start Module 1: After watching that video I didn't hate it so much anymore since I was able to pretty much recreate everything just like in Win7 and stay in the desktop instead of the new metro stuff Only thing that still annoys me and don't know if there is way to fix it is how slow the start icon and everything else takes to come up when you move your mouse to a corner of the screen. I know it's only a fraction of a second but it's still noticeable and that's why I just use the Windows key now to switch between things! Otherwise, every program I've installed other than Wireshark seems to work in Win8 just like Win7. My WEI score is the same in Win8 as it was in Win7 so seems no performance change according to that benchmark. Seems to be way more stable than Vista or even Win7 when it first came out. Haven't had a crash or even a pause in the GUI like I used to get with those when they first came out so that's a good sign. Second thing I didn't like is that there was like a 200MB update as soon as I logged in and unlike Win7, Win8 rudely rebooted my computer in the middle of a browsing session and didn't warn me or give me option to postpone reboot At least on Mac OS X there is option now to restore all your windows and browser to the way they were even after a reboot Some of the things I like about it so far that I have found is that you can now read pdf file without having to install acrobat just like mac os has always been able to, and IE comes with Flash already built in too. It's always annoying the first thing you have to do when you do a clean install of Windows is having to install all those basic programs. I really like the new task manager it gives you a lot more info than before and Microsoft now has something that even mac os does which is very cool and needed by people nowadays with bandwidth caps, metered connections. If your right click your wireless it'll tell you how much bandwidth you have used. Now that I think about it a lot of the new stuff in Win8 seems like it's copied directly from OS X. For example, there are no games included now and you have to get minesweeper and solitare from the app store! The icons on the metro screen are just like a cross between the widgets in OS X dashboard and launchpad if you ever used that. It's like they stole some of the Xbox gui and brought it into windows. Smartscreen, which caught me off guard first time I tried installing something, is Microsoft's version of Gatekeeper which does the same thing on OS X. So that is one of the new security features they added to Win8. Secure boot is another but I haven't messed with that. Biggest disappointments to me is that Win8 isn't 64bit only like we thought it would be a couple of years ago Also, the registry is still there which IMO sucks because it's to easy to corrupt and grow out of hand and eat up all your diskspace! The .net stuff is almost as bad. I've been saying since XP why can't they include .net into windows instead of making you download it like Java? A couple of programs I tried to run said I needed the .net 2 or 3 mainly Steam games and so I had to download another 20-200MB file for that to work and you have to be connected to net to download it since there is no standalone version Also, only the server version got the new filesystem ReFS, win8 only got storage spaces, which sounds like more software raid stuff to me? I think the hardcore geeks like myself are going to have to accept the fact that the future of Windows and Mac OS X is going to become and more geared to the iPod and Xbox crowd with their simplistic touch gui. I guess I'd probably be way more impressed if I had a touch capable PC since a lot of the new stuff seems to be geared towards that? I mean the command line is still there somewhere but it's hidden pretty good just like in OS X. Only thing I've really seen for geeks is something that macs and linux have been able to do for a long time already which is run the operating system from an external or usb stick, called windows to go. Finally, haven't really seen any performance increases or disc space savings to warrant being in a rush to upgrade. My boot times are pretty much the same as with Win7 but then again I have an SSD drive so it's always been pretty fast with that. In fact upgrade said I need at least 20GB of space min! I thought Win7 was only 15 and xp only like 10? Personally, I think I'll stick with Win8 it since I need to do a clean install on my SSD anyways since I have a whole bunch of old Windows 7 updated hogging up my SSD and haven't really had any major show stoppers so far p.s. Make sure you get the free media center upgrade while you can otherwise you can't even play dvd's without installing powerdvd or some other program!

Monday, October 1, 2012

Hotter might be better at energy-intensive data centers

Hotter might be better at energy-intensive data centers
I always figured they kept the temperature way too cold in all the network operation centers I've worked at!

Wednesday, May 16, 2012

BSOD on macs or Kernel Panics

Been getting Gray Screen of Death or Kernel Panics as they are called on Macs instead of the typical Blue Screen of Death you see on Windows. Anyways, here's some documentation if you are technically savvy and want to get to the bottom of what the cause is: Understanding and Debugging Kernel Panics

Monday, May 7, 2012

Multiple videocards on Mac OS X

Can't use multiple videocards on Mac OS X with Quicktime, really! Symptoms You may notice green artifacts when you export a QuickTime movie. This can occur on a system that has two graphics cards installed and a display attached to a DVI port on each card. Resolution To work around this issue, only use Final Cut Pro X or Motion 5 with a single graphics card installed on your system.

OpenCL cards for Mac OS X

A list of OpenCL capable videocards for Mac OS X: The following AMD, ATI and NVIDIA graphics cards support OpenCL in Mac OS X v10.6 Snow Leopard and in OS X Lion And here is Khronos list of of OpenCL conforming videocards and even differentiates between OpenCL 1 and 1.1.

Friday, April 27, 2012

reverse engineering math

Nice treasure trove of information on the subject

Saturday, April 21, 2012

Friday, April 20, 2012

Useful information for Mac gamers

Some useful information here for people that also like to play games on their Apple computers. In particular for people playing Steam games for Mac. [Mac] Frequently Asked Questions + Games List Unsupported Video Cards on Mac Steam warns me that my video card is not supported and my Source games do not work. What is wrong

Wednesday, April 11, 2012

Monday, April 9, 2012

Favorite quotes

Our Earth is degenerate in these later days; there are signs that the world is speedily coming to an end; bribery and corruption are common; children no longer obey their parents; every man wants to write a book and the end of the world is evidently approaching. -- Inscription on an Assyrian clay tablet, circa 2800 B.C.E. (Maggie Koerth-Baker, Boing Boing)

Apple MCX

Apple’s Managed Preferences system (also known as MCX) is under-documented, often misunderstood, and sometimes outright unknown by sys admins. I never knew about them and now I do. Here's an Apple article that talks more about them: Summary Learn how to locate and manage preferences using Workgroup Manager's preference editor. Managed Client: How to manage settings using the preference editor

Wednesday, April 4, 2012

Macports and latest Xcode

If you are having problems with Macports and latest version of Xcode, name messages saying you don't have Xcode installed you might need to run some commands to fix it: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer MacPorts stops working after installing Xcode 4.3

Tuesday, April 3, 2012

Very confusing world of multiple Apple ID's

Apple's official support of multiple Apple ID's. And no you cannot merge them :( Might help someone. An Apple ID is the email address you use as a login for just about everything you do with Apple, including using iCloud to store your content, buying songs from the iTunes Store, and downloading apps from the App Store. When you set up your iPhone, iPad, or iPod touch, you use the same Apple ID for iCloud services and purchases on the iTunes Store, App Store, and iBookstore. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). You will get all the benefits of iCloud whether you use the same Apple ID for iCloud and store purchases, or different IDs for each.

Monday, April 2, 2012

Upside down or sideways photos in Mac OS X

A plausible explanation for those random Upside down or sideways photos in Mac OS X you sometimes get. I figured it was an endianness issue but apparently it's caused a EXIF Orientation flag issue. Software Support for Orientation While there are countless software programs available today that display JPEG images, only a subset of them actually interpret the EXIF Orientation flag. Just like color management, many programs simply display the JPEG image as it is stored, and completely ignore any extra details stored in the file's metadata. The most important of these additional details is the Orientation flag, stored in the JPEG APP1 marker under EXIF IFD0.

Sunday, April 1, 2012

Jenkins

Wow getting Jenkins working on Windows and Mac a lot harder than it should be. Was getting strange cannot determine git version and CreateProcess error=5, Access is denied from Jenkins for git I could see from the console. Had to guess and finally setting Git's path to C:\Program Files\Git\bin\git.exe finally got it to work! C:\Program Files\Git\bin is not good enough for some reason. On Mac OS X failed to work until I manually set Git path to /usr/bin/git. After all this it's also obvious that this is pretty new software or not widely used since I usually get pretty good results from Google but this time didn't help very much at all!

Tuesday, March 27, 2012

Windows 8 fail

Seriously, someone at Microsoft wants Windows 8 to fail big time. Doesn't even come with a simple quick way to shut down the computer anymore. The start button might've been retarded but at least it let you shut down! Now here is all the hoops you have to jump through in Windows 8 just to shut down: Create custom Shut Down and Restart shortcuts

Thursday, February 2, 2012

Apple secrets

A database of hidden settings for Mac OS X For example: Xcode setting Organization name com.apple.Xcode PBXCustomTemplateMacroDefinitions.ORGANIZATIONNAME -string

Monday, January 16, 2012

AMD graphics woes

Been doing some game programming with my older AMD quadcore machine with old ATI radeon 4800HD graphics card and got nasty BSOD. This AMD article gives like a million different steps and things you can try to fix it. No wonder kids these days just stick to console gaming. Way too much complexity! How to troubleshoot “Display driver stopped responding and has recovered”, ATIKMDAG.sys type errors

Friday, January 6, 2012

WG111v1 and Windows 7 x64

How to get old WG111v1 usb network adapter working in Windows 7 x64 since Netgear won't provide updated driver according to this message from Microsoft: Address a problem with WG111v1 WG111v1 isn't compatible with this version of Windows. Netgear Incorporated, the company that manufactured WG111v1, has informed Microsoft that they don't expect to offer updates to solve this problem. To search for similar devices that are compatible with your version of Windows, go online to the Windows 7 Compatibility Center: Windows 7 Compatibility Center If you are running Windows 7, you might be able to install a Windows Vista driver in compatibility mode. How to install a driver in compatibility mode Right-click the driver installation program you saved to your desktop, click Troubleshoot compatibility, and then click Next. In the Program Compatibility troubleshooter, click Troubleshoot program. On the next screen, select The program worked in earlier versions of Windows but won't install or run now, and then click Next. Select a version of Windows that is earlier than the one you are running, and then click Next. When asked to test the program with the chosen compatibility settings, click Next. This will run the driver installation file in compatibility mode. If you experience a problem with the driver installation program, click No, try again using different settings, and then choose compatibility settings for a different version of Windows. If you don't experience a problem with the driver installation program, click Yes, save these settings for this program. Follow the steps in the driver installation wizard to complete the installation. What is compatibility mode? Compatibility mode is a setting that can be applied to older programs that helps them run better in newer versions of Windows. If a program that was designed for an earlier version of Windows is running poorly, or not at all, running it in a mode that is compatible with an earlier version of Windows can correct or improve the program's performance. Just download the prism drivers from this page and it will show up as prism 802.11 usb adapter and work just fine.

Disable hibernation in Windows 7

Can't believe I always forget this since it's one of the first things I always do on a Windows install. Run command prompt as admin and type powercfg.exe /hibernate off Most people won't notice all the disc space it's eating up, 8GB, in my case unless you have a ton of ram and small SSD drive or raptor drive. If you are really lazy you can jut run the Microsoft fix it for me file and it'll do it for you

AMD-V not working: VERR_SVM_IN_USE

Annoying error on my quadcore Phenom due to buggy bios! AMD-V not working: VERR_SVM_IN_USE

Why don't I get a strong signal with my 5 GHz wireless connection?

The Netgear website actually has some pretty decent answers on their website. For example: Why don't I get a strong signal with my 5 GHz wireless connection? In a nutshell prefer 5GHZ for short distances and 2.4 for longer distances but you get less speed.
 
Tweets by @daviangel