Shrink WordPress Database Usage

, June 19, 2013

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: , , , , , , ,
Posted in beginner, database, FTP, mysql, optimization, sql | No Comments » |

Unspecified Error in Delphi 2007 on Windows 8

, June 17, 2013

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: , , , , , ,
Posted in 64 bit, bug fixes, delphi, implementation, interpreter / compiler, object pascal, programming languages, windows | No Comments » |

Codeforces: 298B Sail

, June 15, 2013

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: , , , , , , ,
Posted in algorithms, codeforces, greedy algorithm, math, programming languages, python | No Comments » |

Absolute keyword in Delphi

, May 31, 2013

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: , , , , , , , , , , , , ,
Posted in compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows | No Comments » |

Check A Date String If Weekend In Java

, May 14, 2013

Today I need a Java function to check if a given time string e.g. 20130218001203638, (e.g, 18 of Feb, 2013) is weekend, i.e Saturday or Sunday. So, the following is a quick solution based on the Calendar class. However, the following assumes the input string is in valid format, i.e. there is no exception handling [...]


Tags: , , , , , , , , ,
Posted in algorithms, date/calendar, java, programming languages, windows | No Comments » |

Using Voice Engine in VBScript

, May 9, 2013

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: , , , , ,
Posted in beginner, programming languages, tricks, vbscript, windows, windows scripting host | No Comments » |

Codeforces: 300A. Array

, May 7, 2013

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: , , , , , , , ,
Posted in algorithms, beginner, brute force, implementation, math, programming languages, python | No Comments » |

Total 37 Pages,Page 1: 1 2 3 4 5 6 ... 37 Next »
257 Posts | 95 Categories | 265 Tags | 20 Links | 15 Comments |
401 Days | 2013/6/19 Last Updated