Monday, January 21, 2013

Alex Slesarenko's blog: CUDA programming in F#: Part 2, Accelerating Mande...

Alex Slesarenko's blog: CUDA programming in F#: Part 2, Accelerating Mande...: In the previous post (CUDA programming in F#: Part 1) , we talked about how to setup dev environment to get started with CUDA programming i...

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
 
Tweets by @daviangel