• Custom Search

How to remove a Friend on Facebook

I have a friend on Facebook is not really a friend. By that I mean, he is just collecting people who will agree to be his friend on Facebook and make himself seem popular. He is more interested in marketing himself than being a real friend.

If you have such a fiend for a friend and you want to stop being his/her marketing audience, follow these steps:

image 1. Find the fiend, 

image2. click on the fiend you want to remove. Then scroll to the bottom left corner and click on Remove from Friends.

Technorati tags:

Read more boo, leisure articles

Posted in boo, leisure | 1 Comment

Synergy failed to connect to server: address not found for

imageFor a while just now, Synergy did not work for me. On the status window, I see these error messages "failed to connect to server: address not found for <my computer name>"

Restarting Synergy on both server and client did not fix the issue.

Finally, I found that the Computer Browser service on the server (<my computer>) was disabled. After I started the service, Synergy worked again.

Technorati tags:

Read more work articles

Posted in work | Leave a comment

Deactivating Wordpress plugin blanks the page

Yesterday, I wrote a plugin and uploaded it to my website. I activated it and it activated successfully.

But when I deactivated it, the page turns blank.

On returning to the Wordpress admin page, the plugin was successfully deactivated.

I was also getting problems when I added custom field.

The cause ?

A blank line at the beginning of my plugin file.

Deleting the blank line and letting the first line be <?php solved the problem.

Read more wordpress articles

Posted in wordpress | Leave a comment

should you host with Lunarpages, should you get your 'free' domain with Lunarpages

Here's a response I got when I tried to transfer my 'free' domain away from Lunarpages:

image Lunarpages can become the registrar for .com, .net, .org, .name, .us, .ca, .co.uk, .biz, and .info domains.

Before we can process a domain transfer request, we need the following to be acknowledged and/or answered:

There will be a one time Domain Transfer Fee of $12.95.

If you have not used your One Year Free Domain (available only for 12 and 24 month plans) please let us know if you would like to use it and we can set the domain to register for free for one year, then renew each year at regular cost.

If you have already used your One Year Free domain, then there will be an additional charge of $19.95 for one year of domain registration, and the domain will renew each year thereafter for at the current price.

If you would like the registration to be anonymous (where Lunarpages' information is displayed on a whois lookup rather than yours) we can do this for an additional $7.95 per domain per year for the anonymous registration. Please let us know if you would like this service.

For the transfer, we would need your cPanel username, last 4 digits of your credit card on file with us, authorization to charge your credit card (if applicable), your current account password, and the domain name to transfer.

Note: We need to verify you as the account owner even if you are using this as your free domain.

Approximately 24 hours after we make the request, you will receive a confirmation email from TuCOWS asking for authorization to transfer the domain. This email will arrive at the administrative contact email listed in your domain whois. Do you have access to this email?

Is the domain active? A domain that has a status of REGISTRAR-HOLD or REGISTRAR-LOCK cannot be transferred. Please make sure the domain does not have a lock or hold on it, or the transfer will fail instantly.

A transfer can take up to a week, and the request can be denied by the current registrar with no reason given.

You decide.

Read more boo articles

Posted in boo | 2 Comments

I can shoot pretty good pictures with a Pentax

I used to think that only Nikon or Canon cameras can shoot great pictures.

The more I use my Pentax K20D and the more I know of its features, the more I begin to appreciate the advantages of Pentax K20D.

My pictures are also getting better.

Some of the features that I think Pentax has over Nikon and Canon are:

1. In body image stabilization - Nikon, Canon DSLRs do not have in body image stabilization

2. Cost of lens - because Pentax's K20D has in body image stablization, its lens do not require it. With a Nikon or a Canon, you have to buy the image stabilization feature with every new lens you require or do without. Pentax lenses are therefore cheaper than Nikon or Canon lenses

While Nikon has its raw processing utility, Pentax also comes with its Pentax Photo Laboratory which can do a decent post-processing job. Pentax Photo Laboratory comes with batch processing features and I can process my raw files in  batches, saving me lots of time.

I bought my DSLR for the main purpose of capturing memories of my two children and shooting events in my church. The K20D is delivering superbly on both.

At the opening, I  mentioned that I used to think that Nikon shoots better pictures. That was until a day when I compared my Pentax K20D pictures against some Nikon D300 pictures and mine was decidedly better. Even the Nikon owner asked whether I Photoshopped my pictures. I did not. That was the turning point and I am loving my Pentax more.

After I became confident that I can shoot pretty good pictures with a Pentax, I recently invested in a DA 70mm F2.4 limited lens. That was the beginning of another great Pentax photography adventure.

Read more pentax photography articles

Posted in pentax photography | Leave a comment

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Read more Uncategorized articles

Posted in Uncategorized | 1 Comment

doctest omits decorator functions / decorated def – a simple workaround

Apparently there is a known issue with doctests, 
in which tests in functions using externally 
defined decorators are ignored by doctest.
Here's a simple workaround.

 

@aspect.processedby(aspect.tracing_processor)
def aa():
    ''' Returns None
 
    -- doctests ----
 
    >>> aa()
    True
 
    '''
    return False
 
def all_tests():
    ''' Returns None
 
    -- doctests ----
 
    >>> aa()
    True
    >>> aa()
    False
 
    '''
 
    return False

 

In the above snippet, my aa function is decorated and as expected, doctest ignores the tests within the docstring.

However, the all_tests function is not decorated and doctest picks it up and runs the tests.

**********************************************************************
File "C:\1\python\test_doctest.py", line 31, in __main__.all_tests
Failed example:
    aa()
Expected:
    True
Got:
    False
**********************************************************************
1 items had failures:
   1 of   2 in __main__.all_tests
***Test Failed*** 1 failures.
completed doctest

 

This is a simple workaround (and solution) and the obvious disadvantage is that the tests are further away from the tested function.

That is not altogether too bad, considering that if you switch to other unit testing methods like nose, py.test, you would have to place your tests separately anyway.

Read more python articles

Posted in python | Leave a comment

PyWin64 ?

imageThere is no pywin64 (yet?).

What do I use pywin32 for ?

I use it for:

.COM programming - Excel automation. There are alternatives for building Excel files without .COM but if you need to invoke Excel macros within your python program, you need .COM.

This is yet another reason to stick to Windows 32 bit for now.

Read more guide to buying a dell, python articles

Posted in guide to buying a dell, python | 1 Comment

More Windows 7 upgrade systems from Dell

Previously, Dell only offered Windows 7 upgrade for the business series.

Recently, Dell added some Windows 7 upgrade choices for the consumer series too.

image

Read more guide to buying a dell articles

Posted in guide to buying a dell | Leave a comment

My dream Dell laptop

imageJust for fun, I configured my dream Dell laptop.

Key features :

1. 4 GB RAM

2. 500 GB hard disk - 7200 rpm

3. Intel P8700 (2.53GHz/ 1066 FSB/ 3MB Cache)

4. 3 year XPS Premier Service with 3-year CompleteCover

5. 512MB ATI Mobility Radeon HD 3670

Bonus: Merlot Red display with 2.0MP webcam

The price : RM6,067 with E-Value code S540604MY.

Read my previous guide to buying a laptop on why I choose the above features.

Interestingly, if I configured with E-Value code S540604MY, the price is RM6,099.

image

Read more guide to buying a dell articles

Posted in guide to buying a dell | 1 Comment