Category: 未分类

网站数据又一次被还原,备份损坏

又一次回到了2013年7月1日。。就是新服务器乔迁的日子。。 这已经是今年的第三次了

不说什么了,损坏原因还是因为万恶的Mysql Innodb引擎,而且自动备份脚本竟然备份下来了损坏的数据库-。- 简直想哭。

 

这次自己写一个好的按时间备份脚本

文章我会尽量恢复,感谢大家支持

 

 

万恶的Win8! 快速启动后无法进入BIOS出现Grub rescue的解决办法。

故事是这样发生的。今天在拿电脑的时候摔了一下,没有看到我的SSD (hd1)掉下来,结果进系统时无法找到hd1尝试网络启动失败。 因为我的HDD(hd0)内没有可引导的系统,所以出现grub rescue。

由于Win8的快速启动技术(类似休眠),关机后开机无法进入BIOS (F2和F12都不好使)。好郁闷,还没法调整启动项

开始尝试我N年前在HDD里面装的Ubuntu,在root=找了试了所有分区后发现grub rescue都找不到我的Ubuntu。。。好像是某次格式化掉了

随后只好把电脑拆开,SSD和HDD调换位置,让系统默认引导hd0 来进入Win8跳过快速启动。 再将HDD和SSD的位置调换回来,顺利启动。

 

总结:

问题就出在Win8的快速启动上,和休眠一样,开机时是不能够通过快捷键进入BIOS的。

在硬盘(分区表)出现问题时,甚至无法使用其他储存介质引导进入PE或其他急救系统。

我这种情况还好,如果真的是分区表出现问题,那只能将硬盘放到其他电脑上操作后再安装回来。

 

汇报完毕,希望对大家有帮助。

 

本博客已启用伪静态

WordPress设置伪静态还是很方便的

安装插件:

WP No Category Base

去掉分类

 

然后:设置-固定连接-自定义

/%postname%.html

 

最后添加上传 .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

搞定

 

编写Windows RT的桌面程序

转载自XDA, 原帖:http://forum.xda-developers.com/showthread.php?t=2096820
From XDA Dev, Credit to no2chem
Here’s a basic guide on how to port, since some people were asking:Prerequisites:Windows 8 (non-RT) development machine

Visual Studio 2012 (Don’t know if express will work, but evaluation editions exist here: http://www.microsoft.com/visualstudio/eng/downloads)

dll-to-lib tool (http://forum.xda-developers.com/show…php?p=36597774)

Part 1: Getting necessary libs:

(1) On your Windows RT device, copy the .dll files in C:\Windows\System32 to some directory on your development machine (We’ll call it C:\rtdev\dlls).

(2) Create a directory on your development machine for the libs (we’ll call it C:\rtdev\libs)

(3) Extract the dll-to-lib to your lib directory

(4) Open powershell (run powershell.exe) and navigate to the libs directory

(5) run the lib script against the dlls (“./dll-to-lib.ps1 C:\rtdev\dlls).

(6) If you’ve never run a powershell script before, you might get a signing error. You can type “Set-ExecutionPolicy Unrestricted” to run the script. Please be aware of the security implications if you choose to do this.

(7) You now have a bunch of libs that tell the linker what functions are available in the DLLs on the Windows RT device. Copy the libs that you need to “C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\arm”. DO NOT OVERWRITE ANY EXISITNG LIBS (repeat: DO NOT OVERWRITE ANY EXISITNG LIBS OR YOU MAY HAVE TO REPAIR/REINSTALL VS) You’ll probably have to change the security permissions if you want to copy to this directory, or copy as an administrator.

Part 2: Fixing the compiler.

The compiler won’t let you build desktop apps due to a configuration setting. Fortunately, some people at stack overflow figured this out:
http://stackoverflow.com/questions/1…al-studio-2012

Basically, edit:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\AR M\Microsoft.Cpp.ARM.Common.props

to include:
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
before </PropertyGroup>

Part 3: Building a Win32 Hello World app.

Now that we have the libs out of the way, lets build a basic hello world app.

(1) Start Visual Studio 2012.

(2) Create a new project, select Visual C++ (might be under other languages) and pick Win32 Project.

(3) In the wizard, select “Console Application”, and press “Finish”.

(4) Replace the program body with some text that prints hello world:

#include “stdafx.h”
#include <stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
printf(“Hello World!”);
return 0;
}

(5) Add the ARM configuration settings in configuration manager. Goto Build>Configuration Manager, and under “Active Solution Platform” click on Win32 and click New. Select “ARM” under “Type or select the new platform”, and press “OK”.

(6) Select the “Release” configuration and build the solution (F6). With some luck, some win32 ARM binaries should appear in the ARM subdirectory of your project.

Part 4: Porting Apps

Now that your compiler works, you can port apps over. Most apps that have a VC++ project should port fine just by adding the ARM configuration.

Some apps will have manually set \MACHINE:x86, in which case you will have to change that in the linker options. Also, ARM doesn’t support no dynamic rebase, so if you get that error, turn of \DYNAMICBASE:NO in the linker options.

A lot of cross-platform apps will use ‘nmake’ or the like. For the most part, these apps can be cross compiled using the VS 2012 ARM Cross Tools – you can find that in your start menu- In Windows 8 just type “ARM” and it should show up.

Also some interesting issues might experience:

You might encounter missing symbols from __imp_XXXX or the like from the linker. If it looks like a Win32 function, you just need to explicitly add the .lib (in project properties under Linker->Input->Additional Dependencies, type the name of the lib, which you need to also copy to the VC\lib\arm directory as above. Some common libs include “gdi32.lib” “shell32.lib” and “ole32.lib”. You can usually find the .lib under the msdn references: for example this entry for GetUserName http://msdn.microsoft.com/en-us/libr…(v=vs.85).aspx tells us we can find GetUserName in Advapi32.lib. Also the A and W suffixes just represent the ANSI and unicode version of these functions.

When compiling big libraries like Qt, you might run into some problem about BLX fixups, since relative jumps on arm are limited (23 bits?) I guess they didn’t create fixup islands in the MSVC compiler, but I found if you set \INCREMENTAL:NO, that should fix the problem most of the time. Otherwise you might have to add an \ORDER file and manually order things. See stack overflow topic for more details:http://stackoverflow.com/questions/1…fixup-overflow

Another serious pitfall.. no in-line assembly support in the MS ARM compiler. So you’ll have to write in your assembly in a .S file and link to it.

…hopefully this helps someone – happy coding!

Office2013激活助手2.0新版发布,备份激活,重置激活,快速更改Key,查看激活状态,删除Key

方便自己之作,其他东西不要吐槽。
软件特性:

· 一键查看激活状态,显示所有在使用的Key,查看过期时间等信息
· 删除不需要的Key,把当前的Key删除
· 更改Key,电话激活,你懂得· 重置激活,传说中的五次机会30天试用
· 激活,如果你更改的是可以直接联网激活的Key,可以用此功能直接激活
· 激活备份(测试), 此功能暂时只支持Win8. 可以随时恢复和备份激活文件。

更新日志:

2.0更新:
· 增加重置激活和激活备份
· 增加备份激活文件
· UI小幅改动

1.1更新:
· 修复在非C磁盘下软件运行不正确的情况

1.1.1更新:
· 修复64位系统安装32位Office目录读取不正确的情况

注:Office目录为自动读取,若出现错误请手动修改

如果没有特殊情况,下次加上KMS激活。

 

下载:

OfficeActer2.0

Office2013激活助手 1.1.1,快速更改Key,快速查看激活状态,删除Key

方便自己之作,其他东西不要吐槽。
软件特性:

· 一键查看激活状态,显示所有在使用的Key,查看过期时间等信息
· 删除不需要的Key,把当前的Key删除
· 更改Key,电话激活,你懂得

1.1更新:· 修复在非C磁盘下软件运行不正确的情况
1.1.1更新:
· 修复64位系统安装32位Office目录读取不正确的情况

注:Office目录为自动读取,若出现错误请手动修改

至于下次更新嘛。。, 想加入KMS,看个人经历了
还有报毒问题,加壳后。。。

 

下载地址:

OAA1.1.1

 

SEO必备~ 传说中最好用的站长工具箱+搜索引擎排名查询

 

 

查询某个网址在某个关键字搜索结果中的排名。
查询关键字在Baidu、google、yahoo、soso、bing、搜狗和有道七大搜索引擎中的排名。工具具有自定义保存网址和关键字、批量查询、查询结果导出、百度指数批量查询、相关关键字查询、关键字密度查询等功能,提高您在seo关键字排名方面工作的效率。

下载地址:

flash_website_tool

Java for OS X Lion | Lion的Java离线包

Java for OS X Lion 2012-004

Download icon

About Java for OS X Lion 2012-004

 

Java for OS X 2012-004 delivers improved security, reliability, and compatibility by updating Java SE 6 to 1.6.0_33.

This update configures the Java plug-in to deactivate when no applets are run for an extended period of time. If the prior update named “Java for OS X 2012-003” was not installed, this update will disable the Java web plug-in immediately. Java applets may be re-enabled by clicking the region labeled “Inactive plug-in” on a web page.

Please quit any web browsers and Java applications before installing this update.

下载地址:
Read more