锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产真实乱子伦精品视频,久久精品免费看,欧美另类高清视频在线http://www.shnenglu.com/xcpp/蹇?jī)娼編婀?/description>zh-cnTue, 30 Sep 2025 01:11:25 GMTTue, 30 Sep 2025 01:11:25 GMT60Creating a bootable clean VHDhttp://www.shnenglu.com/xcpp/archive/2011/05/16/create_bootable_clean_vhd.htmlxcppxcppMon, 16 May 2011 09:56:00 GMThttp://www.shnenglu.com/xcpp/archive/2011/05/16/create_bootable_clean_vhd.htmlhttp://www.shnenglu.com/xcpp/comments/146508.htmlhttp://www.shnenglu.com/xcpp/archive/2011/05/16/create_bootable_clean_vhd.html#Feedback1http://www.shnenglu.com/xcpp/comments/commentRss/146508.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/146508.html2. Attach the VHD, initialize with MBR, create volume (format with NTFS and mount to X:\), set active 3. Launch EasyBCD, in "Bootloader Setup" tab, choose correct Partition, and install BCD (a.k.a. PBR, Partition Boot Record) 4. At this stage the newly installed BCD is still empty. Now click "Add New Entry" in EasyBCD with default settings to add a default entry 5. Deploy a OS into the VHD: imagex /apply <path to install.wim> <index of image> X:\ 6. Detach the VHD
Now the VHD is a sysprep'ed, bootable, and absolutely clean VHD.
]]>NTFS directory junctions to network shared folderhttp://www.shnenglu.com/xcpp/archive/2011/05/08/junction_link_to_shared_folder.htmlxcppxcppSun, 08 May 2011 06:56:00 GMThttp://www.shnenglu.com/xcpp/archive/2011/05/08/junction_link_to_shared_folder.htmlhttp://www.shnenglu.com/xcpp/comments/145948.htmlhttp://www.shnenglu.com/xcpp/archive/2011/05/08/junction_link_to_shared_folder.html#Feedback0http://www.shnenglu.com/xcpp/comments/commentRss/145948.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/145948.html Refer to this MSDN article: http://msdn.microsoft.com/en-us/library/aa365006%28v=VS.85%29.aspx
However here is a easy workaround:
1. Create a symbolic link to the network shared folder 2. Create directory junction to the symbolic link 3. Done.
The link created in step 2 looks like a directory junction, but behaves like a symbolic link.
]]>Expand VirtualBox VDI - Linux guest/Windows hosthttp://www.shnenglu.com/xcpp/archive/2010/01/07/expand_linux_guest_vbox_vdi.htmlxcppxcppThu, 07 Jan 2010 03:31:00 GMThttp://www.shnenglu.com/xcpp/archive/2010/01/07/expand_linux_guest_vbox_vdi.htmlhttp://www.shnenglu.com/xcpp/comments/105072.htmlhttp://www.shnenglu.com/xcpp/archive/2010/01/07/expand_linux_guest_vbox_vdi.html#Feedback1http://www.shnenglu.com/xcpp/comments/commentRss/105072.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/105072.htmlclonezilla and gparted live CD 2. Create a new VDI with bigger size, attach it to the VM, boot the VM with clonezilla live CD 3. Clone the old VDI to new VDI 4. Detach old VDI (don't delete it before new VDI is verified to work) 6. Boot the VM with gparted live CD, delete swap and extended partition, expand the primary partition, and then recreate the extended and swap partition 7. Remove CD and boot the VM, verify if it works 8. Delete old VDI
BTW, for Virtual Box shared folders:
sudo mount -t vboxsf share_name /path/to/mount
To mount it permanently, append a line to /etc/init.d/rc.local with above command.
]]>Build wxWidgets applications with CodeLite in Ubuntuhttp://www.shnenglu.com/xcpp/archive/2010/01/06/build_wx_app_with_codelite_in_ubuntu.htmlxcppxcppWed, 06 Jan 2010 14:45:00 GMThttp://www.shnenglu.com/xcpp/archive/2010/01/06/build_wx_app_with_codelite_in_ubuntu.htmlhttp://www.shnenglu.com/xcpp/comments/105046.htmlhttp://www.shnenglu.com/xcpp/archive/2010/01/06/build_wx_app_with_codelite_in_ubuntu.html#Feedback0http://www.shnenglu.com/xcpp/comments/commentRss/105046.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/105046.html I just started to play with Linux and the open source C++ IDE CodeLite. The IDE and wxWidgets library looks great, and the Linux platform is becoming more and more user friendly today. So I tried to build an application with CodeLite (2.1.3584) in Ubuntu (9.10).
I tried to build a wxWidgets application in Windows before. According to this article the thing is quite easy. However, I didn't expect it is so difficult to do the same thing in Linux (simply because I can't find a similar article on Internet). I googled again and again but didn't find much stuff useful.
3. Create a link for "/usr/include/wx-2.8/wx" to "/usr/include/wx", or copy the directory over
4. Create a link for "/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h" to "/usr/include/wx/setup.h", or copy the file over
5. Open CodeLite IDE, create a project using wxWidgets template
6. Modify the default project settings to: complier options: -g;$(shell wx-config --cxxflags) linker options: -mwindows;$(shell wx-config --libs)
7. Complie and run
Without step 6 you may see following errors:
No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=yes in /usr/lib/wx/config
No Target! You should use wx-config program for compilation flags!
It's because there is no debug library exists in /usr/lib/wx/config. By default there is only release+unicode builds.
update on 2010/1/9:
It is actually so easy. I didn't do it in a right way. Now I believe the right process should be following the instructions here.
For a simplified guild:
1. sudo apt-get install build-essential 2. sudo apt-get install libwxgtk2.8-dev libwxgtk2.8-dbg 3. sudo ln -sv /usr/include/wx-2.8/wx /usr/include/wx 4. Create a wx project in CodeLite, build and run with default settings. It should just works
]]>VC++ 2008 Express, Win7 SDK, and 64bit targetshttp://www.shnenglu.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.htmlxcppxcppWed, 09 Sep 2009 02:54:00 GMThttp://www.shnenglu.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.htmlhttp://www.shnenglu.com/xcpp/comments/95669.htmlhttp://www.shnenglu.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html#Feedback6http://www.shnenglu.com/xcpp/comments/commentRss/95669.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/95669.htmlpatch for VC++ 2008 Express to enable its x64 and IA64 targets (by default this free edition of VC++ only supports x86 targets). It used to work with Windows SDK for Windows Server 2008 and .NET Framework 3.5 nicely, but now as Windows SDK for Windows 7 and .NET Framework 3.5 SP1 has been released, it cannot work sometimes, so I decide to update this patch for the new SDK.
I have to mention that Microsoft introduces 2 new bugs in Win7 SDK:
1. If you are running a x86 machine, the x86 version of Win7 SDK will not install x64 and IA64 tools anyway, even if you have selected all checkboxes during the setup.
Workaround: repair the installed Win7 SDK (from control panel), and check all these checkboxes again, then you get all x64 and IA64 tools back. (note: don't try to install x64 SDK to a x86 machine, setup program will fail)
2. After the Win7 SDK (x86/x64/IA64 all versions) is installed, the Windows SDK Configuration Tool will not register the latest v7.0 SDK as system default (instead it still uses v6.0A). As a result VC++ will not be able to locate x64 and IA64 tools (compliers etc).
Workaround: launch the Windows SDK Configuration Tool from start menu, choose the right version (v7.0), and click "Make Current".
Now you can download and install the new patch here. I have tested it on clean x86 and x64 machines.
I removed the two DLLs from x64 package (VCProjectAMD64Platform.dll and VCProjectIA64Platform.dll), because Win7 SDK will copy correct ones (Microsoft has fixed this bug in Win7 SDK).
]]>Entity Framework Query Samples for PostgreSQLhttp://www.shnenglu.com/xcpp/archive/2009/09/08/ef_samples_for_postgresql.htmlxcppxcppTue, 08 Sep 2009 03:56:00 GMThttp://www.shnenglu.com/xcpp/archive/2009/09/08/ef_samples_for_postgresql.htmlhttp://www.shnenglu.com/xcpp/comments/95549.htmlhttp://www.shnenglu.com/xcpp/archive/2009/09/08/ef_samples_for_postgresql.html#Feedback2http://www.shnenglu.com/xcpp/comments/commentRss/95549.htmlhttp://www.shnenglu.com/xcpp/services/trackbacks/95549.html Microsoft designed EF to support not only its SQL Server. It announced a lot of supported (with supported drivers) 3rd party databases listed here. Luckily my favourite PostgreSQL is present (Npgsql).
Microsoft also released a lot of great samples for EF, and I started to learn EF from this one: http://code.msdn.microsoft.com/EFQuerySamples (it looks fancy and rich). Then I ported the sample database NorthwindEF to PostgreSQL to test if EF for PostgreSQL really works. The initial test shows it works graet: almost all samples can run with PostgreSQL smoothly. The translated SQL queries also looks good.
I uploaded the ported EF sample for PostgreSQL here (AFAIK there is no official documents on Internet for EF support of PostgreSQL/Npgsql, so this sample can be a good start).
PG鏄竴涓姛鑳藉叏闈㈢殑寮婧愭暟鎹簱錛堟瘮閭d釜榪濧CID閮芥病鏈夌殑MySQL寮哄浜?jiǎn)锛?jí)錛屾ц兘涔熷緢涓嶉敊錛屾垜鎶奡QL Server 2008閲岄潰鐨?GB鏁版嵁瀵煎叆鍒癙G閲岄潰鍚庯紝鍙戠幇鏌ヨ鎬ц兘鍜屾暟鎹彃鍏ユц兘閮藉樊涓嶅錛屼絾鏄疭QL Server濂藉儚榪樻槸瑕佸揩涓鐐圭偣錛堥潪甯鎬笉涓ヨ皚鐨勬祴璇曪紝鎴戣繖涓嶈秴榪?0%錛屼紒涓氱増錛?
1. Install Visual C++ 2008 Express (to default folder in C drive, or this patch will not work) 2. Install Windows SDK (Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5) 3. Open a command prompt, navigate to the folder contains this file, run setup_x86.bat or setup_x64.bat according to your system architecture 4. If there is no error in the command prompt, launch the Visual C++ 2008 Express IDE and build your X64 or IA64 projects