tag:blogger.com,1999:blog-68205952024-03-14T02:05:30.828+00:00Kong Kong de WorldEnglish version of 空空的世界Unknownnoreply@blogger.comBlogger30125tag:blogger.com,1999:blog-6820595.post-67829769493974765592011-03-28T10:28:00.000+01:002011-03-28T10:28:46.217+01:00Emacs keybinding in Visual Studio 2010I've been using Visual Studio 2010 from early last year. Unfortunately I used to emacs many years ago. In Visual Studio 2008 and earlier versions there's a key mapping settings for emacs. However MS seized support since 2010 beta version. I always pressed wrong key and gain much anger at Visual Studio as all my other IDEs are using emacs key bindings, including emacs and Eclipse. Later last year, all my projects were ported to Visual Studio 2010 from 2008. Since then I was trying to convince myself the shortcut keys used in many MS editors – word, notepad, SQL management studio etc. But – compromise is not the only solution! I found this:<br />
<br />
<a href="http://blogs.msdn.com/b/visualstudio/archive/2010/09/01/emacs-emulation-extension-now-available.aspx">http://blogs.msdn.com/b/visualstudio/archive/2010/09/01/emacs-emulation-extension-now-available.aspx</a><br />
<br />
I was wondering why I didn’t find it earlier as it released last year! Maybe my frustration with the beta version didn’t evoke my hope. This one is among the best tastes in Visual Studio 2010. Shame for MS. I wish someone would also make same thing for word, notepad, SQL management studio ...<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-11153995531502844512010-07-15T16:21:00.002+01:002010-07-15T16:21:48.394+01:00SharePoint 2010 upgrade from 2007 (content database, UI etc)Upgrade is always painful. SharePoint is no exception. Microsoft has suggested two ways of upgrade: inplace and database upgrade. All articles suggest database upgrade, which is also my choice. I don't trust third party migration tools. They will mess up the whole thing as I tried the most famous one, and missed a lot of things. However I don't trust Microsoft either, maybe SharePoint itself too.<br />
<br />
Firstly I exported content database to new farm. The PowerShell window in SharePoint 2010 menu must be opened as Administrator. Run Test-SPContentDatabase in the new farm then it reported some error. Check the log it says some features are missing. Those features have already deleted but some elements still reference to them. After some search I found a tool that claims to remove even the toughest features. It's called WssRemoveFeatureFromSite written by an MS guy. Still one feature can't be deleted. My colleage suggested me to create a dummy feature using the same GUID. It's brilliant and did work! Deploy the feature, and delete it using the tool or even stsadm command in the original farm. Export the content database again, and run Test-SPContentDatabase. This time only warnings, no errors.<br />
<br />
I thought it will be a smooth upgrade experience from then on. I was wrong. Tried many times of Dismount-SPContentDatabase and Mount-SPContentDatabase still it reported as if the whole database was broken. I tried back and forth, nothing indicate the problem. No error log, no clue at all. Frustrated, and seeked help online. Nobody had the problem. In the end, I have no way but follow the official guidance to redo in database backup/restore approach. This time it seemed work, eventually. But why??? <br />
<br />
Anyway it worked. After this step it's time to deploy all custom features, solutions etc to the site. Because the cab file structure is the same, not much is required to change in the solution files. Just remember to change the reference to the new Microsoft.SharePoint and similar assemblies. Build the solution files again, and here you go!<br />
<br />
The new site will look exactly like the one before, include site admin and all other UI. Boss won't happy because there's no ribbon, just like the previous version. Ok. Let's delete the content database and redo the content database upgrdade. This time with -UpdateUserExperience switch.<br />
<br />
Now the whole site will use the v4 master page. You can go to SharePoint designer 2010 and choose your own master page, apply it recursively. Wait, you still can't see the ribbons etc because you didn't include them in your master page. Follow this MSDN article to add ribbons on your old master page: <a href="http://msdn.microsoft.com/en-us/library/ee539981%28office.14%29.aspx">http://msdn.microsoft.com/en-us/library/ee539981%28office.14%29.aspx</a><br />
<br />
For me I also extended <div id="s4-workspace"> to <div class="s4-nosetwidth" id="s4-workspace"> because the right edit panel will out of screen in Web Part edit mode.<br />
<br />
Now at least it seemed right.<br />
</div></div><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-31303617397188267942010-07-01T15:31:00.001+01:002010-07-01T16:01:40.132+01:00Deploy WSP with SharePoint 2010 PowerShellThe stsadm command was replaced by PowerShell cmdlets in 2010. To deploy on a Produciton, QA or DEV server you may probably need PowerShell scripts (with .ps1 suffix). However if you prefer GUI, you'll thank to Visual Studio 2010 as development and deployment is as simple as a few clicks.<br />
<a name='more'></a>You can use PowerShell to deploy on non-local servers and/or carry admin tasks. If the following message shows on the first line<br />
<br />
<p style="background-color: black; color: white;">The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.</p><br />
then you may grant yourself access to the farm. Run as Aministrator and run<br />
<br />
<div style="background-color: white;"><i>Add-SPShellAdmin -UserName domain\user</i></div><br />
Then<br />
<br />
<i>Get-SPShellAdmin</i><br />
<br />
It will show shell admin accounts. You mast be in that group. PowerShell authorization is very different to Central Admin, where you perform all tasks using Application Pool's account. If you cannot add yourself to SPShellAdmin group, try to add machinename\user instead and always run as administrator from the SharePoint 2010 group in Start Menu.<br />
<br />
Make sure no warning message comes when you run SharePoint PowerShell then you can create an XML file and a script file to deploy wsp solution files.<br />
<br />
config.xml:<br />
<pre><Solutions>
<Solution Path="VisualWebPartProject.wsp" CASPolicies="false" GACDeployment="true">
<WebApplications>
<WebApplication>http://deploy</WebApplication>
</WebApplications>
</Solution>
</Solutions>
</pre><br />
PowerShell script:<br />
<br />
<pre>#install.ps1
function Install-Solutions([string]$configFile)
{
if ([string]::IsNullOrEmpty($configFile)) { return }
[xml]$solutionsConfig = Get-Content $configFile
if ($solutionsConfig -eq $null) { return }
$solutionsConfig.Solutions.Solution | ForEach-Object {
[string]$path = $_.Path
$path = "$pwd\$path"
[bool]$gac = [bool]::Parse($_.GACDeployment)
[bool]$cas = [bool]::Parse($_.CASPolicies)
$webApps = $_.WebApplications.WebApplication
Install-Solution $path $gac $cas $webApps
}
}
function Install-Solution([string]$path, [bool]$gac, [bool]$cas, [string[]]$webApps = @())
{
$spAdminServiceName = "SPAdminV4"
[string]$name = Split-Path -Path $path -Leaf
$solution = Get-SPSolution $name -ErrorAction SilentlyContinue
if ($solution -ne $null) {
#Retract the solution
if ($solution.Deployed) {
Write-Host "Retracting solution $name..."
if ($solution.ContainsWebApplicationResource) {
$solution | Uninstall-SPSolution -AllWebApplications -Confirm:$false
} else {
$solution | Uninstall-SPSolution -Confirm:$false
}
Stop-Service -Name $spAdminServiceName
Start-SPAdminJob -Verbose
Start-Service -Name $spAdminServiceName
#Block until we're sure the solution is no longer deployed.
do { Start-Sleep 2 } while ((Get-SPSolution $name).Deployed)
}
#Delete the solution
Write-Host "Removing solution $name..."
Get-SPSolution $name | Remove-SPSolution -Confirm:$false
}
#Add the solution
Write-Host "Adding solution $name..."
$solution = Add-SPSolution $path
#Deploy the solution
if (!$solution.ContainsWebApplicationResource) {
Write-Host "Deploying solution $name to the Farm..."
$solution | Install-SPSolution -GACDeployment:$gac -CASPolicies:$cas -Confirm:$false
} else {
if ($webApps -eq $null -or $webApps.Length -eq 0) {
Write-Warning "The solution $name contains web application resources but no web applications were specified to deploy to."
return
}
$webApps | ForEach-Object {
Write-Host "Deploying solution $name to $_..."
$solution | Install-SPSolution -GACDeployment:$gac -CASPolicies:$cas -WebApplication $_ -Confirm:$false
}
}
Stop-Service -Name $spAdminServiceName
Start-SPAdminJob -Verbose
Start-Service -Name $spAdminServiceName
#Block until we're sure the solution is deployed.
do { Start-Sleep 2 } while (!((Get-SPSolution $name).Deployed))
}
$pwd=Get-Location
Install-Solution $pwd+"/config.xml"
</pre><br />
When the two files are prepared, at PowerShell prompt type<i> .\Install.ps1</i> will invoke the script. All you need to modify is the config.xml file.<br />
<br />
Script is modified from:<br />
<a href="http://stsadm.blogspot.com/2010/06/deploying-sharepoint-2010-solution.html">http://stsadm.blogspot.com/2010/06/deploying-sharepoint-2010-solution.html</a><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-29848287923210191802009-10-22T15:45:00.002+01:002009-11-05T23:09:08.340+00:00Shortcut URLs in MOSS 2007<a href="http://www.heathersolomon.com/blog/articles/sp07urls.aspx">Link to Heather Solomon's MOSS URL matrix</a><br />
<br />
I am a newbie in SharePoint. As what I've discovered so fat the product may be good for intranet use for medium and large organizations with out of box features, to facilitate cooperation between employees. The internet site developers, however, will immediately facing branding issue which requires master pages, page layouts, CSS, images, almost all Web Parts to be rewritten to fit "in-house" styles. C# programming is essential. Not to mention the development have to be carried on windows server family. The speed of virtual machine, compilation, deployment of features, testing loop will drive you mad.<br />
<br />
It's not impossible to re-branding, just even a medium organization won't have so much resources to feed the black hole. When I'm working on SharePoint, I couldn't stop thinking about alternative approaches... yes, Drupal, django, pure ASP.NET, even the good old LAMP. What if I could work on things like the open source products? Why the business world don't like open source? My own laptop is now 100% Ubuntu. It's very strange when I go to office and all PCs are running windows.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-50155800395700763462009-10-22T10:50:00.000+01:002009-10-22T10:50:30.842+01:00Force to delete SharePoint items“This item cannot be deleted because it is still referenced by other pages”<br />
<br />
When you see this message when you are trying to delete MasterPage or Page Layout, use SharePoint Designer to create a new folder and move the locked item to it and then delete the folder in whole.<br />
<br />
It's the simplest work around to "unlock" the bizarre dead lock.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-52717341202305112092009-09-24T16:33:00.001+01:002009-09-24T16:33:51.947+01:00Use reverse ssh tunnel to access remote machines behind NATIf you have ever connected to your cooperate network using VPN you may understand the complexity of the tools and configurations IT engineers must deal with. In Windows world, it's true. To do anything that looks complicated there's always some software available, to make simple tasks over complicated.<br />
<br />
Say if you want to access your home Linux machine from your office. Both are behind firewall and use NAT. You don't have permission to change firewall settings. We see this a very common scenario in today's world. We don't need VPN or any software to connect to home machine (A). What we need is a machine (B) at middle and through B we can connect to A with ssh connection from the machine (C) you are working on. This is the easiest solution I found so far. No need for VPN, expensive software, configuration, ... all you need is ssh.<br />
<br />
ssh has a very useful parameter -R. This tells ssh server at remote (B) will forward the given port number to itself (A). For more details always $man ssh. The following diagram is basically everything you need to do.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVRnGEkGNrn9dxtSuzPphUzbMvhvjV1wI54gGaC3eSWZgGV8cucbo13hI_61qXTXWlNDJqYw12TczVRwUBNU1wvXUdRaGQ72kk-i5meTLrl_GYrMiYLmwQah2vXLbP5TOIRhH3Ng/s1600-h/Untitled+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVRnGEkGNrn9dxtSuzPphUzbMvhvjV1wI54gGaC3eSWZgGV8cucbo13hI_61qXTXWlNDJqYw12TczVRwUBNU1wvXUdRaGQ72kk-i5meTLrl_GYrMiYLmwQah2vXLbP5TOIRhH3Ng/s400/Untitled+1.png" /></a><br />
</div><b>Step 1.</b><br />
Create a connection to server B from the server you would wish to connect to which is A in the diagram. By creating a connection to the middle server, you have made port 12345 to listen on the remote server. All connections from remote server which talks to port 12345 would redirect to A.<br />
After the operation you'll be logged into B. Don't close the session otherwise the following work would be pointless.<br />
<br />
<b>Step 2.</b><br />
Connect to the middle server B from your machine C which can be your office desktop machine. If you are using Windows at office, install cygwin or virtual machine in order to use ssh command. It's just a very basic ssh command.<br />
<br />
<b>Step 3.</b><br />
Now you are actually logged on middle server B. Just ssh to localhost with the port that A is listening to, then you would see you have logged on to A!<br />
<br />
Not complicated, is it? If not all of your machines are using NAT you don't need middle server. Just remove C and 2nd step in the diagram and you can connect to A from B.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-28902954140326607042009-09-23T23:44:00.000+01:002009-09-23T23:44:25.911+01:00My Ubuntu 9.04 desktopIt looks nice now. Linux is quite robust. I didn't re-install for more than a year now. It's unbelievable when I was running Windows. Even with the promising Windows 7 I don't believe a heavy user like me don't need to re-install for over a year.<br />
<br />
The music player is Audacious, nice to render non-unicode characters. Also when use Dust theme and 50% gray background, turn on minimal visual effects it rocks.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtF_EIutaj_W8ZDTmRtRbvXCY-J9d3IYVaZ7IP7WiHtQX8u30CcqV0E8T8t9Hm02c1EOFDh87KbOIpjzgbfaKcbV5HNAWAcA6ccluPuZxhRVb30wcbnNSdbvWocFpu9qPKNVzuoQ/s1600-h/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtF_EIutaj_W8ZDTmRtRbvXCY-J9d3IYVaZ7IP7WiHtQX8u30CcqV0E8T8t9Hm02c1EOFDh87KbOIpjzgbfaKcbV5HNAWAcA6ccluPuZxhRVb30wcbnNSdbvWocFpu9qPKNVzuoQ/s400/Screenshot.png" /></a><br />
</div><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-7122936804988856562009-09-15T00:44:00.002+01:002009-09-15T00:57:55.494+01:00Vista supports more devices?<span>No. Today I tried some of my devices I don't expect to work under Ubuntu: an unknown usb bluetooth dongle and a Logitech webcam. Since I don't use them for long time the last memory with them were in Vista which asks for drivers of these devices. Some could be found online, some not. I can't remember precisely but Ubuntu definitely work out of box.<br /><br />I just installed additional software to provide GUI to use the devices - apt-get install cheese for webcam image/video recording, bluetooth file transfer under Gnome to transfer files to bluetooth devices. I must say that Ubuntu/Linux may support more hardware than Vista.<br /><br /></span><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-81009338095460203472009-07-08T22:10:00.002+01:002009-07-08T22:12:05.548+01:00Linux, Mac, and PC<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTXLU3sdfwZIamt_n-etQLFEqVBFos0q5jB1Z3Iii45V6JlqVKmjbpHiNMdUYhae11D2dtHxMExLUCH_1CS5Vng3NyZpTgnXhRyJg4FYQqsqUEVYJS3P35msSAdl2_mNkIhP3iPQ/s1600-h/1.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 268px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTXLU3sdfwZIamt_n-etQLFEqVBFos0q5jB1Z3Iii45V6JlqVKmjbpHiNMdUYhae11D2dtHxMExLUCH_1CS5Vng3NyZpTgnXhRyJg4FYQqsqUEVYJS3P35msSAdl2_mNkIhP3iPQ/s400/1.jpg" alt="" id="BLOGGER_PHOTO_ID_5356199867008613970" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS7aiNa5G7NpROI8YKSqaVSSGseISzvpuqxLObEeXMH4sDgSoPiJdRrijLb9M0h9OEDSCUuAEW9oRWR5xTex6qMQunIMYYpT8P6OuSo2kViR90DVVRtHv7FAFtYVSaViNEBORreg/s1600-h/2.gif"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 210px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS7aiNa5G7NpROI8YKSqaVSSGseISzvpuqxLObEeXMH4sDgSoPiJdRrijLb9M0h9OEDSCUuAEW9oRWR5xTex6qMQunIMYYpT8P6OuSo2kViR90DVVRtHv7FAFtYVSaViNEBORreg/s400/2.gif" alt="" id="BLOGGER_PHOTO_ID_5356199870371129074" border="0" /></a><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-33128987298077376582009-06-11T14:45:00.001+01:002009-06-11T15:53:52.616+01:00URL ValidatorURL Validator using .Net<br /><br /><a href="http://blogfilez.googlepages.com/Validator.zip">Download</a> source code<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-5604428151644647122009-04-26T22:59:00.004+01:002009-05-13T18:21:36.262+01:00Upgrade packages that have been kept backAfter upgrading to Ubuntu 9.04 I found something not upgraded when I work with apt-get commands.<br /><br /><a name='more'></a><br /><br /><br /><blockquote><br />$ sudo apt-get upgrade<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />The following packages have been kept back:<br /> mplayer<br />0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.<br /><br /></blockquote><br /><br /><br />To fix this I have to run<br /><br /><br /><blockquote><br /><br />$ sudo apt-get dist-upgrade<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />Calculating upgrade... Done<br />The following NEW packages will be installed<br /> libamrnb3 libamrwb3<br />The following packages will be upgraded:<br /> mplayer<br />1 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br />Need to get 4684kB of archives.<br />After this operation, 598kB of additional disk space will be used.<br />Do you want to continue [Y/n]?<br />Get: 1 http://packages.medibuntu.org jaunty/non-free libamrnb3 7.0.0.2-0.1medibuntu1 [141kB]<br />Get: 2 http://packages.medibuntu.org jaunty/non-free libamrwb3 7.0.0.3-0.0medibuntu1 [119kB]<br />Get: 3 http://packages.medibuntu.org jaunty/non-free mplayer 2:1.0~rc2-0ubuntu19+medibuntu1 [4424kB]<br />Fetched 4684kB in 35s (132kB/s) <br />Selecting previously deselected package libamrnb3.<br />(Reading database ... 145875 files and directories currently installed.)<br />Unpacking libamrnb3 (from .../libamrnb3_7.0.0.2-0.1medibuntu1_amd64.deb) ...<br />Selecting previously deselected package libamrwb3.<br />Unpacking libamrwb3 (from .../libamrwb3_7.0.0.3-0.0medibuntu1_amd64.deb) ...<br />Preparing to replace mplayer 2:1.0~rc2-0ubuntu19 (using .../mplayer_2%3a1.0~rc2-0ubuntu19+medibuntu1_amd64.deb) ...<br />Unpacking replacement mplayer ...<br />Processing triggers for man-db ...<br />Setting up libamrnb3 (7.0.0.2-0.1medibuntu1) ...<br /><br />Setting up libamrwb3 (7.0.0.3-0.0medibuntu1) ...<br /><br />Setting up mplayer (2:1.0~rc2-0ubuntu19+medibuntu1) ...<br /><br />Processing triggers for libc6 ...<br />ldconfig deferred processing now taking place<br /><br /></blockquote><br /><br />This method was found at <a href="http://www.debian-administration.org/articles/69">here</a>.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-87047680853743809942009-04-26T18:08:00.002+01:002009-04-26T18:12:57.035+01:00Flash on Firefox (For Ubuntu 9.04 AMD64)swfdec/gnash does not work well with BBC iplayer. So I decided to remove them. Also the default flash comes with the software repository doesn't work. I removed them all.<br /><br /><blockquote><br />sudo apt-get remove swfdec-mozilla<br />sudo apt-get remove mozilla-plugin-gnash<br />sudo apt-get remove flashplugin-nonfree<br /></blockquote><br /><br /><br />Then reinstalled the Flash plugin nonfree with <a href="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz">official flash plugin (amd64)</a><br />unzip and save the file into ~/.mozilla/plugins (create this folder if doesn't exist).<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-17549240262038136482009-04-24T13:56:00.006+01:002009-04-24T14:52:46.049+01:00Ubuntu upgradeUbuntu upgrade from 8.10 to 9.04 was very successful and straightforward. Everything started normally except VMWare. When I run VMWare on console it returns:<br /><blockquote><br />$ vmware<br />Logging to /tmp/vmware-ubuntu/setup-15021.log<br />modinfo: could not find module vmmon<br />modinfo: could not find module vmnet<br />modinfo: could not find module vmblock<br />modinfo: could not find module vmci<br />modinfo: could not find module vsock<br />modinfo: could not find module vmmon<br />modinfo: could not find module vmnet<br />modinfo: could not find module vmblock<br />modinfo: could not find module vmci<br />modinfo: could not find module vsock<br />Segmentation fault</blockquote><br /><br />I thought it was the same problem as before when the kernel is updated. So I ran the setup program again with root account. The bundle program uninstalled and reinstalled VMWare for me. However the result was the same, it didn't solve the problem.<br /><br />After research on Internet I found the following solution that worked for me:<br /><blockquote><br />sudo mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.old<br />sudo vmware-modconfig --console --install-all</blockquote><br /><br />This was originated from<br /><a href="http://geekdom.wesmo.com/2008/11/14/fedora-10-vmware-workstation-650/">http://geekdom.wesmo.com/2008/11/14/fedora-10-vmware-workstation-650/</a><div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6820595.post-19053726575361821122009-04-20T23:31:00.002+01:002009-04-20T23:34:02.737+01:00A web based tool to test GFW of ChinaWell, this is a quite useful tool for web masters like me, especially when the major audiences are from China.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-82560850282099038152008-08-03T21:18:00.002+01:002008-08-03T21:26:42.416+01:00Time sync in Vista and UbuntuIn a dual boot system Ubuntu time is set to UTC by default. The display time on Linux desktop is calculated based on the UTC (GMT) time of BIOS.<br /><br />Vista uses BIOS' time as local time, thus lead to incorrect reading for LT.<br /><br />To solve this issue use a favorite editor tool to edit <strong>/etc/default/rcS</strong> and change <strong>UTC=yes</strong> to <strong>UTC=no</strong> so that BIOS' time is set to local time rather than UTC.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-71866514891289407132008-05-08T21:00:00.004+01:002008-05-08T21:14:09.351+01:00Fix Vista MBR which was previously managed by GrubIt's automatic, maybe the Active flag of the partition do the trick. While Grub <span class="blsp-spelling-error" id="SPELLING_ERROR_0">try</span> to take over <span class="blsp-spelling-error" id="SPELLING_ERROR_1">MBR</span> and the <span class="blsp-spelling-corrected" id="SPELLING_ERROR_2">snippiest</span> points the rest of boot sequence to the destinated partition, to restore <span class="blsp-spelling-error" id="SPELLING_ERROR_3">MBR</span> for Vista is fairly quick and easy.<br /><br />Take out your DVD installation disk, boot from it and choose system mantenance. In command line interface, type:<br /><br /><span class="blsp-spelling-error" id="SPELLING_ERROR_5">bootrec</span> /<span class="blsp-spelling-error" id="SPELLING_ERROR_6">fixboot</span><br /><span class="blsp-spelling-error" id="SPELLING_ERROR_7">bootrec</span> /<span class="blsp-spelling-error" id="SPELLING_ERROR_8">fixmbr</span><br /><br />That's it. Now you can restart your PC, take out installation DVD and it should boot directly to Vista.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-68195581100700116202007-09-07T14:10:00.000+01:002007-09-07T14:17:10.217+01:00reinstall grub onto MBR after windows installed on a dual boot systemIt's not the first time CSDN blog lost my work.. I have to come here to post my technical articles. sorry for the inconvience for myself.<br /><br />Here are the steps<br />- find a bootable linux CD<br />- get a terminal and type <br /><br />sudo grub<br /><br />- now find where's grub installed <br /><br />find /boot/grub/stage1<br /><br />- tell grub where is the grub root installed (for example, first hard disk, first sector) and set it up on MBR<br /><br />root (hd0,0)<br />setup (hd0)<br /><br />Make sure that /boot/grub/menu.lst is there and unaffected when you install windows. Or you'll have to make change to that file.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-7311677129350697512007-08-27T17:16:00.002+01:002007-08-27T17:19:20.353+01:00Vista Gadgets<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD0YaOQy2v62Xj05VoAJJT-6uVV1Lwa1ZJLco3QqnL4xCbbnoRCm6a4V4P14cpr-1LXc_CHnkuczcEQYEH9qRZgXOVNc7MNSOsZ4_XuRi39RAXy_wLC8DCGCNCCP999rmxN8mBTg/s1600-h/Untitled.png"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD0YaOQy2v62Xj05VoAJJT-6uVV1Lwa1ZJLco3QqnL4xCbbnoRCm6a4V4P14cpr-1LXc_CHnkuczcEQYEH9qRZgXOVNc7MNSOsZ4_XuRi39RAXy_wLC8DCGCNCCP999rmxN8mBTg/s400/Untitled.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5103415650499526850" /></a><br />Gadgets are useful. Although Microsoft is anything but a pioneer its products are not too bad.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-70594935489522278812007-07-11T23:25:00.000+01:002007-07-11T23:28:27.402+01:00New InterfaceNew face have been installed on the blog. It's easier to read than ever before! Also remind you to visit my <a href="http://blog.csdn.net/snleo">Chinese site</a> which is updated more frequently than here which I'm not expecting high trafic volumn.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-1160135058375922752006-10-06T12:36:00.000+01:002006-10-20T14:14:40.643+01:00MoveTodays' quite boring. The biggest thing I did this morning was to make a decision to move from <a href="http://blog.csdn.net/snleo">CSDN blogs</a> here. It is another kind of community here, familiar to me but may be a bit strange for audiances in China.<br /><br />I didn't expect many readers from CSDN will come here to pay me a visit. But if you are one of them I welcome you and hope you will put my <a href="http://snleo.blogspot.com/atom.xml">RSS/Atom feed</a> in your feeding list.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-81833773436076569142006-06-01T10:21:00.000+01:002009-04-20T18:26:43.968+01:00Google analytics is absolutely fantastic!Yep! When i checked the service this morning (actually I couldn't sleep well last night) it's set up and collecting data! the first time set up take less than 24 hours, and the new profiles can be added in real time... up to 5 profiles can be set, which is not sufficient for me.. i think the statistics take too much resources and i can understand why there's a 5 profile limit.<br /><br />So, i have dropped cnzz and 50bang statistics.. and statcount (or sth like that) that's a great leap over all those services. I would suggest every webmaster apply for an account (i waited 3 months to get an activation code). good luck..<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-56938759458147101172006-06-01T07:13:00.000+01:002009-04-20T18:26:43.988+01:00Google analyticsTested google's analytics service just now. Can't say any word but the interface is even better than most windows applciations. and it's real analysis, beyond many competitors' so called statistics services. well done!<br /><br />However I can't see the real time report which was told to be still pendding for some 24 hours for the first time. I don't know wheather it works or not. just wait for tomorrow...<br /><br /><p><br /><a href="http://www.google.com/analytics/images/ss_fast.gif"><img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px;" src="http://www.google.com/analytics/images/ss_fast.gif" border="0" alt="" /></a><br /></p><br /><br />Today's visited <a href="www.blog.com">blog.com</a> and found it forced to display a non-removable adsense sidebar.. what a pitty the best blog name has been registered and be used to display google adwords (wondering why google not to buy it)<br /><br />Again i get less and less sleeping hours..<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-1147973485575032822006-05-18T18:25:00.000+01:002006-10-20T14:14:40.583+01:00Hah.So this time my blog is recreated and I shall stick on it as it shoudl before.<br /><br />the brit weather is not too hard, i shall start, after several years of hibernation in the dark country my heart can beat again with my new ideas and clearer pathway for my dreams for 20 years.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-52671433597164097682006-04-22T02:26:00.000+01:002009-04-20T18:26:43.981+01:00Good thing is that I have brand new blogJust too tired. <br /><br />I want to sleep rather than write endlessly. The good thing is that I find here a good gift from google again ,which is perfect.<br /><br />I'm not sure what i will do here.. but my diary had been sealed two years ago.. that's why i must start to write sth here, as my open diary can remind me and, as i trust google i have no need to backup the data in my messy usb disk..<br /><br />that's perhaps not IT guys do... however i suppose few people will be really interested in reading my blog.. because there's no topic and i'm just a boring IT guy.<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6820595.post-1140443132324556982006-02-20T13:44:00.000+00:002006-10-20T14:14:40.392+01:00OpenCourseWarehttp://ocw.mit.edu<div class="blogger-post-footer">http://snleo.blogspot.com</div>Unknownnoreply@blogger.com0