
Shrink WordPress Database Usage
My FTP provider (fasthosts) only allows 150MB maximum usage per database created. This is big enough for most personal usages. However, the other day, after I logined to the control panel and I noticed that the database I use to create my blog (this site) has already taken up to 23% percentage usages. I haven’t [...]
Tags: database, mysql, optimize table, shrink, SQL, tutorial, usage optimization, wordpress site
Posted in beginner, database, FTP, mysql, optimization, sql |
No Comments » |
Unspecified Error in Delphi 2007 on Windows 8
If you have encounter the compiler problem [Unspecified Error] in Delphi 2007 on Windows 8 x64 platform, like the following. You probably wondering what happens here. Some projects seem perfectly fine. But if you build all projects, it will always stop at that particular project with this error. The project is usually a COM DLL, [...]
Tags: bugs, compiler, delphi, delphi 2007, type library, unspecified error, windows 8
Posted in 64 bit, bug fixes, delphi, implementation, interpreter / compiler, object pascal, programming languages, windows |
No Comments » |
Codeforces: 298B Sail
The problem is from codeforces: http://codeforces.com/problemset/problem/298/B The note given in the problem description pretty much explains the problem clearly. In every moment, the ship can choose to stay put or follow the direction instruction (wind). After given list of instructions, you need to check whether the ship can move to the destination. The problem asks for [...]
Tags: acm, algorithm, greedy, implementation, math, online judges, programming language, python
Posted in algorithms, codeforces, greedy algorithm, math, programming languages, python |
No Comments » |
Absolute keyword in Delphi
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, to convert floating point IEEE format to integer. The following shows the usage of a fast Power 2 function. function FasterPow2a(const p: Single): Single; inline; var [...]
Tags: acm, algorithm, code optimization, compiler, delphi, faster math, implementation, math, number theory, performance, pointer, programming language, tricks, tutorial
Posted in compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows |
No Comments » |
Using Voice Engine in VBScript
On Windows OS, you will find the COM automation object SAPI.SpVoice that brings TTS (Text-To-Speech). The following shows an example of using SAPI to speak given a sentences. By default, only English voice library is installed, you have to install languages of your choices if you want the computer speak your native languages. Set voice = CreateObject(“SAPI.SpVoice”) voice.Rate [...]
Tags: automation object, implementation, programming language, text-to-speech, tutorial, vbscript
Posted in beginner, programming languages, tricks, vbscript, windows, windows scripting host |
No Comments » |
Codeforces: 300A. Array
The problem is from codeforces: http://www.codeforces.com/problemset/problem/300/A It looks like it has been a while since last time I submitted code to codeforces. I almost forgot the fun of solving problems. Again, I choose solving easy problems, that reminds me of the fun of coding in Python. The problem is tagged ‘brute-force’, but in my opinion, it [...]
Tags: acm, algorithm, bruteforce, implementation, math, number theory, programming language, python, tutorial
Posted in algorithms, beginner, brute force, implementation, math, programming languages, python |
No Comments » |
401 Days | 2013/6/19 Last Updated