Share about your problems

I kept a fair share of things to myself, trying to solve problems in my own way. Maybe I felt that sharing on my problems is a sign of weakness and that weakness I can overcome. It came to me that these little problems I have might be solved much quicker had I just shared with others.

The mere act of sharing requires verbalization of the problem. I find myself forced to frame the problem in a manner that can be easily digested by the listener. There’re times that already solves half the problem. Then the listener will probe the issue at stake and this further constraints the boundaries of the problem and that might just lead me to discover the primary sources of the issues.

Well two minds can work better than one. It doesn’t hurt to share and the best part is no one really judges me as much as I judge myself. So share.

I can never get Twisted to work

It’s time to abort. My project is quite some trouble. I left the implementation to the very last stage. Apparently that is quite a bad idea. I have the following greeting message staring at me:

[code lang=”bash”]kahwee@ubuntu:~/Project/src$ python twisted.py
Traceback (most recent call last):
File “twisted.py”, line 1, in
from twisted.internet import protocol, reactor
File “/home/kahwee/Project/src/twisted.py”, line 1, in
from twisted.internet import protocol, reactor
ImportError: No module named internet[/code]

I can never figure out why I can’t install Twisted. In the end I give up. Don’t have much time left. Tick tock tick tock. I am using Ubuntu 10.04.

Proving Fermat’s Last Theorem

Fermat’s last theorem is strikingly different and much more difficult to prove than the analogous problem for n = 2… The fact that the problem’s statement is understandable by schoolchildren makes it all the more frustrating, and it has probably generated more incorrect proofs than any other problem in the history of mathematics. No correct proof was found for 357 years, when a proof was finally published by Andrew Wiles in 1994. The term “last theorem” resulted because all the other theorems proposed by Fermat were eventually proved or disproved, either by his own proofs or by other mathematicians, in the two centuries following their proposition.”

Fermat claims to have proven it in his letter:

Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et generaliter nullam in infinitum ultra quadratum potestatem in duos eiusdem nominis fas est dividere cuius rei demonstrationem mirabilem sane detexi. Hanc marginis exiguitas non caperet.

Translated:

I have discovered a truly marvelous proof that it is impossible to separate a cube into two cubes, or a fourth power into two fourth powers, or in general, any power higher than the second into two like powers. This margin is too narrow to contain it.

Right. Andrew Wiles has successfully proven the last theorem with techniques not made available to Fermat during his time. Fermat’s proof probably never existed.

Fermat’s Last Theorem Part 1

Continue reading “Proving Fermat’s Last Theorem”

iTunes Store died for me, error -50

My iTunes has been pretty much screwed these days with the notification message:

One Moment Please.
Connecting to the iTunes Store.
Loading

If iTunes doesn’t open, click the iTunes application icon in your Dock or Windows Task Bar.

So iTunes does not itself know it is in iTunes. Very philosophical.

I tried logging out of my iTunes account and cannot log in back. I can log in using iTunes for Windows on my Windows machine but not iTunes for Mac. I have also reset everything in Safari.

Signing in to iTunes give me the following:

[iTunes We could not complete your iTunes Store request. An unknown error occured (-50).]

I can’t use iTunes Store any more and Apple Support doesn’t seem to have a similar problem listed.

[UPDATE: I resolved the issue.]

[ad#highlight]

Resolution

Okay actually, I sort of solved it accidentally a few minutes after I write this. I just randomly delete some files that says iTunes such as the cache and I chanced upon the right file to delete.

There appears to have been some problems with iTunes preferences. I don’t exactly know which particular setting is incorrect; I don’t recall editing my preferences in the past couple of months.

Anyway, I deleted the preferences file. Mine is found in:

[code lang=”bash”]/Users/kahwee/Library/Preferences/com.apple.iTunes.plist[/code]

This causes iTunes to launch the set up wizard for iTunes where you have to click through all over again, as if it is a new installation. But that’s fine for me, I hardly customized my iTunes anyway.

And the iTunes Store is working again. Damn.

iPod Touch’s stupid Smart Playlist

It annoys me that my Recently Added and Top 25 Played are all not in order when they’re in my iPod Touch. The Smart Playlist in iTunes looks correct but it never syncs correctly to iPod Touch. In my iPod Touch, it just shows in some random order.

How to fix iPod Touch Smart Playlist appearing randomly

I chanced upon the fix to this by unchecked “Live Updating” in Smart Playlist. Just click on the smart playlist and choose “Edit Smart Playlist”, then uncheck “Live Updating”. It does syncs in order now although it is still not ideal.

Smart playlist in iTunes
Smart playlist in iTunes

This has been broken since the OS 3.1 update. Currently at iPod Touch OS 3.1.2, it still does not work. 🙁

This is just a temporary fix, at least my playlist look more sensible.

Some problems with XAMPP 1.7.0 and Windows 7

For some reason, I couldn’t get XAMPP 1.7.0 working in Windows 7. There appears to be some sort of issues. I tried the zip package or the 7z package and both have the same result. Instead I found XAMPP 1.6.8 to be working fine for Windows 7 and is using that for web development using PHP and MySQL. I can confirm that cURL and sendmail is working fine in the Windows 7 environment with XAMPP 1.6.8.